Agent skill · Backend & API

python-mcp-server-generator

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

GitHub68,948★ · +463/wk · 2 repos on radarProfile →
copilotMIT
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/python-mcp-server-generator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 37,432 · +281 this week
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Requirements
  2. Implementation Details
  3. Project Setup
  4. Server Configuration
  5. Tool Implementation
  6. Resource/Prompt Setup (Optional)
  7. Code Quality
  8. Example Tool Types to Consider
  9. Configuration Options
  10. Testing Guidance
  11. Additional Features to Consider
  12. Best Practices
More from awesome-copilot
All skills →
About this skill
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.

Keep going