# Docs MCP server

Search and read the Pinter documentation from Claude, Cursor, or any MCP client.

The documentation site exposes a read-only [Model Context Protocol](https://modelcontextprotocol.io) server so AI tools can search and read these docs directly.

```text
https://<docs-host>/mcp
```

The server uses the Streamable HTTP transport in stateless mode (JSON responses, no session). No authentication is required because the docs are read-only.

## Connect a client

  
### Claude Code

```bash
claude mcp add --transport http pinter-docs https://<docs-host>/mcp
```
  
  
### Cursor

```json
{
  "mcpServers": {
    "pinter-docs": { "url": "https://<docs-host>/mcp" }
  }
}
```
  

## Tools

| Tool | Arguments | Description |
| --- | --- | --- |
| `search_docs` | `query`, `limit?`, `type?`, `lang?` | Full-text search across guides and API endpoints. `type` is `page` or `endpoint`. |
| `get_page` | `path`, `lang?` | Returns a page as Markdown, for example `concepts/chat`. |
| `list_pages` | `section?`, `lang?` | Lists pages grouped by section. |
| `get_endpoint` | `method?`, `path?`, `operation_id?`, `query?`, `lang?` | Returns parameters, request body, responses, and a curl example for a backend endpoint. |

`lang` is `en` (default) or `id` for the Indonesian docs. Pages without a translation fall back to English.

## Source citations

The server instructs the client's AI agent to cite its sources:

- The server `instructions`, every tool description, and a built-in `answer_with_docs_citations` prompt state a mandatory citation policy: answer only from returned content and end with a "Sources" section of Markdown links.
- Every `search_docs`, `get_page`, and `get_endpoint` result ends with a `SOURCES` block of exact page URLs to cite, includes `resource_link` items, and returns the same list in `structuredContent.sources`.
- When nothing matches, the tool tells the agent to say the docs do not cover the question instead of answering from memory.

A server cannot technically force a model to comply, but these signals are repeated in every response so compliant clients and models include the links.

## Other machine-readable formats

- `/llms.txt`: index of every page and endpoint.
- `/llms-full.txt`: the full text of all guides.
- Append `.md` to any page URL, for example `/concepts/chat.md`, to get its Markdown source.
- The **Copy page** button on each page copies the same Markdown.
