MCP Rust CLI server template
@TeamDman
关于 MCP Rust CLI server template
A hello-world server for the Model Context Protocol
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"current-time": {
"command": "mcp-rs-template",
"args": [
"--mcp"
],
"env": {
"API_KEY": "xxxx"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Rust CLI server template?
MCP Rust CLI server template is a simple application template that demonstrates how to implement a Model Context Protocol (MCP) CLI server in Rust. MCP is an open protocol that enables seamless integration between LLM applications and external data sources and tools. This template is for developers building AI-powered IDEs, chat interfaces, or custom AI workflows using Rust.
How to use MCP Rust CLI server template?
Clone the repository, modify project information in Cargo.toml and src/mcp/mod.rs, then edit server handlers in src/mcp/prompts.rs, src/mcp/resources.rs, and src/mcp/tools.rs. Optionally modify JSON template files in src/mcp/templates/. Run with --mcp flag to enable the MCP server. For Claude Desktop integration, add a configuration entry to claude_desktop_config.json.
Key features of MCP Rust CLI server template
- Implements MCP CLI server in Rust.
- Based on
rust-rpc-routerJSON-RPC routing library. - Supports prompts, resources, and tools handlers.
- Uses JSON template files for configuration.
- CLI options for displaying resources, prompts, and tools.
- Ready for Claude Desktop integration.
Use cases of MCP Rust CLI server template
- Building a custom MCP server for AI-powered applications.
- Prototyping an MCP server in Rust with minimal boilerplate.
- Integrating with Claude Desktop as a context server.
- Serving tools, resources, or prompts to LLM applications.
FAQ from MCP Rust CLI server template
What is the MCP Rust CLI server template?
It is a Rust application template that shows how to implement a CLI server using the Model Context Protocol, enabling LLMs to connect with external data and tools.
How do I install and run the server?
Clone the repository, modify the template as needed, then run the binary with the --mcp flag. The server can be used standalone or configured in Claude Desktop.
What are the runtime dependencies?
The template depends on the Rust ecosystem and the rust-rpc-router library. No other external runtime is required beyond standard Rust tooling.
How do I integrate with Claude Desktop?
Add a JSON entry to claude_desktop_config.json with the server command mcp-rs-template --mcp and any required environment variables like API_KEY. Logs can be checked with tail on the MCP log file.
Can I use JSON files for prompts, resources, and tools?
Yes, the template supports JSON templates in src/mcp/templates/*.json as an alternative to Rust handlers.
常见问题
What is the MCP Rust CLI server template?
It is a Rust application template that shows how to implement a CLI server using the Model Context Protocol, enabling LLMs to connect with external data and tools.
How do I install and run the server?
Clone the repository, modify the template as needed, then run the binary with the `--mcp` flag. The server can be used standalone or configured in Claude Desktop.
What are the runtime dependencies?
The template depends on the Rust ecosystem and the `rust-rpc-router` library. No other external runtime is required beyond standard Rust tooling.
How do I integrate with Claude Desktop?
Add a JSON entry to `claude_desktop_config.json` with the server command `mcp-rs-template --mcp` and any required environment variables like `API_KEY`. Logs can be checked with `tail` on the MCP log file.
Can I use JSON files for prompts, resources, and tools?
Yes, the template supports JSON templates in `src/mcp/templates/*.json` as an alternative to Rust handlers.
基本信息
开发工具 分类下的更多 MCP 服务器
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.

Sentry
modelcontextprotocolModel Context Protocol Servers
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Vibgrate MCP
VibgrateQuery your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up
评论