swift-mcp-server-generator

Installation
Summary

Generate complete, production-ready MCP server projects in Swift with the official SDK.

  • Scaffolds full project structure with Package.swift, source files organized by capability (Tools, Resources, Prompts), and unit tests
  • Includes templates for main.swift with ServiceLifecycle integration, Server.swift configuration, and handler implementations for tools, resources, and prompts
  • Provides example tool definitions (greet, calculate) and resource/prompt handlers with proper error handling and logging
  • Uses modern Swift concurrency (async/await), actor-based state management for thread safety, and structured logging via swift-log
  • Generates README, test templates, and integration instructions for Claude Desktop configuration
SKILL.md

Swift MCP Server Generator

Generate a complete, production-ready MCP server in Swift using the official Swift SDK package.

Project Generation

When asked to create a Swift MCP server, generate a complete project with this structure:

my-mcp-server/
├── Package.swift
├── Sources/
│   └── MyMCPServer/
│       ├── main.swift
│       ├── Server.swift
│       ├── Tools/
│       │   ├── ToolDefinitions.swift
│       │   └── ToolHandlers.swift
│       ├── Resources/
Related skills

More from github/awesome-copilot

Installs
8.4K
GitHub Stars
32.8K
First Seen
Feb 25, 2026