rust-mcp-sdk

作者 rust-mcp-stack已验证

A high-performance, asynchronous toolkit for building MCP servers and clients in Rust.

191
Stars
29
Forks
Rust
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/rust-mcp-stack/rust-mcp-sdk

快速入门

使用 rust-mcp-sdk 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Description

Rust MCP SDK

crates.io docs.rs build status Hello World MCP Server

A high-performance, asynchronous Rust toolkit for building MCP servers and clients.

This SDK fully implements the latest MCP protocol version (2025-11-25) and passes 100% of official MCP conformance tests.

rust-mcp-sdk provides the necessary components for developing both servers and clients in the MCP ecosystem.
It leverages the rust-mcp-schema crate for type-safe schema objects and includes powerful procedural macros for tools and user input elicitation.

Focus on your application logic , rust-mcp-sdk handles the protocol, transports, and the rest!

Upgrading? See the upgrade guide for migration paths between versions.

Key Features

  • ✅ Latest MCP protocol specification supported: 2025-11-25
  • 100% MCP Conformance - passes all official client and server conformance tests
  • ✅ Transports:Stdio, Streamable HTTP, and backward-compatible SSE support
  • ✅ Framework Agnostic: Seamless Axum, Actix, and BYO Server integrations
  • ✅ Multi-client concurrency
  • ✅ DNS Rebinding Protection
  • ✅ Resumability
  • ✅ MCP Tasks support
  • ✅ Batch Messages
  • ✅ Streaming & non-streaming JSON response
  • ✅ Message Observer (Telemetry & Monitoring)
  • ✅ HTTP Health Checks (for load balancers & container orchestration)
  • ✅ OAuth Authentication for MCP Servers
  • ✅ OAuth Authentication for MCP Clients (metadata discovery, DCR, PKCE, token refresh, pluggable storage)

v1.0.0 — stable and production-ready.

Table of Contents

Quick Start

Add to your Cargo.toml:

[dependencies]
rust-mcp-sdk = "1.0"  # Check crates.io for the latest version

Minimal MCP Server (Stdio)

use async_trait::async_trait;
use rust_mcp_sdk::{*,error::SdkResult,macros,mcp_server::{server_runtime, ServerHandler},schema::*,};

// Define a mcp tool
#[macros::mcp_tool(name = "say_hello", description = "returns \"Hello from Rust MCP SDK!\" message ")]
#[derive(Debug, ::serde::Deserialize, ::serde::Serialize, macros::JsonSchema)]
pub struct SayHelloTool {}

// define a custom handler
#[derive(Default)]
struct HelloHandler;

// implement ServerHandler
#[async_trait]
impl ServerHandler for HelloHandler {
    // Handles requests to list available tools.
    async fn handle_list_tools_request(
        &self,
        _request: Option<PaginatedRequestParams>,
        _runtime: std::sync::Arc<dyn McpServer>,
    ) -> std::result::Result<ListToolsResult, RpcError> {
        Ok(ListToolsResult {
            tools: vec![SayHelloTool::tool()],
            meta: None,
            next_cursor: None,
        })
    }
    // Handles requests to call a specific tool.
    async fn handle_call_tool_request(&self,
        params: CallToolRequestParams,
        _runtime: std::sync::Arc<dyn McpServer>,
    ) -> std::result::Result<CallToolResult, CallToolError> {
        if params.name == "say_hello" {
            Ok(CallToolResult::text_content(vec!["Hello from Rust MCP SDK!".into()]))
        } else {
            Err(CallToolError::unknown_tool(params.name))
        }
    }
}

#[tokio::main]
async fn main() -> SdkResult<()> {
    // Define server details and capabilities
    let server_info = InitializeResult {
        server_info: Implementation {
            name: "hello-rust-mcp".into(),
            version: "0.1.0".into(),
            title: Some("Hello World MCP Server".into()),
            description: Some("A minimal Rust MCP server".into()),
            icons: vec![mcp_icon!(src = "https://raw.githubusercontent.com/rust-mcp-stack/rust-mcp-sdk/main/assets/rust-mcp-icon.png",
                mime_type = "image/png",
                sizes = ["128x128"],
                theme = "light")],
            website_url: Some("https://github.com/rust-mcp-stack/rust-mcp-sdk".into()),
        },
        capabilities: ServerCapabilities { tools: Some(ServerCapabilitiesTools { list_changed: None }), ..Default::default() },
        protocol_version: ProtocolVersion::V2025_11_25.into(),
        instructions: None,
        meta:None
    };

    let transport = StdioTransport::new(TransportOptions::default())?;
    let handler = HelloHandler::default().to_mcp_server_handler();
    let server = server_runtime::create_server(server_info, transport, handler);
    server.start().await
}

HTTP Server Backends (Axum & Actix)

Creating a Streamable HTTP MCP server in rust-mcp-sdk allows multiple clients to connect simultaneously with no additional setup. The setup is nearly identical to the stdio example — the only difference is which HTTP backend crate you install and which function you call to create the server.

💡 If backward compatibility with older SSE-only clients is required, both backends support enabling SSE transport by setting sse_support to true in their respective options (it defaults to true).

Axum Backend (rust-mcp-axum)

Add rust-mcp-axum to your dependencies and use create_axum_server() with AxumServerOptions.

use async_trait::async_trait;
use rust_mcp_axum::{create_axum_server, AxumServerOptions};
use rust_mcp_sdk::{*,error::SdkResult,event_store::InMemoryEventStore,macros,
    mcp_server::ServerHandler,schema::*,
};

// ... (define SayHelloTool and HelloHandler as shown above)

#[tokio::main]
async fn main() -> SdkResult<()> {
    let server_info = InitializeResult { /* ... */ };

    let handler = HelloHandler::default().to_mcp_server_handler();
    let server = create_axum_server(
        server_info,
        handler,
        AxumServerOptions {
            host: "127.0.0.1".to_string(),
            event_store: Some(std::sync::Arc::new(InMemoryEventStore::default())), // enable resumability
            ..Default::default()
        },
    );
    server.start().await?;
    Ok(())
}

Actix-web Backend (rust-mcp-actix)

Add rust-mcp-actix to your dependencies and use create_actix_server() with ActixServerOptions.

use rust_mcp_actix::{create_actix_server, ActixServerOptions};
use rust_mcp_sdk::{*,error::SdkResult,event_store::InMemoryEventStore,
    mcp_server::ServerHandler,schema::*,
};

// ... (define SayHelloTool and HelloHandler as shown above)

#[tokio::main]
async fn main() -> SdkResult<()> {
    let server_info = InitializeResult { /* ... */ };

    let handler = HelloHandler::default().to_mcp_server_handler();
    let server = create_actix_server(
        server_info,
        handler,
        ActixServerOptions {
            host: "127.0.0.1".to_string(),
            event_store: Some(std::sync::Arc::new(InMemoryEventStore::default())), // enable resumability
            ..Default::default()
        },
    );
    server.start().await?;
    Ok(())
}

BYO-server: Embed MCP in your Existing App

Both backends support a BYO-server (Bring Your Own Server) mode, letting you mount MCP endpoints onto a router or app you already control — no need to hand over the server lifecycle.

BackendFunctionDocs
Axummcp_routes(state, &mount_opts, http_handler)rust-mcp-axum README
Actix-webmcp_scope(state, http_handler, &mount_opts)rust-mcp-actix README

Both functions take a pre-built McpAppState and McpMountOptions, and produce routes/scopes you can merge directly into your existing router.

👉 See examples/byo-server.rs (Axum) and examples/byo-server.rs (Actix) for working examples.

Custom HTTP Framework Integrations

While we provide native Axum and Actix integrations, the SDK is completely framework-agnostic. If you are using a different HTTP framework (like Rocket, Salvo, or Warp), you can build a custom integration by adapting your framework's native Request/Response types to the SDK's core HTTP handling logic.

👉 See the Custom HTTP Framework Integration Guide for architectural details and implementation steps.

AxumServerOptions

Axum server is highly customizable through AxumServerOptions:

let server = create_axum_server(
    server_details,
    handler.to_mcp_server_handler(),
    AxumServerOptions {
        host: "127.0.0.1".to_string(),
        port: 8080,
        event_store: Some(Arc::new(InMemoryEventStore::default())), // enable resumability
        task_store: Some(Arc::new(InMemoryTaskStore::new(None))),   // server MCP tasks
        auth: Some(Arc::new(auth_provider)),                        // enable authentication
        health_endpoint: Some("/health".into()),                    // health check
        sse_support: true,                                          // backward-compat SSE
        ..Default::default()
    },
);
server.start().await?;

📝 Refer to AxumServerOptions or the rust-mcp-axum README for a complete field reference.

ActixServerOptions

ActixServerOptions mirrors AxumServerOptions field-for-field:

let server = create_actix_server(
    server_details,
    handler.to_mcp_server_handler(),
    ActixServerOptions {
        host: "127.0.0.1".to_string(),
        port: 8080,
        event_store: Some(Arc::new(InMemoryEventStore::default())), // enable resumability
        task_store: Some(Arc::new(InMemoryTaskStore::new(None))),   // server MCP tasks
        auth: Some(Arc::new(auth_provider)),                        // enable authentication
        health_endpoint: Some("/health".into()),                    // health check
        sse_support: true,                                          // backward-compat SSE
        ..Default::default()
    },
);
server.start().await?;

📝 Refer to ActixServerOptions or the rust-mcp-actix README for a complete field reference.

Following is implementation of an MCP client that starts the @modelcontextprotocol/server-everything server, displays the server's name, version, and list of tools provided by the server.

use async_trait::async_trait;
use rust_mcp_sdk::{*, error::SdkResult,
    mcp_client::{client_runtime, ClientHandler},
    schema::*,
};

// Custom Handler to handle incoming MCP Messages
pub struct MyClientHandler;
#[async_trait]
impl ClientHandler for MyClientHandler {
    // To see all the trait methods you can override,
    // check out:
    // https://github.com/rust-mcp-stack/rust-mcp-sdk/blob/main/crates/rust-mcp-sdk/src/mcp_handlers/mcp_client_handler.rs
}

#[tokio::main]
async fn main() -> SdkResult<()> {
    // Client details and capabilities
    let client_details: InitializeRequestParams = InitializeRequestParams {
        capabilities: ClientCapabilities::default(),
        client_info: Implementation {
            name: "simple-rust-mcp-client".into(),
            version: "0.1.0".into(),
            description: None,
            icons: vec![],
            title: None,
            website_url: None,
        },
        protocol_version: ProtocolVersion::V2025_11_25.into(),
        meta: None,
    };

    //  Create a transport, with options to launch @modelcontextprotocol/server-everything MCP Server
    let transport = StdioTransport::create_with_server_launch(
        "npx",vec!["-y".to_string(),"@modelcontextprotocol/server-everything@latest".to_string()],
        None,
        TransportOptions::default(),
    )?;

    // instantiate our custom handler for handling MCP messages
    let handler = MyClientHandler {};

    // Create and start the MCP client
    let client = client_runtime::create_client(client_details, transport, handler);    
    client.clone().start().await?;

    // use client methods to communicate with the MCP Server as you wish:

    let server_version = client.server_version().unwrap();    
    
    // Retrieve and display the list of tools available on the server
    let tools = client.request_tool_list(None).await?.tools;
    println!( "List of tools for {}@{}",server_version.name, server_version.version);
    tools.iter().enumerate().for_each(|(tool_index, tool)| {
        println!("  {}. {} : {}", tool_index + 1, tool.name, tool.description.clone().unwrap_or_default());
    });

    client.shut_down().await?;
    Ok(())
}

Usage Examples

👉 For more examples (stdio, Streamable HTTP, clients, auth, etc.), see the examples/ directory.

👉 If you are looking for a step-by-step tutorial on how to get started with rust-mcp-sdk , please see : Getting Started MCP Server

See hello-world-mcp-server-stdio example running in MCP Inspector :

hello world mcp server in rust

Macros

Enable with the macros feature.

rust-mcp-sdk includes several helpful macros that simplify common tasks when building MCP servers and clients. For example, they can automatically generate tool specifications and tool schemas right from your structs, or assist with elicitation requests and responses making them completely type safe.

mcp_tool

Generate a Tool from a struct, with rich metadata (icons, execution hints, etc.).

example usage:

#[mcp_tool(
   name = "write_file",
   title = "Write File Tool",
   description = "Create a new file or completely overwrite an existing file with new content.",
   destructive_hint = false idempotent_hint = false open_world_hint = false read_only_hint = false,
   meta = r#"{ "key" : "value", "string_meta" : "meta value", "numeric_meta" : 15}"#,
   execution(task_support = "optional"),
   icons = [(src = "https:/website.com/write.png", mime_type = "image/png", sizes = ["128x128"], theme = "light")]
)]
#[derive(rust_mcp_macros::JsonSchema)]
pub struct WriteFileTool {
    /// The target file's path for writing content.
    pub path: String,
    /// The string content to be written to the file
    pub content: String,
}

📝 For complete documentation, example usage, and a list of all available attributes, please refer to https://crates.io/crates/rust-mcp-macros.

tool_box!()

Automatically generates an enum based on the provided list of tools, making it easier to organize and manage them, especially when your application includes a large number of tools.

tool_box!(GreetingTools, [SayHelloTool, SayGoodbyeTool]);

let tools: Vec<Tool> = GreetingTools::tools();

💻 For a real-world example, check out tools/ and handle_call_tool_request(...) in rust-mcp-filesystem project

mcp_elicit()

Generates type-safe elicitation (Form or URL mode) for user input.

example usage:

#[mcp_elicit(message = "Please enter your info", mode = form)]
#[derive(JsonSchema)]
pub struct UserInfo {
    #[json_schema(title = "Name", min_length = 5, max_length = 100)]
    pub name: String,
    #[json_schema(title = "Email", format = "email")]
    pub email: Option<String>,
    #[json_schema(title = "Age", minimum = 15, maximum = 125)]
    pub age: i32,
    #[json_schema(title = "Tags")]
    pub tags: Vec<String>,
}

// Sends a request to the client asking the user to provide input
let result: ElicitResult = server.request_elicitation(UserInfo::elicit_request_params()).await?;

// Convert result.content into a UserInfo instance
let user_info = UserInfo::from_elicit_result_content(result.content)?; 

println!("name: {}", user_info.name);
println!("age: {}", user_info.age);
println!("email: {}",user.email.clone().unwrap_or("not provider".into()));
println!("tags: {}", user_info.tags.join(",")); 

📝 For complete documentation, example usage, and a list of all available attributes, please refer to https://crates.io/crates/rust-mcp-macros.

mcp_resource()

A procedural macro attribute that generates utility methods to create fully populated Resource instances from compile-time metadata , usually used for exposing static assets like files, images, or documents. Also generates a RESOURCE_URI associated constant, usable in match patterns, and a resource_mime_type() accessor.

📝 For complete documentation, example usage, and a list of all available attributes, please refer to https://crates.io/crates/rust-mcp-macros.

mcp_resource_template()

A procedural macro attribute that generates utility methods to create fully populated ResourceTemplate instances from compile-time metadata for exposing parameterized server resources. Also generates a RESOURCE_URI_TEMPLATE associated constant, usable in match patterns, and a resource_template_mime_type() accessor.

📝 For complete documentation, example usage, and a list of all available attributes, please refer to https://crates.io/crates/rust-mcp-macros.

mcp_prompt()

A procedural macro attribute that generates utility methods to create fully populated Prompt instances from compile-time metadata, and — when the optional messages attribute is provided — to parse request arguments (from_arguments) and render them into a GetPromptResult (render). Struct fields become typed prompt arguments (String = required, Option<String> = optional, String + default = fallback), the prompts/get handler itself is left to the user.

📝 For complete documentation, example usage, and a list of all available attributes, please refer to https://crates.io/crates/rust-mcp-macros.

mcp_icon!()

A convenient icon builder for implementations and tools, offering full attribute support including theme, size, mime, and more.

example usage:

let icon: crate::schema::Icon = mcp_icon!(
            src = "http://website.com/icon.png",
            mime_type = "image/png",
            sizes = ["64x64"],
            theme = "dark"
        );

Authentication

MCP server can verify tokens issued by other systems, integrate with external identity providers, or manage the entire authentication process itself. Each option offers a different balance of simplicity, security, and control.

RemoteAuthProvider

RemoteAuthProvider RemoteAuthProvider enables authentication with identity providers that support Dynamic Client Registration (DCR) such as KeyCloak and WorkOS AuthKit, letting MCP clients auto-register and obtain credentials without manual setup.

👉 See the server-oauth-remote example for how to use RemoteAuthProvider with a DCR-capable remote provider.

👉 rust-mcp-extra also offers drop-in auth providers for common identity platforms, working seamlessly with rust-mcp-sdk:

OAuthProxy

OAuthProxy enables authentication with OAuth providers that don’t support Dynamic Client Registration (DCR).It accepts any client registration request, handles the DCR on your server side and then uses your pre-registered app credentials upstream.The proxy also forwards callbacks, allowing dynamic redirect URIs to work with providers that require fixed ones.

⚠️ OAuthProxy support is still in development, please use RemoteAuthProvider for now.

AxumServerOptions

AxumServer is a lightweight Axum-based server provided by the rust-mcp-axum crate that streamlines MCP servers by supporting Streamable HTTP and SSE transports. It supports simultaneous client connections, internal session management, and includes built-in security features like DNS rebinding protection and more.

AxumServer is highly customizable through AxumServerOptions provided during initialization.

A typical example of creating an AxumServer that exposes the MCP server via Streamable HTTP and SSE transports at:


let server = create_axum_server(
    server_details,
    handler.to_mcp_server_handler(),
    AxumServerOptions {
        host: "127.0.0.1".to_string(),
        port: 8080,
        event_store: Some(std::sync::Arc::new(InMemoryEventStore::default())), // enable resumability
        auth: Some(Arc::new(auth_provider)), // enable authentication
        sse_support: false,
        ..Default::default()
    },
);

server.start().await?;

📝 Refer to AxumServerOptions for a complete overview of AxumServerOptions attributes and options.

Security Considerations

When using Streamable HTTP transport, following security best practices are recommended:

  • DNS rebinding protection is enabled by default. If allowed_hosts is not set, it auto-derives from host:port (e.g. 127.0.0.1:8080). For wildcard binds (0.0.0.0, ::), explicitly configure allowed_hosts.
  • When running locally, bind only to localhost (127.0.0.1 / localhost) rather than all network interfaces (0.0.0.0)
  • Use TLS/HTTPS for production deployments

Cargo Features

The rust-mcp-sdk crate provides several features that can be enabled or disabled. By default, all features are enabled to ensure maximum functionality, but you can customize which ones to include based on your project's requirements.

Available Features

  • server: Activates MCP server capabilities in rust-mcp-sdk, providing modules and APIs for building and managing MCP servers.
  • client: Activates MCP client capabilities, offering modules and APIs for client development and communicating with MCP servers.
  • macros: Provides procedural macros for simplifying the creation and manipulation of MCP Tool structures.
  • sse: Enables support for the Server-Sent Events (SSE) transport.
  • streamable-http: Enables support for the Streamable HTTP transport.
  • stdio: Enables support for the standard input/output (stdio) transport.
  • auth: Enables OAuth authentication support for MCP servers.
  • tls-no-provider: Enables TLS without a crypto provider. Useful if you already use a different crypto provider than the aws-lc default.

Default Features

When you add rust-mcp-sdk as a dependency without specifying any features, all features are enabled by default

[dependencies]
rust-mcp-sdk = "1.0"

Using Only the server Features

If you only need the MCP Server functionality, you can disable the default features and explicitly enable the server feature. Add the following to your Cargo.toml:

[dependencies]
rust-mcp-sdk = { version = "1.0", default-features = false, features = ["server","macros","stdio"] }

Optionally add rust-mcp-axum and the streamable-http feature for Streamable HTTP transport, and use rust-mcp-axum's ssl feature for TLS/SSL support.

Using Only the client Features

If you only need the MCP Client functionality, you can disable the default features and explicitly enable the client feature. Add the following to your Cargo.toml:

[dependencies]
rust-mcp-sdk = { version = "1.0", default-features = false, features = ["client","stdio"] }

Choosing Between Standard and Core Handlers traits

Learn when to use the mcp_*_handler traits versus the lower-level mcp_*_handler_core traits for both server and client implementations. This section helps you decide based on your project's need for simplicity versus fine-grained control.

Choosing Between ServerHandler and ServerHandlerCore

rust-mcp-sdk provides two type of handler traits that you can chose from:

  • ServerHandler: This is the recommended trait for your MCP project, offering a default implementation for all types of MCP messages. It includes predefined implementations within the trait, such as handling initialization or responding to ping requests, so you only need to override and customize the handler functions relevant to your specific needs. Refer to examples/common/example_server_handler.rs for an example.

  • ServerHandlerCore: If you need more control over MCP messages, consider using ServerHandlerCore. It offers three primary methods to manage the three MCP message types: request, notification, and error. While still providing type-safe objects in these methods, it allows you to determine how to handle each message based on its type and parameters. Refer to examples/common/example_server_handler_core.rs for an example.


👉 Note: Depending on whether you choose ServerHandler or ServerHandlerCore, you must use the create_server() function from the appropriate module:

  • For ServerHandler:

    • Use server_runtime::create_server() for servers with stdio transport
    • Use rust_mcp_axum::create_axum_server() for servers with Streamable HTTP/SSE transport
  • For ServerHandlerCore:

    • Use server_runtime_core::create_server() for servers with stdio transport
    • Use rust_mcp_axum::create_axum_server() for servers with Streamable HTTP/SSE transport

Choosing Between ClientHandler and ClientHandlerCore

The same principles outlined above apply to the client-side handlers, ClientHandler and ClientHandlerCore.

  • Use client_runtime::create_client() when working with ClientHandler

  • Use client_runtime_core::create_client() when working with ClientHandlerCore

Both functions create an MCP client instance.

Check out the corresponding examples at: examples/simple-mcp-client-stdio.rs and examples/simple-mcp-client-stdio-core.rs.

Message Observer (Telemetry & Monitoring)

The SDK provides a McpObserver trait that serves as a non-blocking hook for intercepting all incoming and outgoing MCP messages. This is particularly useful for applying telemetry, logging, debugging, or monitoring across your server or client without modifying your core business logic.

You can implement McpObserver and attach it to your client or server during initialization:

// Create a server with a custom observer
let server = server_runtime::create_server_with_options(ServerOptions {
    initialize_result: server_details,
    transport,
    handler: handler.to_mcp_server_handler(),
    task_store: None,
    client_task_store: None,        
    // example observer that will log some info about incoming/outgoing messages
    message_observer: Some(SimpleServerObserver::new()),
});

👉 See server_observer.rs and client_observer.rs for example implementations that log messages to a remote HTTP endpoint.

These observers are utilized in the hello-world-mcp-server-stdio and simple-mcp-client-streamable-http examples. You can monitor the generated logs in real-time at https://app.beeceptor.com/console/rustmcp.

Health Check Endpoint

While not part of the official MCP spec, rust-mcp-sdk provides an optional HTTP health check endpoint. This is a practical quality-of-life feature, specifically useful when your MCP server is:

  • Exposed behind load balancers or reverse proxies (e.g., NGINX, HAProxy, Cloudflare).
  • Running in container orchestration environments (e.g., Kubernetes, Docker Swarm, AWS ECS).

The health check endpoint is disabled by default. You can enable it and optionally provide your own custom handler (to return specific metrics or metadata) via AxumServerOptions:

