Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

python-mcp-server-generator

Skill by github

Generates a Python Model Context Protocol server project using the official MCP Python SDK v2. It is for developers who want to expose Python functions, an API, or a database to AI clients as MCP tools.

  • Score 94
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install python-mcp-server-generator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/python-mcp-server-generator ~/.claude/skills/python-mcp-server-generator

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install python-mcp-server-generator in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an assistant through creating a new Model Context Protocol server in Python. It sets up a uv project with the mcp[cli] v2 package and pytest, writes a server.py with typed tools and docstrings, adds in-memory tests, and configures clients such as VS Code and Claude Desktop. The skill targets users who want to expose Python functions, an API, or a database to AI clients as MCP tools.

The workflow has five steps: create the project, write the server, write the tests, run pytest until it passes, and configure the client. Stdio is the default transport, and Streamable HTTP guidance is read only when the user asks for a remote or HTTP server. The skill also lists SDK v2 pitfalls so that SDK v1 patterns are not copied. It is not meant for MCP clients or for servers in other languages.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project setupCreates a uv project with the mcp[cli] v2 package and pytest.
  • Typed toolsWrites tools with full type hints and docstrings, with output schemas taken from return types.
  • Tool errorsRaises ToolError for errors that the model must read.
  • In-memory testsWrites pytest tests that use an in-memory Client with no subprocess or port.
  • Client configurationWrites a .vscode/mcp.json entry and runs mcp install for Claude Desktop.
  • MCP InspectorExplains how to open the MCP Inspector with uv run mcp dev server.py.

What you need

  • uv
  • Python 3.10 or later
  • Network access to install packages
  • Node.js for the MCP Inspector

Try asking

  • Create a Python MCP server that exposes my database as tools
  • Make an MCP server in Python with a tool that divides two numbers
  • Set up a uv project for an MCP server with in-memory tests

Good to know

  • The 2026-07-28 revision has no SSE transport. Use Streamable HTTP.
  • ctx.elicit() fails on a 2026-07-28 connection. Use Resolve and Elicit instead.
  • Sampling, protocol logging and roots are deprecated and should not be added to new servers.
  • Do not raise MCPError for tool failures. Use ToolError.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/python-mcp-server-generator/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/streamable-http.md2 KB

Alternatives to python-mcp-server-generator

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

python-mcp-server-generator: common questions

Which MCP SDK does this skill use?

It uses the official MCP Python SDK v2 and the MCPServer class. The source says SDK v2 removed FastMCP.

Does it set up remote MCP servers?

Stdio is the default. Streamable HTTP guidance is read only when the user asks for a remote or HTTP server.

Can it create MCP clients?

No. The source says not to use the skill for an MCP client or for a server in another language.

How do I install python-mcp-server-generator?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is python-mcp-server-generator free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is python-mcp-server-generator safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to python-mcp-server-generator?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

python-mcp-server-generator Install

Add to stack

Loading.