pithelo.

modelcontextprotocol/python-sdk

The official Python SDK for the Model Context Protocol (MCP), requiring Python 3.11+. It lets you build MCP servers that expose tools, resources, and prompts, and MCP clients that connect to any MCP server, over stdio, Streamable HTTP, and SSE transports.

Developers who want to expose functions or data to LLM applications as MCP servers, or connect an agent to existing MCP servers, can use it to do so from type-hinted Python functions without writing JSON Schema or protocol handling.

AI-written summary

View on GitHub

On Pithelo

Stars, last 30 days

2026-10-31: ★ 24,715 · 2026-11-30: ★ 25,012

Badge for your README

Featured on Pithelo: #5 · 2026-10-29

[![Featured on Pithelo](https://pithelo.com/badge/modelcontextprotocol/python-sdk.svg)](https://pithelo.com/r/modelcontextprotocol/python-sdk)

Licence: MIT