Skip to main content
Glama
Public API Docs MCP

Public API Docs MCP

by KidiXDev

Public API Docs MCP

A read-only MCP server for API documentation published with Hoppscotch or Postman. Search requests, inspect endpoint details, and read saved response examples. It uses each provider's public documentation endpoint; no account or token is required.

Installation

For Agents

Copy one of these prompts and paste it into your MCP-capable AI agent.

Using uv

Install the Public API Docs MCP server for this AI client from https://github.com/KidiXDev/public-api-docs-mcp.

Follow the repository README and install it using uv. Install uv first if needed.

Configure this client to run:
public-api-docs-mcp

Do not set a default document URL. I will give you a published URL for each project; pass it as doc_url on every tool call.

Verify that the server exposes get_document, search_documentation, list_endpoints, and get_endpoint.

Tell me what you configured and whether I need to restart the client.

Using Docker

Install the Public API Docs MCP server for this AI client from https://github.com/KidiXDev/public-api-docs-mcp.

Use the prebuilt Docker image:
ghcr.io/kidixdev/public-api-docs-mcp:latest

Configure this client to run the MCP server over stdio using:
docker run --rm -i ghcr.io/kidixdev/public-api-docs-mcp:latest

Do not set a default document URL. I will give you a published URL for each project; pass it as doc_url on every tool call.

Verify that the server exposes get_document, search_documentation, list_endpoints, and get_endpoint.

Tell me what you configured and whether I need to restart the client.

For Humans

Using uv

Requires Python 3.10+ and uv.

Install directly from GitHub:

uv tool install git+https://github.com/KidiXDev/public-api-docs-mcp.git

Or install from a checkout:

uv tool install .

Then configure your MCP client.

To check a published document:

public-api-docs-mcp --check https://api-docs.hoppscotch.io/view/YOUR_DOC_ID

If the command is not found after installation, run uv tool update-shell, reopen your terminal, or use the executable's absolute path in your MCP client.

Using Docker

Pull the prebuilt image:

docker pull ghcr.io/kidixdev/public-api-docs-mcp:latest

Check a published document:

docker run --rm \
  ghcr.io/kidixdev/public-api-docs-mcp:latest \
  --check https://api-docs.hoppscotch.io/view/YOUR_DOC_ID

For an MCP client's stdio configuration, use:

docker run --rm -i ghcr.io/kidixdev/public-api-docs-mcp:latest

Keep -i and do not detach the container.

Related MCP server: OpenAPI Search MCP Server

Choose a document per call

Start the server without a document URL. Pass the project's published link as doc_url on each tool call:

Provider

Link

Hoppscotch

https://api-docs.hoppscotch.io/view/<slug>[/<version>]

Postman

https://documenter.getpostman.com/view/<owner>/<id>, optionally with ?version=<tag> or a #<request-id> deep link

For example:

search_documentation(
  query="tenant",
  doc_url="https://api-docs.hoppscotch.io/view/YOUR_DOC_ID"
)

Include the relevant URL in your request to the agent so it can pass the right URL for each project.

Without a document URL, a tool call returns an error. Postman custom domains, private workspaces, and postman.com workspace links are not supported.

For compatible self-hosted Hoppscotch deployments, these optional settings change where the server reads published docs:

Variable

Purpose

Default

HOPPSCOTCH_DOCS_ORIGIN

Allowed public viewer origin

https://api-docs.hoppscotch.io

HOPPSCOTCH_API_BASE_URL

Backend base URL for compatible self-hosted deployments

https://api.hoppscotch.io/v1

For a self-hosted deployment using the same /v1/published-docs route, set both values to that deployment's viewer origin and backend /v1 URL.

Per-call Hoppscotch doc_url values must match the configured viewer origin. Postman links are unaffected.

MCP tools

Tool

What it returns

search_documentation(query, doc_url="", offset=0, limit=10)

Ranked, short endpoint summaries for an API concept; up to 50 per page

get_endpoint(request_id, doc_url="", response_name="", full_bodies=False)

One endpoint's request details, its saved responses, and one example response

get_document(doc_url="")

Title, versions, description, folder paths with endpoint counts, variable names, and endpoint count

list_endpoints(folder="", method="", query="", doc_url="", offset=0, limit=50)

Endpoints in document order, filtered by folder, method, or exact text; up to 100 per page

The server sends this workflow to the agent as MCP instructions:

  1. Search one concept at a time (product, then tenant) with search_documentation. Search uses keyword ranking, not semantic understanding. To cover a whole API, use get_document, then list_endpoints by folder.

  2. Call get_endpoint for the routes the task needs. It includes the first 2xx example response.

  3. Call it again with a response_name for other cases, such as errors.

Search and list results include total and next_offset for paging. get_endpoint shortens strings over 300 characters and arrays over three items in bodies, keeps the JSON structure, and reports body_truncated and response.truncated. Pass full_bodies=true for the uncut content. Fetched documents are cached for up to a minute.

The server omits saved auth and variable values and redacts credential-like header and parameter values. Descriptions and request and response bodies are otherwise returned as published, so review the source document before sharing its contents.

Manual MCP client setup

These configurations start a stdio server without selecting a project.

Give your agent the published URL for the project you are working on; it passes that URL as doc_url when calling tools.

The server normally prints nothing in a terminal because it exchanges protocol messages over stdin/stdout.

The examples below use the uv installation.

If you use Docker, replace the executable with:

{
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "ghcr.io/kidixdev/public-api-docs-mcp:latest"
  ]
}

Codex

Add this to ~/.codex/config.toml or a project .codex/config.toml:

[mcp_servers.api_docs]
command = "public-api-docs-mcp"

Run:

codex mcp list

See the Codex MCP guide.

Claude Code

claude mcp add --scope user --transport stdio api-docs -- public-api-docs-mcp
claude mcp get api-docs

See the Claude Code MCP guide.

For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows, then fully restart the app:

{
  "mcpServers": {
    "api-docs": {
      "command": "public-api-docs-mcp"
    }
  }
}

Use the command's absolute path if Claude Desktop cannot find it.

See the MCP Python SDK host guide.

Google Antigravity

In the IDE, open:

MCP Servers → Manage MCP Servers → View raw config

In Antigravity CLI, edit ~/.gemini/config/mcp_config.json or .agents/mcp_config.json in a workspace:

{
  "mcpServers": {
    "api-docs": {
      "command": "public-api-docs-mcp"
    }
  }
}

See the Antigravity MCP guide.

GitHub Copilot

For Copilot in VS Code, create .vscode/mcp.json in your project or use MCP: Open User Configuration:

{
  "servers": {
    "api-docs": {
      "type": "stdio",
      "command": "public-api-docs-mcp"
    }
  }
}

Use Copilot Chat Agent mode and enable the server in its tools picker.

For Copilot CLI:

copilot mcp add api-docs -- public-api-docs-mcp
copilot mcp get api-docs

The CLI also accepts a portable ~/.copilot/mcp-config.json with a top-level mcpServers object. VS Code's .vscode/mcp.json uses servers.

See VS Code's MCP configuration reference and the Copilot CLI MCP guide.

HTTP transport

To run an HTTP server locally with Docker:

docker run --rm \
  -p 127.0.0.1:8000:8000 \
  ghcr.io/kidixdev/public-api-docs-mcp:latest \
  --http \
  --host 0.0.0.0

Connect a Streamable HTTP MCP client to:

http://127.0.0.1:8000/mcp

Pass doc_url to each tool call.

For a local Python process:

public-api-docs-mcp --http

Develop

uv run python -m unittest -v
uv run public-api-docs-mcp --check https://api-docs.hoppscotch.io/view/YOUR_DOC_ID

Build the Docker image locally:

docker build -t public-api-docs-mcp .

License

This project is licensed under MIT.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to load, parse, and query OpenAPI/Swagger documentation from URLs with intelligent search across endpoints, schemas, and authentication methods. Provides 10 specialized tools for comprehensive API exploration including path details, operation lookups, and multi-criteria search capabilities.
      4
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI tools to search and explore API documentation from Apidog projects or OpenAPI/Swagger specifications, providing endpoint details, schemas, and project statistics through natural language queries.
      1
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      Exposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.
      14
      27 npm
      2
      MIT