API Documentation MCP Server

Fetches API documentation data from a local API documentation platform.

README.md

API Documentation MCP Server

A simple Model Context Protocol (MCP) server that fetches API documentation data from a local API documentation platform.

Features

This MCP server provides a single tool:

  • api_doc - Fetch API documentation data for a specific endpoint by document ID

Prerequisites

  • Node.js 18+ with ES modules support
  • An API documentation platform running locally at http://localhost:3000
  • pnpm package manager

Installation

  1. Install dependencies:
pnpm install

Config in Cursor

{
  "mcpServers": {
    // other servers...
    "ApiDoc": {
      "command": "node",
      "args": [
        "/path/to/api-doc-mcp-server/api-doc.js"
      ],
    },
  }
}

Usage

Input prompts like this:

Add a new form page for creating new user, the API docId is "create-user".

The "create-user" is the docId

The LLM will automatically use the api_doc tool to fetch the API documentation data for the create-user endpoint.

License

ISC

Tools 1

api_docFetch API documentation data for a specific endpoint by document ID

Try it

Add a new form page for creating new user, the API docId is "create-user".
Can you help me implement the authentication flow using the documentation for "auth-login"?
Generate a TypeScript interface based on the API specification for "get-user-profile".

Frequently Asked Questions

What are the key features of API Documentation?

Fetches API documentation data from a local platform. Retrieves specific endpoint specifications by document ID. Enables LLMs to assist with code generation and API integration.

What can I use API Documentation for?

Automating the generation of API client code based on local documentation. Assisting developers in implementing new endpoints by providing instant access to specs. Reducing context switching by allowing the LLM to query documentation directly.

How do I install API Documentation?

Install API Documentation by running: pnpm install

What MCP clients work with API Documentation?

API Documentation works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep API Documentation docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare