qmetrics.net

MCP Python SDK

Official Python SDK for Model Context Protocol

MCP Python SDK screenshot

The MCP Python SDK lets you implement MCP servers and clients that expose tools, resources, and prompts to LLM hosts.

Overview

The MCP Python SDK is the official Python implementation of the Model Context Protocol. MCP defines a standardized way for applications to supply context and callable capabilities to large language model hosts, similar in spirit to a web API tailored for LLM workflows.

With the SDK you can stand up MCP servers that register tools, resources, and prompts, and build clients that connect to any compliant server. Decorators and type hints can define schemas and handlers without hand-written JSON Schema or protocol parsing.

Supported transports include stdio, Streamable HTTP, and server-sent events. An optional CLI extra provides commands such as dev, run, and install, including a dev mode that pairs with the MCP Inspector for interactive testing.

Documentation covers getting started, client usage, mounting servers in existing FastAPI or Starlette apps, migration between major versions, and a generated API reference. Python 3.11 or newer is required.

Key features

  • MCP server and client builders
  • Tool resource and prompt exposure
  • stdio HTTP and SSE transports
  • Type-hint driven tool schemas
  • Optional mcp CLI commands
  • FastAPI and Starlette mounting
  • MCP Inspector dev workflow
  • Migration guides between versions

Use cases

  • Exposing app data to LLM hosts
  • Building custom MCP tool servers
  • Connecting Python apps to MCP servers
  • HTTP-deployed MCP endpoints
  • Local stdio MCP integrations

Tags

Similar software

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT

JeecgBoot

Enterprise AI low-code platform on Java and Vue

JeecgBoot is an AI low-code platform with permissions, workflows, reporting, and built-in AI apps. Teams deploy it privately to generate CRUD, forms, and business modules quickly.

★ 48.6k⟳ 16 days agoApache-2.0

Agno

Platform for building, running and managing AI agents in your own cloud

Agno is an agent platform for building agents, teams and workflows, then running them as durable services with API and MCP access. It runs in your own cloud and includes a control UI.

★ 43.3k⟳ todayApache-2.0

Mastra

TypeScript framework for AI agents and apps

Mastra helps teams build AI agents, workflows, and apps in TypeScript with model routing, tools, memory, MCP, and observability. It embeds in React, Next.js, and Node or runs as its own server.

★ 29.9k⟳ todayApache-2.0 · open core

AI SDK

TypeScript toolkit for AI applications and agents

The AI SDK is a provider-agnostic TypeScript library for building AI-powered applications and agents with popular UI frameworks and Node.js runtimes.

★ 28.3k⟳ todayApache-2.0