AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Dev Tooling/
cxxmcp
cxxmcp logo

cxxmcp

Active·★ 27·MIT·Updated 2026-10-17

cxxmcp is a C++17 SDK for the Model Context Protocol. It lets you build MCP servers and clients that embed directly into native C++ applications, with typed protocol models, tool, prompt and resource registries on the server side, and HTTP, stdio and process-stdio clients with async helpers on the client side.

Transports include stdio, process stdio, Streamable HTTP with stateful sessions, legacy SSE compatibility and WebSocket with auto-reconnect. Protocol coverage lists tools, prompts, resources and templates, completion, logging, roots, sampling, elicitation, task lifecycle, progress and cancellation, plus raw JSON-RPC escape hatches for vendor extensions. The project says it is validated against the official modelcontextprotocol/conformance runner and reports 109 of 110 server checks passing, against 48 of 95 for the RMCP Rust SDK in its own comparison table. It can be consumed through CMake find_package, Conan 2, a vcpkg overlay, FetchContent or CPM, and the quick start builds an echo server in about a dozen lines.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-17.

License
MIT
Latest release
v1.3.0 · 2026-09-15
Last commit
2026-10-17
Contributors
4
Forks
6
Open issues and PRs
2
First published
2025-08-05

Source: GitHub, npm and PyPI public APIs.

#C++17#SDK#Model Context Protocol#MCP#JSON-RPC#CMake#Client-Server#Protocol Implementation
$ Install
$ cmake -S . -B build -DCXXMCP_BUILD_CLIENT=ON -DCXXMCP_BUILD_SERVER=ON && cmake --build build --config Release && cmake --install build --config Release --prefix out/install/cxxmcp
↗ Visit site★ GitHub
01

Features

01Full MCP protocol coverage with typed, capability-gated helpers.
02Cross-SDK conformance validation against the official runner.
03Multiple transport options including stdio, process-stdio, Streamable HTTP, and WebSocket.
04RMCP-style Peer/Service architecture designed for embedding.
05Standard CMake SDK consumption.
02

Why choose it

+Brings MCP to native C++ applications with servers and clients that embed directly.
+Wide transport support: stdio, Streamable HTTP, legacy SSE and WebSocket with auto-reconnect.
+Reports validation against the official conformance runner, with 109 of 110 server checks passing.
+Easy to adopt through CMake, Conan 2, vcpkg overlay, FetchContent or CPM.
03

Trade-offs

!It is a developer SDK, not a ready-to-use MCP server; you need to write C++ to use it.
!The comparison with the RMCP SDK is the project's own table, so treat the percentages as self-reported.
!The project is small (about 26 stars), so examples and community help are limited.
04

Maintenance check

ActiveChecked: 2026-10-19
Last commit
2026-10-10
Commits, last 90 days
49
Releases, last 90 days
7
Latest release
v1.3.0 (2026-09-15)
Open issues
2
Recent issues with at least one comment
11/14
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 1, 3, 9, 0, 1, 1, 7, 0, 1, 1, 0, 0

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

05

Compatibility

C++17
Language Standard
Verified via docs
CMake
Build System
Verified via docs
Conan 2
Package Manager
Verified via docs
vcpkg
Package Manager
Verified via docs
xmake
Build System
Verified via docs
MinGW UCRT64 GCC
Compiler (Provisional)
Verified via docs
06

Quick start

1
$ cmake -S . -B build -DCXXMCP_BUILD_CLIENT=ON -DCXXMCP_BUILD_SERVER=ON
2
$ cmake --build build --config Release
3
$ cmake --install build --config Release --prefix out/install/cxxmcp
07

Use cases

↳Developing native C++ applications that act as MCP servers.
↳Building C++ clients to interact with MCP-compliant services.
↳Integrating Model Context Protocol capabilities directly into existing C++ projects.
08

Alternatives

⚡Top VS:
VSruby-sdk★937→VSkotlin-sdk★1.5k→VSfastmcp_rust★39→VSswift-mcp★23→
ruby-sdk logo
ruby-sdk★ 937
The official Ruby SDK for the Model Context Protocol.
VSCompare→
kotlin-sdk logo
kotlin-sdk★ 1.5k
The official Kotlin SDK for Model Context Protocol servers and clients. Maintained in collaboration with JetBrains
VSCompare→
fastmcp_rust logo
fastmcp_rust★ 39
Rust framework for building Model Context Protocol servers with cancel-correct async, zero-copy serialization, and first-class tool/resource/prompt abstractions
VSCompare→
swift-mcp logo
swift-mcp★ 23
Full-featured Swift SDK for Model Context Protocol servers and clients
VSCompare→
mcp-server-simulator-ios-idb logo
mcp-server-simulator-ios-idb★ 332
A Model Context Protocol (MCP) server that enables LLMs to interact with iOS simulators through natural language commands.
VSCompare→
ncp logo
ncp★ 100
Natural Context Provider (NCP). Your MCPs, supercharged. Find any tool instantly, load on demand, run on schedule, ready for any client. Smart loading saves tokens and energy.
VSCompare→
qveris-agent-toolkit logo
qveris-agent-toolkit★ 262
Open-source toolkit for the QVeris capability routing network: CLI, MCP server, Python SDK, skills, and REST API docs for agents to discover, inspect, call, and audit real-world tools.
VSCompare→
optuna-mcp logo
optuna-mcp★ 88
The Optuna MCP Server is a Model Context Protocol (MCP) server to interact with Optuna APIs.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Maintenance check05Compatibility06Quick start07Use cases08Alternatives
caomengxuan666 /
cxxmcp
↗

C++17 SDK for building MCP servers and clients, tested against the official suite

276MIT
Last commit6d ago
StatusActive
CategoryDev Tooling
Contributors4
Latest releasev1.3.0
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.