mcp-server-rust
Verified Safeby JamesChampion
Overview
Provides a Rust library for building servers that expose custom tools to AI assistants like Claude using the Model Context Protocol (MCP) and JSON-RPC 2.0 over stdio.
Installation
cargo run --example echo_serverEnvironment Variables
- RUST_LOG
Security Notes
The server framework itself is robust, utilizing stdio transport and `serde_json` for protocol handling, which mitigates network-based and parsing-based risks. No 'eval'-like functions, obfuscation, or hardcoded secrets were found in the provided source. The primary security consideration for users of this library lies in the implementation of custom `Tool`s, specifically how they validate and process `serde_json::Value` arguments in their `call` method. Improper validation could lead to vulnerabilities like command injection if tools execute external commands based on untrusted input.
Similar Servers
rust-mcp-schema
Provides a type-safe Rust implementation of the Model Context Protocol (MCP) schema, enabling developers to build robust MCP servers and clients.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
mcp-framework
A Rust framework for building AI agents with built-in Model Context Protocol (MCP) support, multi-LLM integration, and a web-based inspector for debugging.
codex-mcp-rs
This server acts as an MCP (Model Context Protocol) wrapper for the Codex CLI, enabling AI-assisted coding tasks through compatible clients like Claude Code.