Skip to main content
Glama
API Documentation MCP Server

API Documentation MCP Server

by JaxNext
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:
```bash
pnpm install
```

## Config in Cursor

```json
{
  "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 

TDQS

C2.5/5.0

Scored across 1 tool

Disambiguation4/5

With only one tool there is no risk of selecting the wrong one, so intra-set ambiguity is effectively zero. However, the description 'Fetch API doc data from management platform' is vague about what data is returned and what parameters are needed, leaving the agent unsure what the tool actually does.

Naming Consistency3/5

The single name 'api_doc' is readable snake_case, but it is a bare noun rather than a verb_noun action pattern like fetch_api_doc or get_api_doc. With only one tool there is no convention to be consistent with, so consistency is unassessable and only readability can be credited.

Tool Count2/5

A single tool is too thin for a server billed as an API documentation surface. One catch-all 'fetch' operation forces the agent to guess at parameters instead of picking a purpose-built tool, which is the classic under-scoped case.

Completeness2/5

There is no way to discover what documentation exists (no list/search), no scope by API, version, or endpoint, and no separation of spec retrieval from metadata lookup. A lone fetch tool leaves significant gaps that will likely cause agent failures on most realistic documentation tasks.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues