fastmcpp High‑performance C++ implementation of the Model Context Protocol (MCP), with support for tools, resources, prompts, and multiple transport layers (STDIO, HTTP/SSE, WebSocket). fastmcpp is a C++ port of the Python fastmcp library, providing native performance for MCP servers and clients with a small, focused dependency set. Status: Beta – core MCP features track the Python fastmcp reference, but the C++ test suite is intentionally much smaller than the Python one. Current version: 2.13.0. Python fastmcp remains the canonical source of truth for behavior and API; this C++ port is expected to follow it. Features Core MCP protocol implementation (JSON‑RPC). Multiple transports: STDIO, HTTP (SSE), WebSocket. Tool management and invocation. Resources and prompts support. JSON Schema validation. Middleware for request/response processing. Integration with MCP‑compatible CLI tools. Cross‑platform: Windows, Linux, macOS. Requirements C++17 or later compiler. CMake 3.20 or higher. nlohmann/json (fetched automatically). Optional: libcurl (for HTTP POST streaming). cpp‑httplib (HTTP server, fetched automatically). easywsclient (WebSocket client, fetched automatically). Building Basic build git clone https://github.com/0xeb/fastmcpp.git cd fastmcpp cmake -B build -S . -DCMAKE_BUILD_TYPE=Release cmake --build build --config Release -j Recommended configuration options cmake -B build -S . \ -DCMAKE_BUILD_TYPE=Release \ -DFASTMCPP_ENABLE_POST_STREAMING=ON \ -DFASTMCPP_FETCH_CURL=ON \ -DFASTMCPP_ENABLE_STREAMING_TESTS=ON \ -DFASTMCPP_ENABLE_WS_STREAMING_TESTS=ON Key options: Option Default Description CMAKE_BUILD_TYPE Debug Build configuration (Debug/Release/RelWithDebInfo) FASTMCPP_ENABLE_POST_STREAMING OFF Enable HTTP POST streaming (requires libcurl) FASTMCPP_FETCH_CURL OFF Fetch and build curl if not found FASTMCPP_ENABLE_STREAMING_TESTS OFF Enable SSE streaming tests FASTMCPP_ENABLE_WS_STREAMING_TESTS OFF Enable WebSocket streaming tests Platform notes Windows (Visual...
First seen: 2025-11-17 11:46
Last seen: 2025-11-17 17:47