mcp-rust-starter
Verified Safeby SamMorrowDrums
Overview
A feature-complete starter template for developing Model Context Protocol (MCP) servers in Rust.
Installation
cargo run --bin mcp-rust-starter-stdioEnvironment Variables
- PORT
- RUST_LOG
Security Notes
The project uses standard Rust libraries and practices, including `unsafe_code = "forbid"` in Cargo.toml. The HTTP transport uses CORS `Any` which is broad for a production environment but acceptable for a starter. The 'calculator' tool currently only returns a hint, avoiding direct evaluation of user-provided arithmetic expressions, thus mitigating a potential injection risk. No hardcoded secrets or 'eval' functions are present. Placeholder elicitation tools do not pose a direct security risk in their current form.
Similar Servers
rust-mcp-sdk
A high-performance, asynchronous Rust SDK for building Model Context Protocol (MCP) servers and clients, supporting various transports and authentication methods.
deno-mcp-template
A comprehensive template for building Model Context Protocol (MCP) servers using Deno, providing examples for prompts, resources, and tools.
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.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.