mcp-rust-sdk
unofficial SDK for MCP servers in Rust
Documentation
Rust MCP Stdio Server Test
This repository contains a simple example of a Model Context Protocol (MCP) server implemented in Rust using a newline-delimited JSON stdio transport.
https://github.com/user-attachments/assets/428319c2-fce2-4654-ab34-cb6987ee4164
Status
This is currently a basic test implementation created for learning and debugging purposes. It handles the MCP initialization handshake and basic list commands (`tools/list`, `resources/list`, `prompts/list`) as well as a dummy tool call (`tools/call`).
Usage
1. Build the server:
cargo build2. Configure an MCP client (like Claude Desktop) to launch the executable found at `target/debug/mcp-rust-sdk`. Ensure the client uses newline-delimited JSON for stdio communication.
For example, in `claude_desktop_config.json` (or similar client configuration), you might add an entry like this, replacing the `command` path with the absolute path to your built executable:
{
"mcpServers": {
"rust_stdio_test": {
"command": "/path/to/your/mcp-rust-sdk/target/debug/mcp-rust-sdk"
}
// ... other servers ...
}
}*(Remember to use the correct absolute path for your system)*
3. Set the `RUST_LOG` environment variable (e.g., `RUST_LOG=debug` or `RUST_LOG=trace`) to control logging verbosity. Logs are written to `$HOME/.screenpipe/logs/rust_stdio_test_logs/`.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is mcp-rust-sdk?
mcp-rust-sdk is unofficial SDK for MCP servers in Rust
How do I install mcp-rust-sdk?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-rust-sdk open source?
Yes — it is hosted on GitHub at https://github.com/mediar-ai/mcp-rust-sdk and has 5 stars.
Related MCP tools
An open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM for the Model Context Protocol. Enhance AI
The official Rust SDK for the Model Context Protocol Trusted by 2500+ developers. Trusted by 2500+ developers. Trusted by 2500+ developers.
🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments.
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP