MCP Python SDK

Official Python SDK for Model Context Protocol servers and clients

Visit github.com FreeOpen source

The official Python SDK for the Model Context Protocol provides a high-level server API for exposing tools, resources, and prompts, plus client libraries and transports for connecting to MCP servers.

Key features

  • High-level server API with decorators
  • Client library for MCP servers
  • stdio and Streamable HTTP transports
  • Development tooling via the mcp CLI

Similar tools

  • FastMCP

    Fast, Pythonic framework for building MCP servers and clients

    by PrefectFreeOpen sourceCLI
  • MCP TypeScript SDK

    Official TypeScript SDK for building MCP servers and clients

    FreeOpen sourceCLI
  • Claude Agent SDK

    Build custom agents on the same agent loop and tools as Claude Code

    by AnthropicFreeCLI
  • OpenAI Agents SDK

    Lightweight framework for multi-agent workflows with handoffs and tracing

    by OpenAIFreeOpen sourceCLI
  • Vercel AI SDK

    Provider-agnostic TypeScript toolkit for AI apps and agents

    by VercelFreeOpen sourceCLI
  • MCP Inspector

    Official visual testing tool for Model Context Protocol servers

    FreeOpen sourceWeb, CLI

Built a tool like MCP Python SDK? Submit it for review