> For the complete documentation index, see [llms.txt](https://docs.kpk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kpk.io/mcp.md).

# Use KPK docs with MCP

KPK documentation is available through GitBook’s built-in MCP server, so compatible AI tools can search the latest published docs directly.

{% hint style="info" %}
Use MCP when you want an AI assistant to answer questions using KPK docs instead of manual site search.
{% endhint %}

### Endpoint

Primary endpoint: `https://docs.kpk.io/~gitbook/mcp`

If you want narrower results, you can also use the section-specific endpoints for Funds or Vaults.

* `https://docs.kpk.io/funds/~gitbook/mcp`
* `https://docs.kpk.io/vaults/~gitbook/mcp`

### VS Code

Add this to `.vscode/mcp.json`:

```json
{
  "servers": {
    "KPK-docs": {
      "type": "http",
      "url": "https://docs.kpk.io/~gitbook/mcp"
    }
  }
}
```

Once added, reload VS Code and use the MCP tools from Chat.

### Example Prompts

* `Find the KPK USDC Yield vault page on Ethereum`
* `Search KPK docs for Roles and Operators`
* `Find policy and address documentation for USD Alpha`
* `Search KPK vault docs for Morpho`

{% hint style="warning" %}
This MCP endpoint is for published documentation only. It is not a live data API for TVL, APY, allocations, or onchain balances.
{% endhint %}

### Best For

* Vault and fund documentation
* Integration guides
* Policy and address pages
* Roles, operators, and infrastructure concepts

### Troubleshooting

* Make sure you are using the exact URL ending in `~gitbook/mcp`
* Make sure your AI tool supports remote HTTP MCP servers
* If you want narrower results, try the `funds` or `vaults` endpoint directly


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kpk.io/mcp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
