MCP Rust CLI server template
About
A Rust template for creating MCP CLI servers, with support for JSON-based prompts, resources, and tools.
Details
- Author
- yvonne-aizawa
- Categories
- Developer Tools
Jump to
Setup
Install MCP Rust CLI server template in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/yvonne-aizawa/test-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
A Rust template for creating MCP CLI servers, with support for JSON-based prompts, resources, and tools.
Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
mcp-rs-template is a simple application template that demonstrates how to implement MCP CLI server in Rust.
- Clone the repository
- Modify project information inCargo.tomlandsrc/mcp/mod.rs
- Modify server handlers:
- src/mcp/prompts.rs: prompts handlers
- src/mcp/resources.rs: resources handlers
- src/mcp/tools.rs: tools handlers
mcp-rs-template is based onrust-rpc-router, a JSON-RPC routing library for Rust.
- --mcp: Enable MCP server
- --resources: display resources
- --prompts: display prompts
- --tools: display tools
How to use MCP CLI server in Claude Desktop?
- Editclaude_desktop_config.json: Claude Desktop ->Settings->Developer->Edit Config
- Add the following configuration to theserverssection:
{ "mcpServers": { "current-time": { "command": "mcp-rs-template", "args": [ "--mcp" ], "env": { "API_KEY": "xxxx" } } } }
If you want to check MCP log, please usetail -n 20 -f ~/Library/Logs/Claude/mcp*.log.
- MCP Specification:https://spec.modelcontextprotocol.io/
- Model Context Protocol (MCP):https://modelcontextprotocol.io/introduction
- rpc-router: json-rpc routing library -https://github.com/jeremychone/rust-rpc-router/
- Zed context_server:https://github.com/zed-industries/zed/tree/main/crates/context_server
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
Local stdio MCP server that lets AI coding agents read and maintain structured architecture, rules, and decisions directly from your repository.
Official Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.
Remote, no-auth MCP server providing AI-powered codebase context and answers
Instead of direct calling MCP tools, mcpcode server transforms MCP tool calls into TypeScript programs, enabling smarter, lower-latency orchestration by LLMs.
Help agents automatically write and test stories for your UI components
Official Svelte MCP server, provides docs and suggestions on the generated code.
Supercharge your Agent with Semantic Code Intelligence and save 💰 in the process!
Execute any LLM-generated code in the YepCode secure and scalable sandbox environment and create your own MCP tools using JavaScript or Python, with full support for NPM and PyPI packages
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





