rust-mcp-server-generator
Generate a complete Rust Model Context Protocol server project with tools, prompts, resources, and tests using the official rmcp SDK
npx skills add github/awesome-copilot --skill rust-mcp-server-generator --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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: 1. **Project name** (e.g., "my-mcp-server") 2. **Server description** (e.g., "A weather data MCP server") 3. **Transport type** (stdio, sse, http, or all) 4. **Tools to include** (e.g., "weather lookup", "forecast", "alerts") 5. **Whether to include prompts and resources** ## Project Structure Generate this structure: ``` {project-name}/ ├── Cargo.toml ├── .gitignore ├── README.md ├── src/ │ ├── main.rs │ ├── handler.rs │ ├── tools/ │ │ ├── mod.rs │ │ └── {tool_name}.rs │ ├── prompts/ │ │ ├── mod.rs │ │ └── {prompt_name}.rs │ ├── resources/ │ │ ├── mod.rs │ │ └── {resource_name}.rs │ └── state.rs └── tests/ └── integration_test.rs ``` ## File Templates ### Cargo.toml ```toml [package] name = "{project-name}" version = "0.1.0" edition = "2021" [dependencies] rmcp = { version = "0.8.1", features = ["server"] } rmcp-macros = "0.8" tokio = { version = "1", features = ["full"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" tracing = "0.1" tracing-subscr
- Project Requirements
- Project Structure
- File Templates
- Cargo.toml
- .gitignore
- README.md
- src/main.rs
- src/handler.rs
- src/state.rs
- src/tools/mod.rs
- src/tools/example.rs
- src/prompts/mod.rs
- src/resources/mod.rs
- tests/integrationtest.rs
cd {project-name}
cargo build
cargo test
cargo runWhat does the rust-mcp-server-generator skill do?
Generate a complete Rust Model Context Protocol server project with tools, prompts, resources, and tests using the official rmcp SDK
How do I install it?
Run `npx skills add github/awesome-copilot --skill rust-mcp-server-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.