rust-mcp-server-generator

Solid

Generate a complete Rust Model Context Protocol server project with tools, prompts, resources, and tests using the official rmcp SDK

AI & Automation 34,233 stars 4188 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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-subscriber = "0.3" schemars = { version = "0.8", features = ["derive"] } async-trait = "0.1" # Optional: for HTTP transports axum = { version = "0.7", optional = true } tower-http = { version = "0.5", features = ["cors"], optional = true } [dev-dependenc...

Details

Author
github
Repository
github/awesome-copilot
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category