← All projects
Developer building blocks

MCP Python SDK

The official Python toolkit for connecting AI apps to tools and data using the Model Context Protocol.

Widely used

What it does

The Model Context Protocol (MCP) is a standard way to give AI apps access to tools and information, a bit like a universal plug. This toolkit lets Python programmers build MCP servers, which offer tools and data, and MCP clients, which connect to them.

Its makers show that a working server takes only a few lines of code, with the toolkit handling the protocol details.

Who it's for

Python developers who want to plug their tools or data into AI assistants.

Can I use it without coding?

Developers only. A programming library. New to this? Start here.

Can I run it?

Cost
FreeNothing to pay or sign up for.
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (MIT): Very permissive: free to use, change and share, including for business.
  • More on staying safe