MCP Directory
ServersClientsBlog
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2025 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Clients
  3. MCPSwiftWrapper

MCPSwiftWrapper

GitHub

MCPSwiftWrapper is a lightweight wrapper for mcp-swift-sdk, designed to integrate with LLM Swift libraries like SwiftOpenAI and SwiftAnthropic. It simplifies the creation of MCP Clients within macOS applications.

29
0

MCPSwiftWrapper

MCPSwiftWrapper is a lightweight Swift wrapper around the mcp-swift-sdk, designed to integrate Model Context Protocol (MCP) functionality into macOS applications using LLM Swift libraries like SwiftOpenAI and SwiftAnthropic. MCP enables AI models to securely interact with local and remote resources through standardized server implementations, allowing them to discover and call tools with parameters and receive responses in a standard format.

Requirements: macOS 14.0+, Swift 6.0+, Xcode 16.0+, and npm/npx. Installation is via Swift Package Manager. Note that app sandboxing needs to be disabled in macOS apps.

Usage: The wrapper facilitates initializing MCP clients, fetching available tools, and handling tool calls for both Anthropic and OpenAI. It provides methods to convert MCP tools into formats compatible with Anthropic and OpenAI APIs. The Example/MCPClientChat directory contains a complete example of a chat application using MCP with both Anthropic and OpenAI models. Licensed under MIT.

Repository

JA
jamesrochabrun

jamesrochabrun/MCPSwiftWrapper

Created

March 6, 2025

Updated

March 28, 2025

Language

Swift

Category

AI