Skip to main content

MCP Types

The wire types for the Model Context Protocol.

This package holds the protocol message models, JSON-RPC envelope types, per-version surface validators, and the protocol-version registry. Its only runtime dependencies are pydantic and typing-extensions, so it can be installed on its own when you need to (de)serialize MCP traffic without pulling in the full mcp SDK.

from mcp_types import Tool, CallToolRequest
from mcp_types.version import LATEST_PROTOCOL_VERSION

The mcp package re-exports these names, so existing from mcp import Tool imports keep working.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_types-2.0.0.tar.gz (66.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_types-2.0.0-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_types-2.0.0.tar.gz.

File metadata

  • Download URL: mcp_types-2.0.0.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_types-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d7d939b9285c9961ae8866ba75ef85da34d12bafe276efbf4eb6a131786d8379
MD5 136d41c1f1e60dabd19d6813480f5719
BLAKE2b-256 bb569b8e1c152f61f6c6b07c4b5896c88c7d0ae90bac6ee6306f852fcc5c1eb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0.tar.gz:

Publisher: publish-pypi.yml on modelcontextprotocol/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_types-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_types-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 69.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_types-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b2de797ca2797f568b79529e1b25948e34de511bcc0bd82fef1039a6d1b8eb0
MD5 9023e5cb326d89a2d4dcde5943de8e70
BLAKE2b-256 f54cc78d78c3d52b0ac594ad7cc8ef5972adfe070e3597a8a4c6ce0cd39196ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on modelcontextprotocol/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page