Using a local iPhone MCP server to plan Apple Watch workouts with Codex

1 min read
Hacker Newspublisher

This innovative project demonstrates practical local LLM deployment on iOS by combining Model Context Protocol (MCP) servers with native Apple Watch APIs. The implementation enables Claude-based agents to access health data directly from the device, plan workouts, and execute actions—all without cloud transmission of sensitive biometric information.

The architecture showcases how to bridge LLMs with local device capabilities through MCP, a pattern increasingly valuable as models get smaller and faster. By running the MCP server locally on iPhone, the agent gains privacy-preserving access to Apple Health data while maintaining the reasoning capabilities of larger models. This approach solves the critical challenge of giving local AI agents meaningful access to system resources and user data.

For local LLM practitioners, this provides a concrete template for iOS deployment. The project demonstrates that consumer devices now have sufficient computational resources to host both the inference engine and agent infrastructure. Read the full technical writeup to understand the implementation details and adapt the pattern for other local agent applications.


Source: Hacker News · Relevance: 8/10