Match the project to your task before installing it.
MCP Tool Integration · Public
python-sdk
MCP tool integration project for safely connecting external tools, services, or data sources to an AI host.
Check whether this project matches your task before installing it.
What it can doMCP setup guidance, host configuration checks, tool permission boundaries, recovery steps, and acceptance checksReview the portable capability path.
Before continuingVerify in a sandboxDo not treat a preview pack as a proven local install.
GitHub snapshot23k stars3.4k forks · 185 contributors
Publication status · 2026-05-25
What is python-sdk?
- python-sdk helps connect external tools, services, or data sources to AI hosts that support MCP.
- Best fit: Developers who need Claude, Cursor, Codex, or another MCP-capable AI host to call external tools safely.
- Not for: Not for users who cannot change host configuration, grant tool permissions, or isolate network, file, and credential access.
- Capability added to an AI workflow: MCP setup guidance, host configuration checks, tool permission boundaries, recovery steps, and acceptance checks
- First safe verification step: Verify the MCP server command, permission scope, and rollback path in a non-primary host configuration first.
- Verification state: source, Quick Start, and sandbox install checks are recorded as passed.
- Top risk: The main risk is unclear tool, filesystem, network, or credential boundaries contaminating host configuration or exposing sensitive data.
- Evidence base: https://github.com/modelcontextprotocol/python-sdk, https://github.com/modelcontextprotocol/python-sdk#readme, Human Manual, Pitfall Log
01
Quick decision
Use this section to decide whether the project is worth a deeper read.MCP tool integration project for safely connecting external tools, services, or data sources to an AI host.
23k stars · 3.4k forks
02
What it can do
Translate the upstream project into concrete capabilities the user can judge before installing.Getting Started with MCP Python SDK
Related topics: FastMCP Server Development, Project Structure
Sources: [CONTRIBUTING.md:3]()
Project Structure
Related topics: Getting Started with MCP Python SDK, FastMCP Server Development
Sources: [src/mcp/server/mcpserver/resources/base.py:1-50]()
FastMCP Server Development
Related topics: Low-Level Server Development, Server Lifecycle and Context Management, Resources, Tools and Structured Output, Prompts and Templates
Sources: [src/mcp/server/mcpserver/server.py:80-120]()
Low-Level Server Development
Related topics: FastMCP Server Development, Server Lifecycle and Context Management, Transports Overview
Sources: [examples/snippets/servers/lowlevel/lifespan.py]()
Server Lifecycle and Context Management
Related topics: FastMCP Server Development, Low-Level Server Development, Context and Session Management
Sources: [src/mcp/server/mcpserver/server.py:100-101]()
Sources: https://github.com/modelcontextprotocol/python-sdk, Human Manual, Project Pack evidence, and downstream validation signals.
03
Community Discussion Evidence
Project-level external discussion stays visible on the detail page, not only inside the manual.Community Discussion Evidence
12 source-linked itemsReview these external discussions before using python-sdk with real data or production workflows. They are review inputs, not standalone proof that the project is production-ready.
-
01
User-Agent header in sHTTP transport is not forwarded to auth flow
github / github_issue
-
02
Server OAuth metadata hardcodes token_endpoint_auth_methods_supported, b
github / github_issue
-
03
Streamable HTTP server silently drops in-flight request when client reus
github / github_issue
-
04
Progress notifications cause server to hang on stdio transport
github / github_issue
-
05
mcp.server.fastmcp.FastMCP HTTP transport deadlocks after ~5 sequential
github / github_issue
-
06
streamable HTTP client parses zstd-compressed JSON response bytes as JSO
github / github_issue
-
07
MCP client does not retry authenticated request after successful OAuth t
github / github_issue
-
08
Agents talking to MCP Server, SSL verification is failing. Has some been
github / github_issue
-
09
Trying to connect to a MCP url got the follwing error any idea why ?
github / github_issue
-
10
how to return images from an mcp server
github / github_issue
-
11
Bug: `anyio.Lock` in `oauth2.py` raises "current task is not holding thi
github / github_issue
- 12
04
How to start
Only source-backed commands are shown here. Verify them in an isolated environment first.Try the prompt first
Test the workflow without installing the upstream project.
previewRead the Human Manual
Understand inputs, outputs, limits, and failure modes.
manualTake context to your AI host
Use the compiled assets in your preferred AI environment.
contextRun sandbox verification
Confirm install commands and rollback before using a primary environment.
verifynpx -y @modelcontextprotocol/inspectorOfficial start command · https://github.com/modelcontextprotocol/python-sdk#readme · verified: yes
05
Human Manual
The English page must expose the real manual, not a short placeholder.8+ sections · Human Manual
python-sdk Manual
The Model Context Protocol (MCP) Python SDK provides a comprehensive framework for building servers and clients that implement the MCP specification. MCP enables AI models to interact with...
Open the full manual- python-sdk Human Manual
- Table of Contents
- Getting Started with MCP Python SDK
- Related Pages
- Overview
- Prerequisites
- Installation
- Installing uv
Getting Started with MCP Python SDK
Related topics: FastMCP Server Development, Project Structure
Sources: [CONTRIBUTING.md:3]()
Project Structure
Related topics: Getting Started with MCP Python SDK, FastMCP Server Development
Sources: [src/mcp/server/mcpserver/resources/base.py:1-50]()
FastMCP Server Development
Related topics: Low-Level Server Development, Server Lifecycle and Context Management, Resources, Tools and Structured Output, Prompts and Templates
Sources: [src/mcp/server/mcpserver/server.py:80-120]()
Low-Level Server Development
Related topics: FastMCP Server Development, Server Lifecycle and Context Management, Transports Overview
Sources: [examples/snippets/servers/lowlevel/lifespan.py]()
Server Lifecycle and Context Management
Related topics: FastMCP Server Development, Low-Level Server Development, Context and Session Management
Sources: [src/mcp/server/mcpserver/server.py:100-101]()
06
AI Context Pack and portable assets
After deciding to continue, take the project context into your own AI host.Complete pack plus user-owned assets
These files are planning and verification assets for Claude Code, Codex, Gemini, Cursor, ChatGPT, and other AI hosts.
07
Preflight checks
Treat this page as a planning asset, not proof that your local environment is ready.- The manual is generated from source-linked project files and Doramagic validation signals.
- Community evidence warnings stay visible instead of being converted into marketing claims.
- This English page is indexable because the locale quality gate passed and explicit English index approval is enabled.
- Use the upstream repository as the final authority for installation commands, license, and version-specific behavior.
08
Pitfall Log and verification risks
Doramagic surfaces high-risk items before users treat a candidate capability as verified.Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.
Review upstream issue
The source signal needs review before production use.