MCP Directory
ServersClientsBlog

xASO - App Store Optimization

AI-powered App Store Optimization platform for mobile apps

Go to xASO
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2025 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Servers
  3. oatpp-mcp

oatpp-mcp

GitHub
Website

Oatpp-mcp implements Anthropic's Model Context Protocol for Oat++, enabling LLM integration with your Oat++ API through autogenerated tools. It supports STDIO and HTTP SSE transports, along with Prompts, Resources, and Tools.

46
1

oatpp-mcp

Anthropic’s Model Context Protocol implementation for Oat++.

Read more:

  • About Oat++
  • Oat++ Repository
  • Model Context Protocol

Supported features

Autogenerated tools for API

:tada: oatpp-mcp automatically generates tools from ApiController to query your API with LLMs. :tada:

  • Detailed tutorial
  • Example project example-crud (branch add_mcp_server)

Transport

  • STDIO
  • HTTP SSE

Server features

  • Prompts
  • Resources
  • Tools

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: Redirect oatpp logging to a different stream (e.g., to a file) by providing a 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());

Repository

OA
oatpp

oatpp/oatpp-mcp

Created

December 9, 2024

Updated

March 28, 2025

Language

C++

Category

AI