Skip to content

Rust MCP Schema

A type-safe implementation of the official Model Context Protocol (MCP) schema in Rust.

Install

$git clone https://github.com/rust-mcp-stack/rust-mcp-schema

Install command taken from the project's README or registry entry. Always review code before running it.

Model Context Protocol (MCP) Schema for Rust

A type-safe Rust implementation of the official Model Context Protocol (MCP) schema, supporting all official MCP Protocol versions:

  • 2026-07-28 (default)
  • 2025-11-25
  • 2025-06-18
  • 2025-03-26
  • 2024-11-05
  • draft

The MCP schemas in this repository are automatically generated from the official Model Context Protocol, ensuring they are always up-to-date and aligned with the latest official specifications.


Note: This crate only provides an implementation of the MCP schema.

If you are looking for a high-performance, asynchronous toolkit for building MCP servers and clients, checkout rust-mcp-sdk. Focus on your app's logic while rust-mcp-sdk takes care of the rest!


Contents:

Features

  • 🧩 Type-safe implementation of the MCP protocol specification.
  • 💎 Auto-generated schemas are always synchronized with the official schema specifications.
  • 📜 Includes all official released versions : 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 and draft version for early adoption.
  • 🛠 Complimentary schema utility module (schema_utils) to boost productivity and ensure development integrity.

How can this crate be used?

This Crate provides Rust implementation of the official Model Context Protocol (MCP) schema.

Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

This crate includes the schema with serialization / deserialization support via serde_json, along with a minimal implementation of the necessary traits for structs and enums. This helps in creating and using various MCP messages such as requests, responses, notifications, and errors.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related