- Home
- MCP servers
- Api Doc
Api Doc
- javascript
0
GitHub Stars
javascript
Language
2 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You have an MCP server that fetches API documentation data from a local API documentation platform, enabling you to drive documentation-enabled workflows through simple prompts. It exposes a single tool to retrieve endpoint details by document ID, helping you compose API pages and verify endpoint behavior quickly within your workflows.
How to use
You will interact with the ApiDoc MCP server through an MCP client. The server provides a single tool named api_doc that fetches API documentation data for a specific endpoint by its document ID. In practice, you issue prompts that reference the desired endpoint’s docId, and the system automatically uses the tool to retrieve the corresponding documentation data. For example, prompt your client with a request like: Add a new form page for creating new user, the API docId is "create-user". The value inside the quotes is the docId and is what the tool uses to fetch the endpoint's documentation.
After the tool fetches the data, you can incorporate the retrieved API documentation into your forms, pages, or content flows. Use the returned documentation as a basis for generating user-facing content, validation rules, or inline API references within your application.
How to install
Prerequisites you need before installing and running the server are straightforward.
• Node.js 18+ with ES modules support • An API documentation platform running locally at http://localhost:3000 • pnpm package manager
Installation steps you should follow in order:
pnpm install
# After installation, you may configure the MCP as shown in the cursor configuration snippet.
Additional content
Configuration for the MCP server is provided via a Cursor-style JSON block. You explicitly label the MCP server entry, specify the runtime command, and the path to the server script. The following example demonstrates how to add a single MCP server named ApiDoc in your configuration.
{
"mcpServers": {
// other servers...
"ApiDoc": {
"command": "node",
"args": [
"/path/to/api-doc-mcp-server/api-doc.js"
],
},
}
}
Available tools
api_doc
Fetch API documentation data for a specific endpoint by document ID.