MCP Catalogs
Homerust-mcp-schema screenshot

rust-mcp-schema

by rust-mcp-stack·75·Score 46

Type-safe Rust implementation of MCP protocol schemas, automatically generated from official specifications.

developer-toolsai-llm
7
Forks
1
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Building MCP servers in Rust with type safety
you:Creating MCP clients that interact with various LLM applications
you:Developing AI-powered tools that integrate with external data sources via MCP
you:What is the relationship between rust-mcp-schema and rust-mcp-sdk?
you:How do I switch between different MCP protocol versions?

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

rust-mcp-sdkmcp-tspython-mcp

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.