Conntect Online API Documentation Published by Apidog to AI via Apidog MCP Server

Enabling MCP for Online Documentation
Apidog version should be ≥ 2.7.2.
Enable MCP Service
Navigate to Apidog project, then go to 
Share Docs
→ Publish Docs Sites
→ AI Features
to enable MCP service.Get Configuration File
After enabling, the 
Clicking the button will display the configuration guide and the MCP config file, which automatically includes your documentation's 
Vibe Coding(via MCP)
button will appear when accessing online documentation.site-id
. Simply copy this configuration for IDE integration.Configuring MCP Client
Prerequisites
Configuring MCP in Cursor
Edit MCP Config File
Open Cursor editor, click the settings icon (top-right), select "MCP" from the left menu, then click "+ Add new global MCP server".
Add Configuration
Paste the MCP JSON configuration copied from online documentations into the opened
mcp.json
file:macOS / Linux
Windows
{
"mcpServers": {
"apidog-site-123456": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--site-id=123456"
]
}
}
}
Verify Configuration
Test the connection by asking the AI (in Agent mode), for example:If the AI returns correct API information, the connection is successful. 
Please fetch API documentation via MCP and tell me how many endpoints exist in the project.
Important Notes
<site-id>
.<API address of the on-premise server, starting with http:// or https://>
" Additionally, ensure network access to www.npmjs.com
properly. {
"mcpServers": {
"apidog-site-123456": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--site-id=123456",
// Required for on-premise deployment:
"--apidog-api-base-url=<API address of the on-premise server>"
]
}
}
}
Connecting Other Data Resources to AI
FAQs
Modified at 2025-03-28 11:21:40