MCP Protocol Framework
A lightweight C++ SDK implementing the Model Context Protocol, letting AI models and agents interact with external resources and tools over JSON-RPC 2.0.
This is a C++ implementation of the Model Context Protocol (MCP), an open protocol that gives AI models and agents a standardized way to interact with resources, tools and services, conforming to the 2025-03-26 basic protocol specification.
It communicates over JSON-RPC 2.0, with standard interfaces for resources such as files and APIs, registration and structured-parameter calling of tools, and registration of prompt templates for AI workflows. It supports both HTTP/SSE and standard input/output transports, and its architecture is meant to be extended with new resource and tool types.
It builds with CMake, with optional GoogleTest-based tests and optional SSL support, and separates its client, server, message-processing, tool-management and resource-management code into distinct components.