oatpp-mcp
oatpp/oatpp-mcp · 50 stars · C++ · Apache-2.0
MCP server Anthropic’s Model Context Protocol implementation for Oat++
Install
The repo has no one-line install. Follow its README.
Files
oatpp-mcp
Anthropic’s Model Context Protocol implementation for Oat++
Read more:
Supported features
Autogenerated tools for API
🎉 oatpp-mcp can automatically generate tools from ApiController so that you can query your API with LLM. 🎉
- 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());
Facts
- Kind
- MCP server
- Repo
- oatpp/oatpp-mcp
- Group
- Uncategorized
- Stars
- 50
- License
- Apache-2.0
- Language
- C++
- Last push
- 2024-12-13
- Forks
- 6
- Homepage
- oatpp.io
- Topics
- anthropic, model-context-protocol, oatpp
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k