MCP server/ai-tools

API Documentation MCP Server

Fetches API documentation data from a local API documentation platform.

JaxNext/api-doc-mcp-server ↗by JaxNextupdated
Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

pnpm install
2

Register it in Claude Code

claude mcp add api-doc -- node /path/to/api-doc-mcp-server/api-doc.js

Replace any placeholder paths in the command with the real path on your machine.

3

Make your agent remember this setup

api-doc's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • 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

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".
Original README from JaxNext/api-doc-mcp-server

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

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.

Conare · memory for coding agents

Turn this server into reusable context

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

Set up free$npx conare@latest