A basic MCP server implementation featuring two custom tools: Say Hello and Say Goodbye , utilizing rust-mcp-sdk
This project showcases a fundamental MCP server implementation, highlighting the capabilities of rust-mcp-sdk with these features:
- Standard I/O transport
- Custom server handler
- Basic server capabilities
- Clone the repository:
git clone git@github.com:rust-mcp-stack/rust-mcp-sdk.git
cd rust-mcp-sdk- Build the project:
cargo build -p hello-world-mcp-server --release- After building the project, the binary will be located at
target/release/hello-world-mcp-serverYou can test it with MCP Inspector, or alternatively, use it with any MCP client you prefer.
npx -y @modelcontextprotocol/inspector ./target/release/hello-world-mcp-serverStarting MCP inspector...
⚙ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
Here you can see it in action :
