oatpp-mcp
Anthropic’s Model Context Protocol implementation for Oat++
Overview
The oatpp-mcp is an implementation of Anthropic’s Model Context Protocol for the Oat++ framework, enabling the integration of large language models (LLMs) with API functionalities.
To use oatpp-mcp, clone the repository, build the module using CMake, and follow the provided examples to set up a server with API querying features.
- Autogenerated tools for API interaction with LLMs. - Support for transport through STDIO and HTTP SSE. - Server functionalities including prompts, resources, and tools.
- Creating an API that allows querying of LLMs.
- Implementing server-side logic for code review prompts.
- Enabling real-time data logging and resource interaction through LLM APIs.
Add to your AI client
Use these steps to connect oatpp-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"oatpp-mcp-oatpp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"oatpp-mcp-oatpp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"oatpp-mcp-oatpp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"oatpp-mcp-oatpp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"oatpp-mcp-oatpp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"oatpp-mcp-oatpp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-oatpp-mcp-oatpp"
]
}
}
}FAQ
What do I need before installing oatpp-mcp?
You must first install the main oatpp module.
How do I serve this module?
You can serve via STDIO or HTTP SSE by configuring the server accordingly in your application code.
Where can I find examples?
Examples are available in the tests folder, specifically in `/test/oatpp-mcp/app/ServerTest.cpp`.7: