> ## Documentation Index
> Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge Base MCP Server

> Public MCP server that gives an agent grounded access to the Narrative documentation

The Narrative Knowledge Base MCP server lets an AI agent search the Narrative documentation, guides, API reference, and NQL syntax — and answer questions with citations to the source material. It is a public, read-only server with no authentication, so you can add it to any MCP client alongside the [Data Collaboration MCP server](/reference/integrations/mcp-server).

For background on the Model Context Protocol, see [Data Collaboration MCP Server overview](/concepts/mcp/overview).

## Server URL

```
https://docs.narrative.io/mcp
```

| Property       | Value                |
| -------------- | -------------------- |
| Transport      | Streamable HTTP      |
| Hosting        | Managed by Narrative |
| Authentication | None                 |
| Pricing        | Free                 |

## When to use it

Pair this server with the [Data Collaboration MCP server](/reference/integrations/mcp-server) so your agent can both **act** on your data and **explain** how the platform works. Common patterns:

* The agent hits an unfamiliar NQL function and queries the docs to find correct syntax before retrying.
* A user asks "how do access rules work?" — the agent answers with citations instead of guessing.
* The agent is drafting a workflow and looks up task-specific reference material on the fly.

## Tools

### `search_narrative_knowledge_base`

Full-text search across the Narrative documentation and guides.

| Parameter | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `query`   | string | Yes      | Search term |

Returns matching documentation entries with titles, snippets, and source URLs.

### `query_docs`

Ask a natural-language question and get an answer grounded in the docs.

| Parameter | Type   | Required | Description               |
| --------- | ------ | -------- | ------------------------- |
| `query`   | string | Yes      | Natural-language question |

Returns a synthesized answer with citations back to the docs pages that informed it.

## Setup

Add the server to your MCP client the same way you would the Data Collaboration server — see [Connecting to the Narrative MCP Server](/guides/mcp/connecting-an-ai-assistant) for client-specific instructions. Use the URL above and skip the OAuth step (no authentication is required).

For example, in Claude Code:

```bash theme={null}
claude mcp add --transport http narrative-knowledge-base https://docs.narrative.io/mcp
```

Or in a JSON config:

```json theme={null}
{
  "mcpServers": {
    "narrative-knowledge-base": {
      "type": "http",
      "url": "https://docs.narrative.io/mcp"
    }
  }
}
```

## Related

* [Data Collaboration MCP Server](/reference/integrations/mcp-server) — the OAuth-authenticated server that lets agents act on your data
* [Agent Feedback MCP Server](/reference/integrations/mcp-agent-feedback) — the server agents use to file structured product feedback
* [Connecting to the Narrative MCP Server](/guides/mcp/connecting-an-ai-assistant) — client setup walkthrough
