MCP Directory
Back

swift-sdk

by modelcontextprotocol · Swift · ★ 1,367

The official Swift SDK for Model Context Protocol servers and clients.

#mcp#swift

Install

git clone https://github.com/modelcontextprotocol/swift-sdk.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "swift-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "github:modelcontextprotocol/swift-sdk"
      ]
    }
  }
}

From the README

Official Swift SDK for the [Model Context Protocol][mcp] (MCP). The Model Context Protocol (MCP) defines a standardized way for applications to communicate with AI and ML models. This Swift SDK implements both client and server components according to the [2025-11-25][mcp-spec-2025-11-25] (latest) version of the MCP specification. - [Requirements](#requirements) - [Installation](#installation) - [Client Usage](#client-usage) - [Basic Client Setup](#basic-client-setup) - [Transport Options for Clients](#transport-options-for-clients) - [Tools](#tools) - [Resources](#resources) - [Pr…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related other servers