Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0b2.tar.gz (65.9 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.0b2-py3-none-any.whl (68.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_types-2.0.0b2.tar.gz
  • Upload date:
  • Size: 65.9 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.0b2.tar.gz
Algorithm Hash digest
SHA256 094fa7160106819ab39a1586179c3a9f070bfd833d0a6f8fcb30a54a986cc402
MD5 51978b5e3d5f33aced1373c81e26e1db
BLAKE2b-256 ad21db529130ac8edd1d844fc322862afeceaf2b7f610a591fa528002b022e07

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0b2.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.0b2-py3-none-any.whl.

File metadata

  • Download URL: mcp_types-2.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 68.9 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.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 35c9c33abb90a77dc6ad1daecaa6407c788c2f32d14d52dad8f843c4f008eae2
MD5 2d59eefa9bb4908273255a572db328d6
BLAKE2b-256 1ee1c466ceacdaa929396d35ad45176398acd0c416fead0970d3ad22618a19d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0b2-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