Prepare the server locally
Run this once before adding it to Claude Code.
pnpm installRegister it in Claude Code
claude mcp add api-doc -- node /path/to/api-doc-mcp-server/api-doc.jsReplace any placeholder paths in the command with the real path on your machine.
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@latestFree · 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 IDTry it
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
- 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