Back to Home
rust-mcp-stack icon

rust-mcp-sdk

Verified Safe

by rust-mcp-stack

Overview

A high-performance, asynchronous Rust SDK for building Model Context Protocol (MCP) servers and clients, supporting various transports and authentication methods.

Installation

Run Command
cargo run --example hello-world-server-streamable-http

Environment Variables

  • AUTH_SERVER
  • CLIENT_ID
  • CLIENT_SECRET
  • ENVIRONMENT_URL
  • RESOURCE_ID
  • RUST_LOG

Security Notes

The SDK provides robust security features including OAuth 2.0/OpenID Connect authentication (JWKS, introspection, UserInfo), DNS rebinding protection, and TLS/SSL support. It leverages standard Rust security practices and async primitives. A potential risk lies in the `StdioTransport::create_with_server_launch` function, which executes arbitrary commands and arguments. While this is a core feature for launching external MCP servers, users of the SDK must ensure that any external input used to construct these commands/arguments is thoroughly sanitized to prevent command injection vulnerabilities. No obvious hardcoded secrets or malicious patterns were found in the provided source code snippets.

Similar Servers

Stats

Interest Score54
Security Score8
Cost ClassMedium
Avg Tokens50
Stars138
Forks21
Last Update2026-01-18

Tags

RustMCPSDKAsynchronousAPI