MCP Python SDK
SUMMARY
Initializing search
    modelcontextprotocol/python-sdk
    modelcontextprotocol/python-sdk
    • MCP Python SDK
    • Installation
    • Tutorial - User Guide
      • First steps
      • Tools
      • Structured Output
      • Resources
      • Prompts
      • The Context
      • Dependencies
      • Handling errors
      • Lifespan
      • Media
      • Completions
      • Elicitation
      • Progress
      • Logging
      • Testing
    • Running your server
      • ASGI
    • The Client
      • Client callbacks
      • Client transports
      • Protocol versions
      • Multi-round-trip requests
      • The low-level Server
      • URI templates
      • Pagination
      • Caching hints
      • Subscriptions
      • Middleware
      • Extensions
      • MCP Apps
      • OpenTelemetry
      • Authorization
      • OAuth clients
      • Identity assertion
      • Session groups
      • Deprecated features
    • Migration Guide
      • mcp
        • cli
          • claude
          • cli
        • client
          • auth
            • exceptions
            • extensions
              • client_credentials
              • identity_assertion
            • oauth2
            • utils
          • caching
          • client
          • context
          • extension
          • session
          • session_group
          • sse
          • stdio
          • streamable_http
        • os
          • posix
            • utilities
          • win32
            • utilities
        • server
          • apps
          • auth
            • errors
            • handlers
              • authorize
              • metadata
              • register
              • revoke
              • token
            • json_response
            • middleware
              • auth_context
              • bearer_auth
              • client_auth
            • provider
            • routes
            • settings
          • caching
          • connection
          • context
          • elicitation
          • extension
          • lowlevel
            • helper_types
            • server
          • mcpserver
            • context
            • exceptions
            • prompts
              • base
              • manager
            • resolve
            • resources
              • base
              • resource_manager
              • templates
              • types
            • server
            • tools
              • base
              • tool_manager
            • utilities
              • context_injection
              • func_metadata
              • logging
              • types
          • models
          • request_state
          • runner
          • session
          • sse
          • stdio
          • streamable_http
          • streamable_http_manager
          • subscriptions
          • transport_security
          • validation
        • shared
          • auth
          • auth_utils
          • context
          • direct_dispatcher
          • dispatcher
          • exceptions
          • extension
          • inbound
          • jsonrpc_dispatcher
          • memory
          • message
          • metadata_utils
          • path_security
          • peer
          • session
          • tool_name_validation
          • transport_context
          • uri_template
      • mcp_types
        • jsonrpc
        • methods
        • v2025_11_25
        • v2026_07_28
        • version

    SUMMARY

    • mcp
      • cli
        • claude
        • cli
      • client
        • auth
          • exceptions
          • extensions
            • client_credentials
            • identity_assertion
          • oauth2
          • utils
        • caching
        • client
        • context
        • extension
        • session
        • session_group
        • sse
        • stdio
        • streamable_http
      • os
        • posix
          • utilities
        • win32
          • utilities
      • server
        • apps
        • auth
          • errors
          • handlers
            • authorize
            • metadata
            • register
            • revoke
            • token
          • json_response
          • middleware
            • auth_context
            • bearer_auth
            • client_auth
          • provider
          • routes
          • settings
        • caching
        • connection
        • context
        • elicitation
        • extension
        • lowlevel
          • helper_types
          • server
        • mcpserver
          • context
          • exceptions
          • prompts
            • base
            • manager
          • resolve
          • resources
            • base
            • resource_manager
            • templates
            • types
          • server
          • tools
            • base
            • tool_manager
          • utilities
            • context_injection
            • func_metadata
            • logging
            • types
        • models
        • request_state
        • runner
        • session
        • sse
        • stdio
        • streamable_http
        • streamable_http_manager
        • subscriptions
        • transport_security
        • validation
      • shared
        • auth
        • auth_utils
        • context
        • direct_dispatcher
        • dispatcher
        • exceptions
        • extension
        • inbound
        • jsonrpc_dispatcher
        • memory
        • message
        • metadata_utils
        • path_security
        • peer
        • session
        • tool_name_validation
        • transport_context
        • uri_template
    • mcp_types
      • jsonrpc
      • methods
      • v2025_11_25
      • v2026_07_28
      • version
    Made with Material for MkDocs