
rust-mcp-schema
by rust-mcp-stack·★ 75·Score 46
Type-safe Rust implementation of MCP protocol schemas, automatically generated from official specifications.
Overview
This repository provides a Rust implementation of the Model Context Protocol (MCP) schema with support for multiple protocol versions. It offers type-safe structures and enums with serde serialization/deserialization support. The schemas are automatically generated from the official MCP specification repository, ensuring they remain up-to-date with the latest protocol standards. The package includes a utility module (schema_utils) for enhanced type safety and productivity when developing MCP servers or clients in Rust.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when building MCP servers or clients in Rust requiring type safety and compatibility with multiple MCP protocol versions.
When NOT to choose this
Not suitable if you need a high-level framework for building MCP servers - look at rust-mcp-sdk instead.
Comparable tools
Installation
Add to your Cargo.toml:
rust-mcp-schema = "0.10.0"For Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"rust-mcp": {
"command": "path-to-your-binary",
"args": []
}
}
}FAQ
- What is the relationship between rust-mcp-schema and rust-mcp-sdk?
- rust-mcp-schema provides the type-safe implementation of the MCP protocol, while rust-mcp-sdk is a high-performance, asynchronous toolkit built on top of rust-mcp-schema for building MCP servers and clients.
- How do I switch between different MCP protocol versions?
- Enable different Cargo features in your project's Cargo.toml (e.g., '2025_06_18', 'draft') to use specific protocol versions. Multiple versions can be enabled concurrently.
Compare rust-mcp-schema with
Last updated · Auto-generated from public README + GitHub signals.