{"repo":"Cocoanetics/SwiftMCP","free":true,"listed":false,"github":"https://github.com/Cocoanetics/SwiftMCP","clone":"git clone https://github.com/Cocoanetics/SwiftMCP.git","description":"Model Context Protocol Server for Swift","language":"Swift","stars":160,"topics":[],"license":"BSD-2-Clause","category":"mcp-servers","readme_excerpt":"SwiftMCP A Swift implementation of the MCP (Model Context Protocol) for JSON-RPC over various transports. Features - Multiple transport options - Standard I/O (stdio) for command-line usage - HTTP+SSE (Server-Sent Events) for web applications - TCP+Bonjour for local discovery over raw TCP - JSON-RPC 2.0 compliant with OpenAPI generation - Built-in authorization and optional OAuth validation - Transparent OAuth proxy mode for MCP and OpenAPI - Cross-platform compatibility Server Features - Tools – expose functions with @MCPTool - Resources – publish data with @MCPResource - Prompts – build prompts using @MCPPrompt - Utilities - Progress notifications via RequestContext.current - Structured logging streamed through Session.current - Completion suggestions for parameters (defaults for Bool and CaseIterable ) Client Features - Roots – dynamic filesystem roots announced by the client - Sampling – request small previews of client files Installation Add SwiftMCP as a dependency in your Package.swift : Package traits SwiftMCP exposes its optional feature areas as SwiftPM package traits, all enabled by default — existing consumers and a plain swift build are unaffected. The single import SwiftMCP module is unchanged. Trait Enables Extra dependencies --- --- --- Server HTTP/SSE + TCP server transports swift-nio, swift-crypto, swift-certificates Client The MCP client ( MCPServerProxy ) — OpenAPI OpenAPI / AI-plugin manifest models and routes — The tool/schema foundation — JSONValue , JS","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cocoanetics","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cocoanetics/SwiftMCP/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}