oatpp-mcp
Anthropic’s Model Context Protocol implementation for Oat++
Documentation
oatpp-mcp
Anthropic’s Model Context Protocol implementation for Oat++
Read more:
Supported features
Autogenerated tools for API
:tada: `oatpp-mcp` can automatically generate tools from `ApiController` so that you can query your API with LLM. :tada:
- Detailed tutorial
- Example project example-crud (branch `add_mcp_server`)
Transport
- STDIO
- HTTP SSE
Server features
Build And Install
Pre Requirements
- Install the main oatpp module
Install module
- Clone this repository.
- In the root of the repository run:
mkdir build && cd build
cmake ..
make installExamples
Find working example in tests `/test/oatpp-mcp/app/ServerTest.cpp`
Serve via STDIO
Note: make sure to redirect oatpp logging to a different stream - ex.: to file by providing custom Logger.
/* Create MCP server */
oatpp::mcp::Server server;
/* Add prompts */
server.addPrompt(std::make_shared());
/* Add resource */
server.addResource(std::make_shared());
/* Add tools */
server.addTool(std::make_shared());
/* Run server */
server.stdioListen();Serve via SSE
/* Create MCP server */
oatpp::mcp::Server server;
/* Add prompts */
server.addPrompt(std::make_shared());
/* Add resource */
server.addResource(std::make_shared());
/* Add tools */
server.addTool(std::make_shared());
/* Add SSE controller to your HTTP server router */
router->addController(server.getSseController());Frequently asked questions
What is oatpp-mcp?
oatpp-mcp is Anthropic’s Model Context Protocol implementation for Oat++
How do I install oatpp-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is oatpp-mcp open source?
Yes — it is hosted on GitHub at https://github.com/oatpp/oatpp-mcp and has 48 stars.
Related MCP tools
An MCP server that allows MCP clients like Claude Desktop or Cursor to perform actions in the Unity Editor C#-based implementation.
A Model Context Protocol server for converting almost anything to Markdown TypeScript-based implementation. Trusted by 2200+ developers.
Enable any LLM (e.g. Claude) to interactively debug any language for you via MCP and a VS Code Extension TypeScript-based implementation.
A server that integrates Linear's project management system with the Model Context Protocol (MCP) to allow LLMs to interact with Linear.
Model Context Protocol Server for NixOS resources HTML-based implementation.
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP