MCP Catalogs
Home

mcp

by EmilLindfors·18·Score 37

Rust implementation of MCP providing standardized communication between AI models and external resources.

developer-toolsfile-systemai-llm
10
Forks
1
Open issues
18 mo ago
Last commit
2d ago
Indexed

Overview

mcp.rs is a comprehensive Rust implementation of the Model Context Protocol that enables high-performance, type-safe communication between AI applications and their integrations. It supports multiple transport types including stdio and HTTP with SSE, offers robust resource management, and provides flexible configuration options through YAML/JSON files, environment variables, and command-line arguments. The implementation follows a modular architecture with clear separation of concerns between transport, protocol, resource, and configuration layers.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Building MCP servers that expose file system resources to AI models
you:Creating AI applications that need to access external data through MCP
you:Developing type-safe AI integrations using Rust with protocol enforcement
you:What transport protocols does mcp.rs support?
you:How do I configure an MCP server with mcp.rs?

When to choose this

Choose mcp.rs when developing Rust-based AI applications requiring high performance and type safety for resource access.

When NOT to choose this

Avoid if you need language support beyond Rust or require extensive documentation, as the project appears to be in early development with limited examples.

Tools this server exposes

1 tool extracted from the README (low confidence)
  • file_system

    Provides access to file system operations

Note: Inferred from CLI example showing a tool call with 'file_system' name and file operations, but no explicit tool documentation in the README

Comparable tools

model-context-protocolmcp-sdkmcp-ts

Installation

Installation

Add to your Cargo.toml:

[dependencies]
mcp = "0.1.0"

Running the Server

# Run with test config
cargo run --bin server -- --config "../servers/test.json"

# Run with stdio transport
cargo run --bin server -t stdio

# Run with SSE transport on port 3000
cargo run --bin server -t sse -p 3000

Claude Desktop Integration

Add to Claude's claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-rs": {
      "command": "cargo",
      "args": ["run", "--bin", "server", "--", "-t", "stdio"]
    }
  }
}

FAQ

What transport protocols does mcp.rs support?
mcp.rs supports multiple transport types including standard Input/Output (stdio) for CLI tools and HTTP with Server-Sent Events (SSE) for web integrations. The transport system is extensible for custom implementations.
How do I configure an MCP server with mcp.rs?
Configuration can be done through YAML/JSON configuration files, environment variables, or command-line arguments. The server supports sensible defaults for all configuration options.

Compare mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.