#protocols #context #model #mcp #sdk #basic #server

mcp-sdk

Rust Implementation of Model Context Protocol (MCP)

2 releases

0.0.2 Nov 30, 2024
0.0.1 Nov 29, 2024

#918 in Network programming

Download history 231/week @ 2024-11-25 40/week @ 2024-12-02 26/week @ 2024-12-09

297 downloads per month

Apache-2.0

30KB
704 lines

Model Context Protocol (MCP)

Minimalistic Rust Implementation Of Model Context Protocol(MCP). Crates.io

Main repo from Anthropic: MCP

Minimalistic approach

Given it is still very early stage of MCP adoption, the goal is to remain agile and easy to understand. This implementation aims to capture the core idea of MCP while maintaining compatibility with Claude Desktop. Many optional features are not implemented yet.

Some guidelines:

  • use primitive building blocks and avoid framework if possible
  • keep it simple and stupid

Other Sdks

Official

Community

For complete feature please refer to the MCP specification.

Features

Basic Protocol

  • Basic Message Types
  • Error and Signal Handling
  • Transport
    • Stdio
    • In Memory Channel (not yet supported in formal specification)
    • SSE
    • More compact serialization format (not yet supported in formal specification)
  • Utilities
    • Ping
    • Cancellation
    • Progress

Server

  • Tools
  • Prompts
  • Resources
    • Pagination
    • Completion

Client

For now use claude desktop as client.

Monitoring

  • Logging
  • Metrics

Examples

Dependencies

~5–12MB
~131K SLoC