Anthropic’s Model Context Protocol implementation for Oat++
Created 3 months ago
Anthropic’s Model Context Protocol implementation for Oat++
development
documentation
public
What is Anthropic’s Model Context Protocol implementation for Oat++?
oatpp-mcp is an implementation of the Model Context Protocol for Oat++. It supports autogenerated tools for API, allowing you to query your API with LLM. It features transport via STDIO and HTTP SSE, and includes server features like prompts, resources, and tools.
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:
\n\n## Examplesmkdir build && cd build cmake .. make install
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<prompts::CodeReview>());
/* Add resource */
server.addResource(std::make_shared<resource::File>());
/* Add tools */
server.addTool(std::make_shared<tools::Logger>());
/* Run server */
server.stdioListen();
Serve via SSE
/* Create MCP server */
oatpp::mcp::Server server;
/* Add prompts */
server.addPrompt(std::make_shared<prompts::CodeReview>());
/* Add resource */
server.addResource(std::make_shared<resource::File>());
/* Add tools */
server.addTool(std::make_shared<tools::Logger>());
/* Add SSE controller to your HTTP server router */
router->addController(server.getSseController());
Server Config
{
"mcpServers": {
"anthropic’s-model-context-protocol-implementation-for-oat++-server": {
"command": "npx",
"args": [
"anthropic’s-model-context-protocol-implementation-for-oat++"
]
}
}
}
Links & Status
Project Info
Hosted
Featured
Created At:
Aug 08, 2025
Updated At:
Aug 08, 2025
Author:
Unknown
Category:
API Development
Tags:
development
documentation
public