let server = create_axum_server(
    server_details,
    handler.to_mcp_server_handler(),
    AxumServerOptions {
        host: "127.0.0.1".into(),
        health_endpoint: Some("/health".into()),             // enables the endpoint
        health_handler: Some(Arc::new(CustomHealth {})),     // optional: overrides default 200 OK
        ..Default::default()
    },
);

👉 See the streamable_http_healthcheck.rs example for a complete implementation demonstrating a custom JSON health handler.

Projects using Rust MCP SDK

Below is a list of projects that utilize the rust-mcp-sdk, showcasing their name, description, and links to their repositories or project pages.

NameDescriptionLink
Rust MCP FilesystemFast, async MCP server enabling high-performance, modern filesystem operations with advanced features.GitHub
MCP DiscoveryA lightweight command-line tool for discovering and documenting MCP Server capabilities.GitHub
mistral.rsBlazingly fast LLM inference.GitHub
moonmoon is a repository management, organization, orchestration, and notification tool for the web ecosystem, written in Rust.GitHub
destructive_command_guardThe Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents. - Dicklesworthstone/destructive_command_guardGitHub
enumrustSubdomain Enumerator and Simple Crawler. Contribute to KingOfBugbounty/enumrust development by creating an account on GitHub.GitHub
traceyCLI, Web, LSP, and MCP toolkit to measure spec coverage in Rust codebases - bearcove/traceyGitHub
GlassGlass - a fast and free IDA Pro alternative. Contribute to azw413/Glass development by creating an account on GitHub.GitHub
ghostSimple background process manager for Unix systems - skanehira/ghostGitHub
aprenderNext Generation Machine Learning, Statistics and Deep Learning in PURE Rust - paiml/aprenderGitHub
mcp-cppMCP server tailored to work with large C/C++ codebases - mpsm/mcp-cppGitHub
agent-divaNext Generation AI Agent(AKA:nanobot-rs-pro). Contribute to ProjectViVy/agent-diva development by creating an account on GitHub.GitHub
rust-mcp-serverrust-mcp-server allows the model to perform actions on your behalf, such as building, testing, and analyzing your Rust code.GitHub
ruskelRuskel generates skeletonized outlines of Rust crates. - cortesi/ruskelGitHub
ai-agentIdiomatic agent sdk inspired by the claude code source leak. - snailwei/ai-agentGitHub
myceliumMycelium API Gateway, the ultimate solution for secure, flexible, and multi-tenant API management - LepistaBioinformatics/myceliumGitHub
text-to-cypherA high-performance Rust-based API service that translates natural language text to Cypher queries for graph databases.GitHub
lunexAll-in-One Workspace AI. Contribute to zen8labs/lunex development by creating an account on GitHub.GitHub
angrealAngreal provides a way to template the structure of projects and a way of executing methods for interacting with that project in a consistent manner.GitHub

Contributing

We welcome everyone who wishes to contribute! Please refer to the contributing guidelines for more details.

Check out our development guide for instructions on setting up, building, testing, formatting, and trying out example projects.

All contributions, including issues and pull requests, must follow Rust's Code of Conduct.

Unless explicitly stated otherwise, any contribution you submit for inclusion in rust-mcp-sdk is provided under the terms of the MIT License, without any additional conditions or restrictions.

Development

Check out our development guide for instructions on setting up, building, testing, formatting, and trying out example projects.

License

This project is licensed under the MIT License. see the LICENSE file for details.

常见问题

What is rust-mcp-sdk?

rust-mcp-sdk is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by rust-mcp-stack. A high-performance, asynchronous toolkit for building MCP servers and clients in Rust. It has 191 GitHub stars.

Is rust-mcp-sdk safe to use?

Yes. rust-mcp-sdk passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install rust-mcp-sdk?

Clone the repository with "git clone https://github.com/rust-mcp-stack/rust-mcp-sdk" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is rust-mcp-sdk written in?

rust-mcp-sdk is primarily written in Rust. It is open-source under rust-mcp-stack on GitHub, so you can review or fork the full source.

Are there alternatives to rust-mcp-sdk?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rust-mcp-sdk against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情