MCP Rust CLI server template
@linux-china
About MCP Rust CLI server template
Model Context Protocol (MCP) CLI server template for Rust
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"current-time": {
"command": "mcp-rs-template",
"args": [
"--mcp"
],
"env": {
"API_KEY": "xxxx"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Rust CLI server template?
MCP Rust CLI server template is a Rust application template that demonstrates how to implement a Model Context Protocol (MCP) CLI server. It provides a standardized way for developers to connect LLM applications with external data sources and tools using the MCP open protocol, and is built on the rust-rpc-router JSON-RPC library.
How to use MCP Rust CLI server template?
Clone the repository, modify the project information in Cargo.toml and src/mcp/mod.rs, then edit the handler files (src/mcp/prompts.rs, src/mcp/resources.rs, src/mcp/tools.rs) or the JSON templates in src/mcp/templates/. Run the binary with the --mcp flag to enable the MCP server; optional flags --resources, --prompts, and --tools display the corresponding registered items.
Key features of MCP Rust CLI server template
- Implements an MCP CLI server in Rust.
- Based on the JSON-RPC routing library rust-rpc-router.
- Modular handler files for prompts, resources, and tools.
- Supports CLI flags for testing and display.
- Integrates with Claude Desktop via configuration file.
- Provides JSON template files for customization.
Use cases of MCP Rust CLI server template
- Building an AI‑powered IDE with custom tool integrations.
- Enhancing chat interfaces with external data sources.
- Creating custom AI workflows using the standardized MCP protocol.
- Prototyping MCP servers quickly with a Rust template.
FAQ from MCP Rust CLI server template
What runtime dependencies does it require?
You need a Rust toolchain; the rust-rpc-router library is automatically included via Cargo.
How do I add custom tools or resources?
Modify the respective handler files (src/mcp/tools.rs, src/mcp/resources.rs) and optionally the corresponding JSON templates.
How can I integrate with Claude Desktop?
Edit claude_desktop_config.json to add the server with command "mcp-rs-template" and args ["--mcp"], along with any environment variables like API_KEY.
Are there any known limitations?
The README does not mention specific limitations; it is a template intended for demonstration and customization.
What transport or authentication does it support?
The template uses JSON‑RPC over stdio (CLI). Authentication can be provided via environment variables (e.g., API_KEY) as shown in the Claude Desktop configuration.
Frequently asked questions
What runtime dependencies does it require?
You need a Rust toolchain; the rust-rpc-router library is automatically included via Cargo.
How do I add custom tools or resources?
Modify the respective handler files (`src/mcp/tools.rs`, `src/mcp/resources.rs`) and optionally the corresponding JSON templates.
How can I integrate with Claude Desktop?
Edit `claude_desktop_config.json` to add the server with command `"mcp-rs-template"` and args `["--mcp"]`, along with any environment variables like `API_KEY`.
Are there any known limitations?
The README does not mention specific limitations; it is a template intended for demonstration and customization.
What transport or authentication does it support?
The template uses JSON‑RPC over stdio (CLI). Authentication can be provided via environment variables (e.g., `API_KEY`) as shown in the Claude Desktop configuration.
Basic information
More Developer Tools MCP servers
Grafana MCP server
grafanaMCP server for Grafana
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps

PuzzleTide Puzzle Generator
Caravaca-LabsWord search generator, crossword generator, and sudoku generator + solver as a local-first MCP server. 15 deterministic tools: printable PDF puzzle worksheets, themed word banks, and verifiable LLM evals. From the makers
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
Comments