API Documentation MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pnpm install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add api-doc -- node "<FULL_PATH_TO_API_DOC_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_API_DOC_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

README.md

Fetches API documentation data from a local API documentation platform.

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

Configuration

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

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.

Need the old visual installer? Open Conare IDE.
Open Conare