This Rust crate provides a client implementation for the Model Context Protocol, enabling structured communication between language models and external tools with async/await support and capability negotiation. This Rust crate
Rust client implementation for the Model Context Protocol - a structured communication protocol facilitating communication between language models and external tools.
The provided code snippet demonstrates how to initialize the Protocol
client with a protocol version, command, arguments, and environment variables. It showcases calling a tool (search_repositories
) with a JSON payload and printing the response.
To incorporate this client into your Rust project, add the following dependency to your Cargo.toml
file:
[dependencies]
mcp-client-rs = { git = "https://github.com/tim-schultz/mcp-client-rs.git" }
MIT
tim-schultz/mcp-client-rs
December 2, 2024
March 21, 2025
Rust