# Connect an AI assistant to Amiril

Add Amiril's MCP server to Claude Code, the Claude app, Cursor, VS Code or ChatGPT. Sign in with your Amiril account, then ask about your agents.

Your AI assistant connects to Amiril's MCP server over HTTP and signs in as you. It can then answer questions about your agents from the runs and traces in your workspace.

## Pick a server URL [#pick-a-server-url]

The server has two URLs. Use the first unless the assistant should only read.

| Server URL | What the assistant can do |
| --- | --- |
| `https://api.amiril.ai/mcp` | Every tool, including the ones that save rules and upload trace files |
| `https://api.amiril.ai/mcp/readonly` | Read only. It offers no tool that changes anything |

The app shows both under **MCP server**, at the foot of the sidebar.

## Add it to your assistant [#add-it-to-your-assistant]

The steps below use the first URL. For read-only access, paste `https://api.amiril.ai/mcp/readonly` in its place.

<Tabs items={["Claude Code","Claude","Cursor","VS Code","ChatGPT"]}>
<Tab value="Claude Code">
Run this in a terminal:

```bash
claude mcp add --transport http amiril https://api.amiril.ai/mcp
```

Then type `/mcp` in Claude Code and choose Amiril to sign in.
</Tab>

<Tab value="Claude">
1. In Claude, go to **Customize** and then **Connectors**.
2. Choose **Add** and then **Add custom connector**. Name it Amiril and paste the server URL.
3. Select **Add**, then **Connect**.

On a Claude Team or Enterprise plan, an owner of your Claude organization adds the connector under **Organization settings** and **Connectors**. Each member then chooses **Connect**.
</Tab>

<Tab value="Cursor">
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=amiril&config=eyJ1cmwiOiJodHRwczovL2FwaS5hbWlyaWwuYWkvbWNwIn0%3D) installs the first URL in one step. For read-only access, add this to `~/.cursor/mcp.json` with the read-only URL in its place:

```json title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "amiril": {
      "url": "https://api.amiril.ai/mcp"
    }
  }
}
```
</Tab>

<Tab value="VS Code">
Run this in a terminal:

```bash
code --add-mcp '{"name":"amiril","type":"http","url":"https://api.amiril.ai/mcp"}'
```
</Tab>

<Tab value="ChatGPT">
1. Go to chatgpt.com/plugins, choose the plus button and then **Add custom MCP server**.
2. Name it Amiril, paste the server URL and choose **OAuth** for authentication.
3. Choose **Create as a plugin**, then install it.
</Tab>
</Tabs>

## Sign in [#sign-in]

Claude Code opens the Amiril sign-in page when you choose Amiril under `/mcp`. Other assistants open it the first time they connect, or show a button that does. Sign in with your Amiril account. If you belong to more than one workspace, pick the one the assistant should work in. To switch later, remove the server from your assistant and add it again.

## Try it [#try-it]

Ask your assistant about your own agents. If your workspace has no runs yet, [send your first trace](/quickstart/traces) first.

```text
Which runs of my agents stood out most this week, and why?
```

The assistant finds the runs with the highest rarity, which is how unusual a run is for its agent. For each run, it reads what made the run unusual and then the steps of its trace.

## Upload trace files [#upload-trace-files]

Ask the assistant to import a [Langfuse export](/traces/langfuse-export). It gets an upload URL from Amiril and sends the file there with curl, so the file never passes through the conversation.

The assistant needs a shell to run curl. Claude Code, Cursor and VS Code use your terminal. In Claude on the web or the desktop app, first allow `storage.googleapis.com` in **Settings** under **Capabilities**. ChatGPT has no shell for this, so upload the file on the **Data** page instead.

## Check what the assistant can change [#check-what-the-assistant-can-change]

The assistant acts as you, with your role. A member can read, review runs and build dashboards. Saving a rule, uploading a trace file and most other changes need the admin role, and [Members and roles](/workspace/members) lists them all. API keys, members, invitations and workspace settings stay in the web app. No tool reaches them.

For the riskier changes, such as publishing a rule or deleting a dashboard, the tool's description tells the assistant to ask you first. That is an instruction to the assistant, not a check Amiril makes. If the assistant should never change anything, use the read-only URL. [Amiril MCP server tools](/assistants/tools) lists the changes that ask first.

Anyone who uses your agent can type instructions into it, and that text ends up in your traces. Amiril sends trace content to the assistant in a field marked `untrusted`, and its instructions say never to follow instructions found there.

## Next steps

- [Amiril MCP server tools](https://docs.amiril.ai/assistants/tools.md): Every tool on Amiril's MCP server, grouped by what it is for. See which tools change data and which changes the assistant asks you about first.
- [Give your AI assistant Amiril's docs with llms.txt](https://docs.amiril.ai/assistants/docs.md): Every page of Amiril's docs is Markdown, listed in llms.txt. Your AI assistant can fetch or search them, and a note you add to your AGENTS.md tells it where.
- [Amiril MCP server for AI assistants](https://docs.amiril.ai/assistants.md): Connect Claude Code, Cursor or another AI assistant to Amiril's MCP server. The assistant can then read your traces, draft rules and search these docs.
- [Get help with Amiril](https://docs.amiril.ai/help.md): Ask a question in the Amiril Discord server, or email support when it is private. See what to include so the first answer is a useful one.

## More detail

- [MCP server tools](https://docs.amiril.ai/assistant/mcp/tools.md): Every tool on Amiril's MCP server: what it does, whether it changes data, and its inputs. Generated from the server's tool registry.
- [Permissions and roles](https://docs.amiril.ai/assistant/permissions.md): Every permission a change in Amiril can require, and which of the built-in roles, admin and member, has it.
- [Limits and defaults](https://docs.amiril.ai/assistant/limits.md): Every limit and default a customer can hit in Amiril, with its number: plan amounts, ingest sizes and rates, imports, rules, backtests, API and MCP rates, page sizes, retention, name lengths.
- [Troubleshooting](https://docs.amiril.ai/assistant/troubleshooting.md): Symptom, cause, how to confirm and fix for common Amiril problems: missing runs, plan limits, wrong agent or environment, rules that never fire or never block, SDK, key, import and MCP failures.
