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.
基本情報
「開発者ツール」の他のコンテンツ
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.

BetterBugs
BetterBugsThe BetterBugs MCP (Model Context Protocol) enables you to load BetterBugs bug reports (via report links) directly to your preferred AI Agents and developer environments with MCP Client capabilities (such as Cursor, VS C

Moxie Docs
Jackalope-DevAutomated codebase documentation for GitHub: searchable docs, MCP context for AI agents, doc drift detection, and Friday Cleanup PRs.
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
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
コメント