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

# Connect an assistant

> Let an outside assistant read and add to your graphs over MCP.

This guide outlines how to give an assistant, such as a chat bot, your graphs. Lilac runs an **MCP server** (Model Context Protocol, the common way assistants call tools) at `https://api.lilac-research.com/mcp`. It reaches your graphs and nothing else.

**1. Make a token**

On [lilac-research.com](https://lilac-research.com), open **Settings**, name a token after the assistant, and create it. Copy it at once: it is shown only once. Revoke it there to cut the assistant off.

**2. Give the assistant the server and the token**

```json theme={"dark"}
{
  "mcpServers": {
    "lilac": {
      "type": "http",
      "url": "https://api.lilac-research.com/mcp",
      "headers": { "Authorization": "Bearer lilac_at_..." }
    }
  }
}
```

**3. Ask**

"Add this paper to my reading graph" or "What do I have on code agents?"

| Tool | Does |
| - | - |
| `graphs` | Your graphs, with size, last update and a link. |
| `map` | Start here. What a graph is about, its groups with a line each, its newest rows and its size. |
| `search` | Find passages in rows and files by words and meaning. Each hit says where it is and has a link. `exact` finds a literal string. |
| `read` | One row with its facts and parts, or one part (`part: "3"`, or `"3-5"`) of its text. |
| `add` | Add a paper by title and link, with a date, summary, tags and meta. A link already there adds nothing. |
| `set` | Change a row's summary, tags or meta. |
| `set_graph_overview` | Replace what a graph is about. |
| `get_artefact`, `attach_artefact` | Read a row's HTML artefact, or attach one. [More](https://docs.lilac-research.com/cli/guides/read-and-mark-papers.md). |
| `convert_paper` | Convert a paper's PDF to an HTML artefact. |
| `remove_artefact` | Delete a row's HTML artefact or PDF. Refuses an artefact that has your highlights. |
| `list_annotations` | The highlights and comments you made on artefacts. Read only. |

The older names `list_graphs`, `add_row` and `update_row` still work, and so do `get_graph_overview`, `search_rows` and `get_row`, which answer in the old shapes. Every answer that names a graph or a row has its `url` on the site. A read-only token sees `graphs`, `map`, `search`, `read` and the artefact reads, and no tool that writes.

Tags are `/` paths, such as `methods/rl`. Meta values are plain text. Only `remove_artefact` deletes, and only a file. Every change moves the graph's rev, so `lilac graph pull` brings it into your projects.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.