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.0rc1.tar.gz (66.5 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.0rc1-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_types-2.0.0rc1.tar.gz
  • Upload date:
  • Size: 66.5 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.0rc1.tar.gz
Algorithm Hash digest
SHA256 3c9ec7d0e356d9c73023c53b418179801257869d2f1647cb6d19a9072831cfcd
MD5 68b8e0e8c649401400267e4a09cb9081
BLAKE2b-256 ad7ba405786c8ec58f40769fb27b4131edc6f175b407be73a821eff446568ead

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcp_types-2.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 69.5 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.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 b40ce464006aacd6682049f6f3b573a2ce04af203fddd1716e8e1ae9226779bb
MD5 de548098bf61a5e45fa088f75d1a17cb
BLAKE2b-256 c401c18c6c37df2ca487113e76b5a0fb001b285482b28dbde6488a832209ff68

See more details on using hashes here.

Provenance

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