mcpr  by conikeec

Rust SDK for Anthropic's Model Context Protocol (MCP)

created 4 months ago
337 stars

Top 82.8% on sourcepulse

GitHubView on GitHub
Project Summary

This Rust library implements Anthropic's Model Context Protocol (MCP), providing a framework for AI assistants to connect with data sources and tools. It targets developers building AI-powered applications, offering a robust and efficient way to manage AI agent interactions with external resources.

How It Works

MCPR offers a schema-defined communication protocol with flexible transport layers, including stdio and Server-Sent Events (SSE). It provides high-level client and server abstractions, simplifying the creation of MCP-compatible applications. The library also includes CLI tools for generating project stubs and mock implementations for testing.

Quick Start & Requirements

  • Install via Cargo: cargo install mcpr
  • Add to Cargo.toml: mcpr = "0.2.3"
  • Example usage and project generation commands are provided in the README.
  • Official Demo: View Demo on Github

Highlighted Details

  • Implements the full MCP schema.
  • Supports stdio and SSE transport layers, with WebSocket planned.
  • Includes CLI tools for project generation and stub creation.
  • Provides mock transports for testing and development.

Maintenance & Community

  • Version 0.2.0 was yanked; use 0.2.3 or later.
  • Contribution guidelines are available.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

  • WebSocket transport is not yet implemented.
  • Version 0.2.0 had critical SSE transport issues; ensure usage of 0.2.3+.
Health Check
Last commit

4 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
37 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Feedback? Help us improve.