MCP Directory
Back

python-sdk

by modelcontextprotocol · Python · ★ 23,470

The official Python SDK for Model Context Protocol servers and clients

Install

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

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "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).** > > **v2 is in alpha.** Pre-releases are published to PyPI as and can be installed with an explicit pin, for example . See [](README.v2.md) for the v2 documentation and the [migration guide](docs/migrat…
Read full README on GitHub →

Related other servers