Back to Home
SamMorrowDrums icon

mcp-rust-starter

Verified Safe

by SamMorrowDrums

Overview

A feature-complete starter template for developing Model Context Protocol (MCP) servers in Rust.

Installation

Run Command
cargo run --bin mcp-rust-starter-stdio

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2026-01-18

Tags

MCPRustServerTemplateAI