Skip to content

About

C++17 implementation of the Model Context Protocol (MCP), providing both client and server libraries for building MCP-based AI tooling integrations.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

MCP C++ SDK

中文文档:README_zh.md

C++17 implementation of the Model Context Protocol (MCP): static client and server libraries for MCP-based AI tooling integrations.

License C++17 Platform

Status: 0.3.13 (mcp::kSdkVersion), five protocol versions in two eras, 124 conformance tests. Windows (MSVC, clang-cl), Linux (GCC, Clang), macOS (Clang).

Requirements

  • CMake 3.28+ with the Ninja generator; a C++17 compiler (MSVC, Clang, GCC).
  • OpenSSL optional: MCP_WITH_OPENSSL=AUTO|ON|OFF (default AUTO). TLS needs it; OAuth PKCE does not (built-in SHA-256 fallback). Supports 3.x/4.x.

Quick start

cmake --preset debug
cmake --build --preset debug
ctest --preset debug --output-on-failure

Presets: debug, release. Examples need -DMCP_BUILD_EXAMPLES=ON; the conformance fixture needs -DMCP_BUILD_CONFORMANCE=ON.

Documentation

Full manual: https://jesspig.github.io/modelcontextprotocol-cpp-sdk/. Sources: docs/zh (Chinese original), mirrored in English at docs/en.

License

MIT — LICENSE.

About

C++17 implementation of the Model Context Protocol (MCP), providing both client and server libraries for building MCP-based AI tooling integrations.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages