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 install
Examples
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());
Recommend MCP Servers 💡
gustavo-meilus/mcp-web-snapshot
A Model Context Protocol (MCP) server that provides comprehensive website snapshot capabilities using Playwright.
imessage-query
An MCP server that provides safe access to your iMessage database through Model Context Protocol (MCP). This server is built with the FastMCP framework and the imessagedb library, enabling LLMs to query and analyze iMessage conversations with proper phone number validation and attachment handling.
@modelcontextprotocol/server-github
An MCP server for the GitHub API, providing functionalities for file operations, repository management, and search.
mcp-apple-notes
An MCP server enabling semantic search and RAG over Apple Notes for AI assistants like Claude
mcp-server-mtg-assistant
MCP server for fetching Magic: The Gathering card information via Scryfall API.
@riza-io/riza-mcp
The Riza MCP server wraps the Riza API to provide an isolated code interpreter for LLM-generated code, exposing functionalities like creating, fetching, executing, editing, and listing tools, as well as executing arbitrary code safely.