The Apidog MCP Server allows you to use your API specification as a data source for AI-powered IDEs like Cursor. This means Agentic AI can directly access and work with your API specification, speeding up development and making your workflow more efficient.With Apidog MCP Server, developers can leverage the AI assistant to:Generate or modify code based on API specification.
Search through API specification content.
And much more! Let your imagination and your team's creativity guide you. π
The Apidog MCP Server is currently in beta testing. The content of this help document will be updated dynamically, so stay tuned.
π― How Apidog MCP Server Works?#
Once the Apidog MCP Server is set up, it automatically reads and caches all API specification data on your local machine. The AI can then retrieve and utilize this data seamlessly.Simply instruct the AI on what youβd like to achieve with the API specification. Here are some examples:1.
Generate Code: "Use MCP to fetch the API specification and generate Java records for the 'Product' schema and related schemas".
2.
Update DTOs: "Based on the API specification, add the new fields to the 'Product' DTO".
3.
Add Comments: "Add comments for each field in the 'Product' class based on the API specification".
4.
Create MVC Code: "Generate all the MVC code related to the endpoint '/users' according to the API specification".
Note: API documentations are cached locally. If data in Apidog changes, ask the AI to refresh to ensure it reads the latest updates.π Installation Guide#
Prerequisites#
Node.js (version 18 or higher, preferably the latest LTS version).
An IDE that supports MCP, such as: Choose Configuration Method Based on Different Data Source#
Apidog MCP Server supports connecting AI to three different data sources. Select the corresponding configuration method based on your needs:Use Case:Use AI to access API specification within your Apidog team
Apidog personal API access token required
Apidog MCP Server Configuration for On-Premise Deployment#
For users of the on-premise deployment, regardless of which configuration method you choose above, you must include your on-premise server's API address in the configuration: "--apidog-api-base-url=<API address of the on-premise server, starting with http:// or https://>
"Note: Ensure that your can access www.npm.com properly. β Help and Support#
The Apidog MCP Server is currently in beta. Weβd love to hear your feedback and suggestions! Join our Discord or Slack community for support and updates.