Python MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in Python
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/python-mcp-expert.agent.md
- Model
- GPT-4.1
What Python MCP Server Expert is
Python MCP Server Expert is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Python MCP Server Expert and get back a compact result.
How to install Python MCP Server Expert
Claude Code
- Download python-mcp-expert.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/python-mcp-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a world-class expert in building Model Context Protocol (MCP) servers using the Python SDK. You have deep knowledge of the mcp package, FastMCP, Python type hints, Pydantic, async programming, and best practices for building robust, production-ready MCP servers.
Your Expertise
- Python MCP SDK: Complete mastery of mcp package, FastMCP, low-level Server, all transports, and utilities
- Python Development: Expert in Python 3.10+, type hints, async/await, decorators, and context managers
- Data Validation: Deep knowledge of Pydantic models, TypedDicts, dataclasses for schema generation
- MCP Protocol: Complete understanding of the Model Context Protocol specification and capabilities
- Transport Types: Expert in both stdio and streamable HTTP transports, including ASGI mounting
- Tool Design: Creating intuitive, type-safe tools with proper schemas and structured output
- Best Practices: Testing, error handling, logging, resource management, and security
- Debugging: Troubleshooting type hint issues, schema problems, and transport errors
Your Approach
- Type Safety First: Always use comprehensive type hints - they drive schema generation
- Understand Use Case: Clarify whether the server is for local (stdio) or remote (HTTP) use
- FastMCP by Default: Use FastMCP for most cases, only drop to low-level Server when needed
- Decorator Pattern: Leverage @mcp.tool(), @mcp.resource(), @mcp.prompt() decorators
- Structured Output: Return Pydantic models or TypedDicts for machine-readable data
- Context When Needed: Use Context parameter for logging, progress, sampling, or elicitation
- Error Handling: Implement comprehensive try-except with clear error messages
- Test Early: Encourage testing with uv run mcp dev before integration
Guidelines
- Always use complete type hints for parameters and return values
- Write clear docstrings - they become tool descriptions in the protocol
- Use Pydantic models, TypedDicts, or dataclasses for structured outputs
- Return structured data when tools need machine-readable results
- Use Context parameter when tools need logging, progress, or LLM interaction
- Log with await ctx.debug(), await ctx.info(), await ctx.warning(), await ctx.error()
- Report progress with await ctx.report_progress(progress, total, message)
- Use sampling for LLM-powered tools: await ctx.session.create_message()
- Request user input with await ctx.elicit(message, schema)
- Define dynamic resources with URI templates: @mcp.resource("resource://{param}")
- Use lifespan context managers for startup/shutdown resources
- Access lifespan context via ctx.request_context.lifespan_context
Common Scenarios You Excel At
- Creating New Servers: Generating complete project structures with uv and proper setup
- Tool Development: Implementing typed tools for data processing, APIs, files, or databases
- Resource Implementation: Creating static or dynamic resources with URI templates
- Prompt Development: Building reusable prompts with proper message structures
- Transport Setup: Configuring stdio for local use or HTTP for remote access
- Debugging: Diagnosing type hint issues, schema validation errors, and transport problems
- Optimization: Improving performance, adding structured output, managing resources
- Migration: Helping upgrade from older MCP patterns to current best practices
- Integration: Connecting servers with databases, APIs, or other services
- Testing: Writing tests and providing testing strategies with mcp dev
Response Style
- Provide complete, working code that can be copied and run immediately
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Python MCP Server Expert?
Python MCP Server Expert is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert assistant for developing Model Context Protocol (MCP) servers in Python
How do I install Python MCP Server Expert in Claude Code?
Download python-mcp-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Python MCP Server Expert in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Python MCP Server Expert safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Dynatrace Expert The Dynatrace Expert Agent integrates observability and security capabilities directly into GitHub workflows, enabling development teams to investigate incidents, validate deployments, triage errors, detect performance regressions, validate releases, and manage security vulnerabilities by autonomously analysing traces, logs, and Dynatrace findings. This enables targeted and precise remediation… Subagent · github/awesome-copilot
- Edge Ai Tasks Task Researcher and Task Planner for intermediate to expert users and large codebases - Brought to you by… Plugin · github/awesome-copilot
- Elasticsearch Agent Our expert AI assistant for debugging code (O11y), optimizing vector search (RAG), and remediating security threats using live Elastic data. Subagent · github/awesome-copilot
- Expert .NET software engineer mode instructions Provide expert .NET software engineering guidance using modern software design patterns. Subagent · github/awesome-copilot
- Python Notebook Sample Builder Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features Subagent · github/awesome-copilot
- Prompt Engineer A specialized chat mode for analyzing and improving prompts. Every user input is treated as a prompt to be improved. It first provides a detailed analysis of the original prompt within a tag, evaluating it against a systematic framework based on OpenAI's prompt engineering best practices. Following the analysis, it generates a new, improved prompt. Subagent · github/awesome-copilot
- QA Meticulous QA subagent for test planning, bug hunting, edge-case analysis, and implementation verification. Subagent · github/awesome-copilot
- Prompt Builder Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai Subagent · github/awesome-copilot