MCP Directory
Back

python-sdk

by modelcontextprotocol · Python · ★ 22,831

The official Python SDK for Model Context Protocol servers and clients

Install

pip install git+https://github.com/modelcontextprotocol/python-sdk.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "python-sdk": {
      "command": "uvx",
      "args": [
        "git+https://github.com/modelcontextprotocol/python-sdk.git"
      ]
    }
  }
}

From the README

Python implementation of the Model Context Protocol (MCP) [![PyPI][pypi-badge]][pypi-url] [![MIT licensed][mit-badge]][mit-url] [![Python Version][python-badge]][python-url] [![Documentation][docs-badge]][docs-url] [![Protocol][protocol-badge]][protocol-url] [![Specification][spec-badge]][spec-url] > [!NOTE] > **This README documents v1.x of the MCP Python SDK (the current stable release).** > > For v1.x code and documentation, see the [ branch](https://github.com/modelcontextprotocol/python-sdk/tree/v1.x). > For the upcoming v2 documentation (pre-alpha, in development on ), see [](README.v2…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related developer tools servers