Skip to content
MCP Python SDK
Index
Initializing search
modelcontextprotocol/python-sdk
MCP Python SDK
modelcontextprotocol/python-sdk
MCP Python SDK
What's new in v2
Get started
Get started
Installation
First steps
Connect to a real host
Testing
Servers
Servers
Tools
Structured Output
Resources
URI templates
Prompts
Completions
Images, audio & icons
Handling errors
Inside your handler
Inside your handler
The Context
Dependencies
Lifespan
Elicitation
Multi-round-trip requests
Progress
Logging
Subscriptions
Running your server
Running your server
Add to an existing app
Deploy & scale
Authorization
OpenTelemetry
Serving legacy clients
Clients
Clients
Callbacks
Transports
OAuth
Identity assertion
Multiple servers
Caching
Protocol versions
Deprecated features
Advanced
Advanced
The low-level Server
Pagination
Middleware
Extensions
MCP Apps
Tasks
Troubleshooting
Migration Guide
API Reference
API Reference
mcp
mcp
cli
client
client
auth
auth
exceptions
extensions
extensions
client_credentials
identity_assertion
oauth2
utils
caching
client
context
extension
session
session_group
sse
stdio
streamable_http
tasks
os
server
shared
mcp_types
Table of contents
extensions
MCP Python SDK
API Reference
mcp
client
auth
extensions
Index
Back to top