About Rust MCP Stdio Server Test
Rust MCP Stdio Server Test is a learning and debugging example of an MCP server written in Rust. It uses newline-delimited JSON over stdio and implements initialization, list requests, and a dummy tool call.
Key features
- 01Rust MCP server example
- 02Newline-delimited JSON over stdio
- 03Initialization handshake
- 04Tool, resource, and prompt listing
- 05Dummy tool call
Use cases
- 01Learn the basic MCP server handshake
- 02Test MCP list requests and a tool call
- 03Debug stdio communication with an MCP client
MCP support
It implements an MCP server over newline-delimited JSON stdio. MCP clients can initialize it, list tools, resources, and prompts, and invoke its dummy tool.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMERust 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
-
Build the server:
cargo build -
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 thecommandpath 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)
-
Set the
RUST_LOGenvironment variable (e.g.,RUST_LOG=debugorRUST_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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.