mcp-types
Model Context Protocol wire types
What it is and what it does
mcp-types holds the wire types, protocol message models, JSON-RPC envelope types, and protocol-version registry for the Model Context Protocol. It lets you work with MCP traffic—serializing and deserializing protocol messages—without pulling in the full SDK. The package depends only on pydantic and typing-extensions, making it suitable for inclusion in environments where you want minimal overhead.
The package is actively maintained and supports Python 3.10 through 3.14. It re-exports its types through the main mcp package, so existing code using `from mcp import Tool` continues to work. If you need to handle MCP messages in isolation—for example, in a service that processes protocol traffic but doesn't need higher-level abstractions—this package provides exactly that surface.
Use it for:
- Deserialize incoming MCP protocol messages in a standalone service without the full SDK.
- Build custom MCP clients or servers that need to validate and serialize protocol-compliant messages.
- Integrate MCP message handling into an existing application that already has pydantic as a dependency.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the wire types and protocol message models for the Model Context Protocol, enabling serialization and deserialization of MCP traffic with minimal dependencies.
Yes. This is a production-stable, actively maintained package with minimal dependencies and no known vulnerabilities. Install it if you need to work with Model Context Protocol messages in isolation or want to avoid the overhead of the full SDK. The low install friction and permissive license make it a straightforward addition to any project that touches MCP.
Install
mcp-types on PyPI
pip
pip install mcp-typesuv
uv add mcp-typespoetry
poetry add mcp-typesInstalling mcp-types
Before you install
Active maintenance with a recent release 17 days old. Low install friction: pure Python wheel with only pydantic and typing-extensions as runtime dependencies.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects without significant legal constraints.
Quickstart
pip install mcp-types
from mcp_types import Tool, CallToolRequest
from mcp_types.version import LATEST_PROTOCOL_VERSION
Requires Python 3.10 or later.
Verify before relying
- Performance characteristics when deserializing large or deeply nested MCP messages
- Whether the package is suitable for production use beyond the classifier
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pydantic, typing-extensions |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,666,612/month — #1,372 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mcp_types-2.0.0-py3-none-any.whl
Keywords: automation, llm, mcp
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
fastapi-mcpAutomatically exposes FastAPI endpoints as…
permissive · top 5,000 on PyPI
langchain-mcp-adaptersConverts Anthropic Model Context Protocol (MCP)…
permissive · top 5,000 on PyPI
fastmcp-extensionsProvides hardened patterns and utilities for…
permissive · top 15,000 on PyPI
chroma-mcpChroma MCP Server bridges Chroma's vector…
permissive · top 15,000 on PyPI
json-rpcImplements JSON-RPC 2.0 and 1.0 protocol…
permissive · top 5,000 on PyPI
django-mcp-serverExposes Django models and custom logic as Model…
permissive · top 15,000 on PyPI
fastmcpFastMCP is a Python framework for building…
permissive · top 1,000 on PyPI
mcp-server-qdrantExposes Qdrant vector search as a Model Context…
permissive · top 5,000 on PyPI
ajsonrpcImplements the JSON-RPC 2.0 protocol with an…
permissive · top 5,000 on PyPI