Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-client-example

MCP.Pizza Chef: artemnovichkov

mcp-client-example is a SwiftUI-based MCP client demonstrating how to implement the Model Context Protocol in iOS apps using the Anthropic API. It serves as a practical guide for developers to integrate real-time context feeding and model interaction within SwiftUI applications, showcasing setup and usage with Anthropic's API key configuration. This example project helps developers build AI-enhanced workflows on iOS with MCP.

Use This MCP client To

Implement MCP client in SwiftUI iOS applications Integrate Anthropic API for real-time model context Learn MCP client setup and usage in iOS apps Develop AI-enhanced workflows with MCP on iOS Experiment with MCP client-server communication in SwiftUI

README

Creating MCP Servers in Swift

An example project for Using Model Context Protocol in iOS apps article.

To run the app, get your API key in Anthropic Dashboard and update it in ContextViewModel.

Author

Artem Novichkov, https://www.artemnovichkov.com/

License

The project is available under the MIT license. See the LICENSE file for more info.

mcp-client-example FAQ

How do I set up the Anthropic API key for this MCP client?
Obtain your API key from the Anthropic Dashboard and update it in the ContextViewModel.swift file as shown in the example project.
Can this MCP client example be adapted for other LLM providers?
Yes, while the example uses Anthropic, the client architecture supports other providers like OpenAI and Claude with appropriate API adjustments.
What programming language and framework does this MCP client use?
This example is built using Swift and SwiftUI, targeting iOS app development.
Is this MCP client example open source?
Yes, it is available under the MIT license, allowing modification and reuse.
Does this example demonstrate full MCP client functionality?
It demonstrates core MCP client features including context feeding and model interaction, suitable for learning and extension.
Where can I find more information about using MCP in iOS apps?
The example references a detailed blog article by the author at artemnovichkov.com/blog/using-model-context-protocol-in-ios-apps.