python-mcp-server-generator
Generate a complete MCP server project in Python with tools, resources, and proper configuration
npx skills add github/awesome-copilot --skill python-mcp-server-generator --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Generate Python MCP Server Create a complete Model Context Protocol (MCP) server in Python with the following specifications: ## Requirements 1. **Project Structure**: Create a new Python project with proper structure using uv 2. **Dependencies**: Include mcp[cli] package with uv 3. **Transport Type**: Choose between stdio (for local) or streamable-http (for remote) 4. **Tools**: Create at least one useful tool with proper type hints 5. **Error Handling**: Include comprehensive error handling and validation ## Implementation Details ### Project Setup - Initialize with `uv init project-name` - Add MCP SDK: `uv add "mcp[cli]"` - Create main server file (e.g., `server.py`) - Add `.gitignore` for Python projects - Configure for direct execution with `if __name__ == "__main__"` ### Server Configuration - Use `FastMCP` class from `mcp.server.fastmcp` - Set server name and optional instructions - Choose transport: stdio (default) or streamable-http - For HTTP: optionally configure host, port, and stateless mode ### Tool Implementation - Use `@mcp.tool()` decorator on functions - Always include type hints - they generate schemas automatically - Write clear docstrings - they become tool d
- Requirements
- Implementation Details
- Project Setup
- Server Configuration
- Tool Implementation
- Resource/Prompt Setup (Optional)
- Code Quality
- Example Tool Types to Consider
- Configuration Options
- Testing Guidance
- Additional Features to Consider
- Best Practices
What does the python-mcp-server-generator skill do?
Generate a complete MCP server project in Python with tools, resources, and proper configuration
How do I install it?
Run `npx skills add github/awesome-copilot --skill python-mcp-server-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.