oatpp-mcp

oatpp-mcp

C++ MCP integration for Oat++. Use Oat++ to build MCP servers.

48
Stars
4
Forks
0
Releases

Overview

Oatpp-mcp is an integration of Anthropic's Model Context Protocol (MCP) with the Oat++ framework. It enables generating API interaction tooling from ApiController definitions so large language models can query and interact with your services. The project provides multiple transports (STDIO and HTTP SSE) to deliver MCP messages between the LLM and the server, and includes server-side features for Model Context Protocol prompts, resources, and tools. It can autogenerate prompts and control flows by wiring up the MCP components from ApiController definitions and wiring them to prompts, resources, and tools as part of the MCP server. The README shows how to build and install: clone the repository, run cmake, and make install. Examples demonstrate creating an oatpp::mcp::Server, adding prompts, resources and tools, and running via stdioListen or by exposing an SSE controller in an HTTP router. A working example is located in tests/test/oatpp-mcp/app/ServerTest.cpp and an example project branch add_mcp_server in example-crud.

Details

Owner
oatpp
Language
C++
License
Apache License 2.0
Updated
2025-12-07

Features

Autogenerated tools for API

oatpp-mcp can automatically generate tools from ApiController so that you can query your API with LLM.

Transport STDIO

Supports standard input/output transport for MCP servers.

Transport HTTP SSE

Supports HTTP Server-Sent Events transport for MCP servers.

Prompts

Server supports Prompts per Model Context Protocol specification.

Resources

Server supports Resources per Model Context Protocol specification.

Tools

Server supports Tools per Model Context Protocol specification.

Audience

LLM developersBuild MCP-enabled APIs and query them with large language models.

Tags

oatppMCPModel Context ProtocolAnthropicLLMAPIPromptsResourcesToolsSTDIOSSE