npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

apidog-mcp-server

v0.0.16

Published

The **Apidog MCP Server** allows you to use your API documentation from Apidog projects as a data source for AI-powered IDEs like **Cursor**. This means Agentic AI can directly access and work with your API documentation, speeding up development and makin

Downloads

1,126

Readme

Apidog MCP Server

The Apidog MCP Server allows you to use your API documentation from Apidog projects as a data source for AI-powered IDEs like Cursor. This means Agentic AI can directly access and work with your API documentation, 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 documentation.
  • Search through API documentation content.
  • And much more! Let your imagination and your team's creativity guide you. 😜

🎯 How Apidog MCP Server Works?

Once the Apidog MCP Server is set up, it automatically reads and caches all API documentation data from your Apidog project 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 documentation. Here are some examples:

  1. Generate Code: "Use MCP to fetch the API documentation and generate Java records for the 'Product' schema and related schemas".
  2. Update DTOs: "Based on the API documentation, add the new fields to the 'Product' DTO".
  3. Add Comments: "Add comments for each field in the 'Product' class based on the API documentation".
  4. Create MVC Code: "Generate all the MVC code related to the endpoint '/users' according to the API documentation".

🚀 Installation Guide

Prerequisites

  • Node.js (version 18 or higher, preferably the latest LTS version).
  • An IDE that supports MCP, such as:
    • Cursor
    • VS Code + Cline plugin

Installation Steps

Step 1. Generate an Access Token in Apidog

  • Open Apidog, hover over your avatar at the top-right corner, and click Account Settings > API Access Token.
  • Create a new API access token (refer to the help documentation for details).
  • Copy the access token and replace <access-token> in the configuration file below.

Step 2. Get the Apidog Project ID

  • Open the desired project in Apidog.
  • Click project Settings at the left sidebar, and copy the Project ID from the Basic Settings page.
  • Copy the project ID and replace <project-id> in the configuration file below.

Step 3. Configure the IDE

  • Copy the following JSON configuration code to add to the MCP configuration file in your IDE:
{
  "mcpServers": {
    "API docuemntation": {
      "command": "npx",
      "args": [
        "-y",
        "apidog-mcp-server@latest",
        "--project-id=<project-id>"
      ],
      "env": {
        "APIDOG_ACCESS_TOKEN": "<access-token>"
      }
    }
  }
}

If you're on Windows and the configuration file above isn't working, try using the configuration file below instead:

{
  "mcpServers": {
    "API docuemntation": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "apidog-mcp-server@latest",
        "--project-id=<project-id>"
      ],
      "env": {
        "APIDOG_ACCESS_TOKEN": "<access-token>"
      }
    }
  }
}
  • Add the copied JSON configuration code to the MCP file in your IDE:
    • For Cursor: Add to the global ~/.cursor/mcp.json or the project-specific .cursor/mcp.json.**
    • For Cline: Open the Cline panel > MCP Server > Configure MCP Server.

Important Notes

  • Replace <access-token> and <project-id> with your personal Apidog API access token and project ID.
  • Name the MCP Server something like "API Documentation" or "xxx API Documentation" to help the AI recognize its purpose. Avoid generic names like "Apidog" or "Apidog MCP", as it might confuse AI.
  • If you need to work with API documentation from several projects, simply add multiple MCP Server configurations to the configuration file. Each project should have its own unique <project-id>. For clarity, name each MCP Server following the format "xxx API Documentation".
  • If your team syncs the MCP configuration file to a code repository, it is recommended to remove the line "APIDOG_ACCESS_TOKEN": "<access-token>" and instead, configure the APIDOG_ACCESS_TOKEN as an environment variable on each member's machine to prevent token leakage.
  • For users of the on-premise deployment, add the following parameter to the MCP configuration file in your IDE: "--apidog-api-base-url=<API address of the on-premise server, starting with http:// or https://>". Additionally, ensure that your can access www.npm.com properly.
  • In addition to the Apidog project, Apidog MCP Server also has the ability to directly read Swagger or OpenAPI Specification (OAS) files. To use this feature:
    • Remove the --project-id=<project-id> parameter.
    • Add the--oas=<oas-url-or-path>parameter, such as npx apidog-mcp-server --oas https://petstore.swagger.io/v2/swagger.json or npx apidog-mcp-server --oas ~/data/petstore/swagger.json.

❓ 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.