MCP Rust CLI server template
@MCP-Mirror
About MCP Rust CLI server template
Mirror of
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?
This template demonstrates how to implement a Model Context Protocol (MCP) CLI server in Rust. It provides a starting point for building MCP servers that can integrate LLM applications with external data sources and tools.
How to use MCP Rust CLI server template?
Clone the repository, modify 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). Optionally modify JSON template files under src/mcp/templates/. Run the binary with --mcp to start the MCP server.
Key features of MCP Rust CLI server template
- Implements MCP CLI server in Rust
- Uses JSON-RPC routing via rust-rpc-router
- Provides handlers for prompts, resources, and tools
- Supports JSON template files for configurations
- Includes CLI flags for listing resources, prompts, and tools
Use cases of MCP Rust CLI server template
- Building a custom MCP server for an AI-powered IDE
- Enhancing a chat interface with external context
- Creating custom AI workflows with standardized MCP integration
- Learning how to implement MCP in Rust
FAQ from MCP Rust CLI server template
What dependencies does the template require?
It is based on the JSON-RPC routing library rust-rpc-router. The project uses Cargo for dependency management.
How do I run the MCP server?
Use the --mcp CLI flag. Example: mcp-rs-template --mcp. Other flags include --resources, --prompts, and --tools for listing capabilities.
How do I configure it with Claude Desktop?
Edit claude_desktop_config.json in Claude Desktop (Settings > Developer > Edit Config) and add an entry in the mcpServers section with the command mcp-rs-template and arguments ["--mcp"]. Optionally set environment variables like API_KEY.
Where does the server data live?
Handlers and templates are stored in local source files: src/mcp/prompts.rs, src/mcp/resources.rs, src/mcp/tools.rs, and JSON templates under src/mcp/templates/.
What transport does the MCP server use?
The README describes a CLI-based invocation with the --mcp flag, which implies stdio transport (standard in/out) for communicating with MCP clients.
Frequently asked questions
What dependencies does the template require?
It is based on the JSON-RPC routing library [rust-rpc-router](https://github.com/jeremychone/rust-rpc-router). The project uses Cargo for dependency management.
How do I run the MCP server?
Use the `--mcp` CLI flag. Example: `mcp-rs-template --mcp`. Other flags include `--resources`, `--prompts`, and `--tools` for listing capabilities.
How do I configure it with Claude Desktop?
Edit `claude_desktop_config.json` in Claude Desktop (Settings > Developer > Edit Config) and add an entry in the `mcpServers` section with the command `mcp-rs-template` and arguments `["--mcp"]`. Optionally set environment variables like `API_KEY`.
Where does the server data live?
Handlers and templates are stored in local source files: `src/mcp/prompts.rs`, `src/mcp/resources.rs`, `src/mcp/tools.rs`, and JSON templates under `src/mcp/templates/`.
What transport does the MCP server use?
The README describes a CLI-based invocation with the `--mcp` flag, which implies stdio transport (standard in/out) for communicating with MCP clients.
Basic information
More Developer Tools MCP servers

Skycloak
Manage your Skycloak-hosted Keycloak: clusters, realms, apps, SSO and users, from any MCP client.

Meticulous
MeticulousMCP server and skills to connect to the Meticulous UI testing platform.
TranscriptFetch MCP Server
TranscriptFetchModel Context Protocol (MCP) server for TranscriptFetch: fetch YouTube transcripts, search, channels, and playlists from any MCP client.
ZeroBeacon — 1000-Tool Collision-Proof Commerce Router
DavidFox998ZeroBeacon.ai — Collision-proof commerce router for AI agents. 1000 MCP tools: commerce, trust, billing, sovereign ID + everyday tools. LIVE.

Apiosk
obcraftAI-native payments for tools and APIs. Discover, pay for, execute, and publish monetized APIs directly from your agent, settled per call in USDC over x402, through the Model Context Protocol. payments · finance · x402 ·
Comments