Neva
Blazingly fast and easily configurable Model Context Protocol (MCP) server and client SDK for Rust. With simple configuration and ergonomic APIs, it provides everything you need to quickly build MCP clients and servers, fully aligned with the latest MCP specification.
💡 Note: This project is currently in preview. Breaking changes can be introduced without prior notice.
Tutorial | API Docs | Examples
Key Features
- Client & Server SDK - one library to build both MCP clients and servers with the powers of Rust.
- Performance - asynchronous and Tokio-powered.
- Transports - stdio for local integrations and Streamable HTTP for remote, bidirectional communication.
- Tools, Resources & Prompts - full-house support for defining and consuming the main MCP entities.
- Authentication & Authorization - bearer token authentication, role-based access control, and more to fit high security standards.
- Structured Data - output validation, embedded resources, and resource links out of the box.
- Spec Alignment - designed to track the latest MCP specification and cover its core functionality.
Quick Start
MCP Client
Dependencies
[]
= { = "0.2.5", = ["client-full"] }
= { = "1", = ["full"] }
Code
use *;
async
MCP Server
Dependencies
[]
= { = "0.2.5", = ["server-full"] }
= { = "1", = ["full"] }
Code
use *;
async
async
async
async