rust-mcp-server

Community

Build Rust MCP servers with best practices.

AuthorpingqLIN
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing Model Context Protocol (MCP) servers using Rust and the official rmcp SDK, ensuring efficient and robust server implementations.

Core Features & Use Cases

  • Server Implementation: Demonstrates setting up basic MCP servers with stdio or HTTP transports.
  • Tool & Prompt Development: Shows how to define and handle tools and prompts using declarative macros and traits.
  • Resource Management: Guides on implementing resource handlers for server-accessible data.
  • Use Case: A developer needs to build a new microservice that communicates via MCP. This Skill provides the foundational code, patterns, and best practices to quickly and correctly implement the server, tools, and handlers.

Quick Start

Add the rmcp and tokio crates to your Cargo.toml file to begin building your Rust MCP server.

Dependency Matrix

Required Modules

rmcptokioserdeserde_jsonanyhowtracingtracing-subscriberrmcp-macrosschemarsasync-traitreqwest

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rust-mcp-server
Download link: https://github.com/pingqLIN/skill-0/archive/main.zip#rust-mcp-server

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.