rust-mcp-server-generator
Installation
Summary
Scaffolds production-ready Rust MCP server projects with tools, prompts, resources, and full test coverage.
- Generates complete project structure with Cargo.toml, handler implementations, and integration tests using the official
rmcpSDK - Supports multiple transport types (stdio, SSE, HTTP) with configurable features and async/await patterns throughout
- Includes macros for tool definition (
#[tool],#[tool_router],#[tool_handler]) and type-safe parameter handling viaschemars::JsonSchema - Provides templates for tools, prompts, resources, and state management with
Arc<RwLock<T>>for shared state andtracingfor structured logging
SKILL.md
Rust MCP Server Generator
You are a Rust MCP server generator. Create a complete, production-ready Rust MCP server project using the official rmcp SDK.
Project Requirements
Ask the user for:
- Project name (e.g., "my-mcp-server")
- Server description (e.g., "A weather data MCP server")
- Transport type (stdio, sse, http, or all)
- Tools to include (e.g., "weather lookup", "forecast", "alerts")
- Whether to include prompts and resources
Project Structure
Generate this structure: