github avatar

Swift Mcp Server Generator

The swift-mcp-server-generator skill generates complete, production-ready Model Context Protocol (MCP) server projects in Swift using the official MCP Swift SDK, automating the creation of project structure, Package.swift configuration, and boilerplate code for tools, resources, and prompts. It serves Swift developers who need to build MCP servers quickly without manually setting up dependencies, file organization, and initialization patterns. This skill solves the problem of reducing setup time and ensuring projects follow MCP best practices and Swift conventions from the start.

skills.sh installs
8.8K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill swift-mcp-server-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

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/
│       │   ├── ResourceDefinitions.swift
│       │   └── ResourceHandlers.swift
│       └── Prompts/
│           ├── PromptDefinitions.swift
│           └── PromptHandlers.swift
├── Tests/
│   └── MyMCPServerTests/
│       └── ServerTests.swift
└── README.md

Package.swift Template

// swift-tools-version: 6.0
import PackageDescription

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building, Automation & Workflows, Mobile Development

More from github/awesome-copilot

All 318
1github avatarkotlin-mcp-server-generatorgithub/awesome-copilotGenerate a complete Kotlin MCP server project with proper structure, dependencies, and implementation using the official io.modelcontextprotocol:kotlin-sdk libr8.7Kskills.sh installs
2aahl avataredge-ttsaahl/skillsText-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. 8.6Kskills.sh installs
3github avatarruby-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.8.6Kskills.sh installs
4google avatargoogle-analytics-data-api-basicsgoogle/skillsManages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta). Use8.4Kskills.sh installs
5github avatarcsharp-mcp-server-generatorgithub/awesome-copilotGenerate a complete MCP server project in C# with tools, prompts, and proper configuration8.4Kskills.sh installs
6aws avatarconnecting-lambda-to-dynamodbaws/agent-toolkit-for-awsConnects an AWS Lambda function to DynamoDB with IAM roles, stream event source mapping, and read/write permissions. Use when setting up Lambda-DynamoDB integra6.9Kskills.sh installs