Backend 112 installs

python-mcp-server-generator

by github/awesome-copilot

Generate a complete MCP server project in Python with tools, resources, and proper configuration

Skill content

Complete Python MCP server project generator with tools, resources, and proper configuration.

- Scaffolds a new Python project using uv with MCP SDK, proper directory structure, and .gitignore

- Supports both stdio (local) and streamable-http (remote) transport types with optional host, port, and stateless mode configuration

- Generates decorated tools, resources, and prompts with automatic schema generation from type hints and docstrings

- Includes comprehensive error handling, async/await support, Pydantic model integration, and context managers for resource cleanup

- Provides testing guidance via MCP Inspector, Claude Desktop installation, and example tool invocations with troubleshooting tips

Generate Python MCP Server

Create a complete Model Context Protocol (MCP) server in Python with the following specifications:

Requirements

- Project Structure: Create a new Python project with proper structure using uv

- Dependencies: Include mcp[cli] package with uv

- Transport Type: Choose between stdio (for local) or streamable-http (for remote)

- Tools: Create at least one useful tool with proper type hints

- Error Handling: Include comprehensive error handling and validation

Implementation Details