# mcpr

> MCP Client

MCPR is a Rust implementation of Anthropic's Model Context Protocol, providing tools and libraries for connecting AI assistants to data sources. It offers schema definitions, transport layers, and CLI tools

## Overview

- **Category:** Developer Tools
- **Language:** Rust
- **Stars:** 348
- **Forks:** 14
- **Owner:** conikeec
- **GitHub:** https://github.com/conikeec/mcpr
- **Created:** 2025-03-13T02:23:21+00:00
- **Updated:** 2025-03-28T20:12:54+00:00
- **Source:** https://model-context-protocol.com/clients/rust-model-context-protocol-implementation

## Setup

## Setup

1.  Add MCPR to your `Cargo.toml`:

   ```toml
   [dependencies]
mcpr = "0.2.3"  # Make sure to use 0.2.3 or later, as 0.2.0 has been yanked
   ```

2.  For CLI tools, install globally:

   ```bash
cargo install mcpr
   ```

3.  When developing with generated templates, you can switch between using the published crate version and your local development version by modifying the `Cargo.toml` files in both client and server directories.

4.  To build the server, navigate to the server directory and run `cargo build`.

5.  To build the client, navigate to the client directory and run `cargo build`.

## Tools

## Available Tools

1.  Schema Definitions (Complete implementation of the MCP schema)
2.  Transport Layer (Multiple transport options including stdio and SSE)
3.  High-Level Client/Server (Easy-to-use client and server implementations)
4.  CLI Tools (Generate server and client stubs)
5.  Project Generator (Quickly scaffold new MCP projects)
6.  Mock Implementations (Built-in mock transports for testing and development)
