CreateWithAIHub

API / SDK Model Context Protocol project

MCP Python SDK

Official Python SDK for building Model Context Protocol servers and clients, with an optional mcp CLI.

MCP SDKFreeOpen source
Visit website ↗
Save

What it is

The MCP Python SDK is the official Python implementation of the Model Context Protocol. It lets you build MCP servers that expose tools, resources and prompts to any MCP host, and MCP clients that connect to any server, over stdio, Streamable HTTP and SSE. The optional cli extra adds the mcp command for running and testing servers during development.

What it's useful for

Writing a small Python MCP server that gives an AI assistant access to your scripts, files or APIs, or connecting a Python agent to existing MCP servers.

Key features

  • Build MCP servers with tools, resources and prompts
  • Build MCP clients that connect to any MCP server
  • stdio, Streamable HTTP and SSE transports
  • mcp CLI (mcp dev, mcp run, mcp install) via the cli extra

How to use it

Before you start

  • Python 3.11+
Install with uv
uv add "mcp[cli]"
Install with pip
pip install "mcp[cli]"

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Website tech stack

Hosting & CDN
Cloudflare, Vercel
Framework
Next.js
Docs platform
Mintlify

Detected on modelcontextprotocol.io on 25 Nov 2026. This describes the public website only; the product itself may use different technology.

Alternatives

Official TypeScript SDK for building Model Context Protocol servers and clients on Node.js, Bun and Deno.

FreeOpen source

MCP servers for this

AWS Labs' collection of open-source MCP servers for AWS docs, the AWS API, infrastructure as code, databases, costs and more.

FreeOpen source

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Skills for this

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Vercel's collection of Agent Skills for React/Next.js performance, UI review, writing style and Vercel deploys.

FreeOpen source

Anthropic skill that has Claude test local web apps by writing Python Playwright scripts, with screenshots and browser logs.

FreeOpen source

Related resources

Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.

Free plan + paid

Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.

Paid

OpenAI's open-source coding agent that runs locally in your terminal, with IDE, desktop and cloud variants.

Free plan + paidOpen source

Cognition's autonomous software engineering agent that works in a cloud VM and opens pull requests.

Free plan + paid

Type to search. Use ↑ ↓ and Enter.