drio
Open app

Model Context Protocol (MCP) Schema for Rust

Source

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

Catalog onlyCatalog onlySTDIO

Overview

rust-mcp-schema is a type-safe implementation of the official Model Context Protocol (MCP) schema in Rust, designed to facilitate seamless integration between LLM applications and external data sources and tools.

To use rust-mcp-schema, include it in your Rust project by adding it to your Cargo.toml file. You can enable specific schema versions as needed.

  • Type-safe implementation of the MCP protocol specification. - Auto-generated schemas that are always synchronized with the official schema specifications. - Includes all schema versions, including draft versions for early adoption. - A complimentary schema utility module (schema_utils) to enhance productivity.
  1. Developing an MCP Server to handle requests and responses.
  2. Creating an MCP Client to interact with an MCP Server.
  3. Building custom AI workflows that require integration with LLMs.

Add to your AI client

Use these steps to connect Model Context Protocol (MCP) Schema for Rust in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "rust-mcp-schema-rust-mcp-stack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-mcp-schema-rust-mcp-stack"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is an open protocol that enables integration between LLM applications and external data sources.

Is rust-mcp-schema free to use?

Yes! rust-mcp-schema is open-source and free to use.

What is included in rust-mcp-schema?

It provides an implementation of the MCP schema but does not include transport implementations for sending and receiving messages.