modelcontextprotocol-rust-sdk

This Rust SDK implements the Model Context Protocol, enabling applications to provide context for LLMs in a standardized way, offering both client and server capabilities for LLM integration.

18
0

MCP Rust SDK

MIT licensed
Specification

Rust SDK for the Model Context Protocol

This is a Rust implementation of the Model Context Protocol (MCP), designed to provide both client and server functionalities for seamless integration with Large Language Model (LLM) surfaces.

[!WARNING]
This is a VERY early repo. If you're interested in contributing, please open an issue or contact [email protected]. A Discord server is planned for the near future!

Overview

The Model Context Protocol standardizes how applications provide context to LLMs, effectively separating context provision from LLM interaction. This Rust SDK fully implements the MCP specification, simplifying the process of:

  • Developing MCP clients capable of connecting to any MCP server.
  • Building MCP servers that expose resources, prompts, and tools.
  • Utilizing standard transports such as stdio and Server-Sent Events (SSE).
  • Managing all MCP protocol messages and lifecycle events.

Repository

JE
jeanlucthumm

jeanlucthumm/modelcontextprotocol-rust-sdk

Created

November 26, 2024

Updated

March 23, 2025

Language

Nix

Category

AI