Model Context Protocol (MCP) Types
About
Model Context Protocol (MCP) Types is a Rust crate providing strongly-typed bindings generated from the official Model Context Protocol (MCP) JSON Schema (version 2024-11-05). It gives developers idiomatic Rust types for the MCP specification, with full serde support, to…
Details
- License
- MIT
Explore
- Strongly-typed Rust bindings for MCP specification
- Generated from official JSON Schema (2024-11-05)
- Full serde support
- Uses typify for schema-to-Rust conversion
The generated types are available through the types module. Import them in your code:
use mcp::types::*;
This repository contains Rust types generated from the Model Context Protocol (MCP) specification.
About
The Model Context Protocol (MCP) is a specification for standardizing context exchange between AI models and their runtime environments. This crate provides strongly-typed Rust bindings generated from the official MCP JSON Schema.
Schema Source
The types are generated from the official MCP schema version 2024-11-05:
- Schema URL: https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json
- Specification Documentation: https://spec.modelcontextprotocol.io/specification/2024-11-05/
Usage
The generated types are available through the types module. Import them in your code:
use mcp::types::*;
Generation
The types are generated using typify, which converts JSON Schema into idiomatic Rust types with full serde support.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



