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, simplifying protocol handling, enabling tool-based interactions, and supporting multiple transports and authentication methods.

Installation

Run Command
cargo run -p hello-world-server-streamable-http --release

Environment Variables

  • OAUTH_CLIENT_ID
  • OAUTH_CLIENT_SECRET
  • ENVIRONMENT_URL
  • RESOURCE_ID

Security Notes

The SDK is built in Rust, offering strong type safety and memory safety guarantees. It explicitly includes features for DNS rebinding protection, SSL/TLS, and OAuth authentication for servers, using best practices like dynamic client registration and robust token verification (JWKS, introspection). Client credentials for OAuth are read from environment variables in examples. However, the project is explicitly marked as "under development," suggesting potential for undiscovered vulnerabilities. Proper configuration of SSL certificates, allowed hosts/origins, and strong OAuth providers is critical for secure deployment. The `OAuthProxy` for non-DCR providers is noted as "still in development" and should be avoided for now.

Similar Servers

Stats

Interest Score54
Security Score9
Cost ClassLow
Avg Tokens1
Stars124
Forks19
Last Update2025-11-23

Tags

RustMCPSDKServerClient