---
title: "Connect an AI assistant"
description: Create an API key and connect Claude, Cursor, or another MCP-compatible assistant so it can work with your agents and their data.
---

With MCP (Model Context Protocol), an AI assistant such as Claude or Cursor can work in your organization for you: review your agents, add FAQs, look up job openings, or record evaluations, always within the permissions you give it.

:::note[Not to be confused with MCP connectors]
This connection lets you **create and manage your agents** from an AI assistant. If you want your agents to use tools from other systems during conversations, see [Connect an MCP server to your agents](/en/mcp-connectors/connect-mcp-server).
:::

:::note[Before you start]
You need to be an owner or admin of the organization to create an API key, and an MCP-compatible AI assistant installed on your computer.
:::

## Create the API key

The API key identifies the assistant and defines what it can access. Create one per assistant or per team, with only the permissions it needs.

1. **Open your organization**

    In the side menu, open the **Organization** switcher and choose your organization.

2. **Go to API keys**

    In the organization menu, go to **API keys** and click **Create API key**.

    ![Organization API keys page](/blume-assets/content/docs/screenshots/en/connect-ai-assistant/01-api-keys.png)

3. **Name the integration**

    In **Integration name**, enter a name that helps you recognize it, for example "Claude · HR team".

4. **Choose workspace and role**

    In **Workspace**, choose the workspace the assistant will work in. In **Role**, choose **Editor** if it will change agents or data, or **Tester** if it will only look things up.

    ![Form to create an API key with name, workspace, and role](/blume-assets/content/docs/screenshots/en/connect-ai-assistant/02-create-api-key.png)

5. **Choose the permissions**

    In **Permissions**, check only what the assistant needs. **View agents** is checked by default. Use the table below as a guide.

    ![API key permissions](/blume-assets/content/docs/screenshots/en/connect-ai-assistant/03-permissions.png)

6. **Create the key**

    Click **Create API key**.

7. **Copy the secret**

    In **Save this secret now**, click **Copy** and store it somewhere safe. This is the only time you can see it.

| So the assistant can… | Check |
| --- | --- |
| See your agents and their settings | **View agents** |
| Change the agents' name and settings | **Edit agents** |
| Add FAQs and knowledge | **Manage knowledge** |
| Test published agents with real questions | **Run queries** |
| Publish, pause, or archive agents | **Publish agents** (requires the **Admin** role) |
| Read data tables and captured data | **Read agent data** |
| Add rows to data tables, such as evaluations | **Add data and shorten retention** |

:::warning
Anyone holding the API key can do everything its permissions allow. Don't paste it into chats, emails, or shared documents. If it leaks, revoke it from **API keys** and create a new one.
:::

## Connect the assistant

The TukiAssistant MCP server address is `https://app.tukiassistant.com/api/v1/mcp`. In the examples, replace `tk_live_...` with the secret you copied.

### Claude Code

In a terminal, run:

```bash
claude mcp add --transport http --scope user tukiassistant https://app.tukiassistant.com/api/v1/mcp --header "Authorization: Bearer tk_live_..."
```

With `--scope user` it is available in all your projects. Check the connection with `claude mcp list`: `tukiassistant` should show as connected.

### Cursor

In Cursor's MCP settings (`~/.cursor/mcp.json`), add:

```json
{
  "mcpServers": {
    "tukiassistant": {
      "url": "https://app.tukiassistant.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer tk_live_..." }
    }
  }
}
```

### Claude Desktop

Claude Desktop connects through `mcp-remote` and needs Node.js installed. In `claude_desktop_config.json`, add:

```json
{
  "mcpServers": {
    "tukiassistant": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://app.tukiassistant.com/api/v1/mcp", "--header", "Authorization:${TUKIASSISTANT_AUTH}"],
      "env": { "TUKIASSISTANT_AUTH": "Bearer tk_live_..." }
    }
  }
}
```

Restart Claude Desktop after saving the file.

## Test the connection

Ask the assistant: "Which agents do I have in TukiAssistant?". It should answer with the list of agents in the workspace you chose.

If it says a permission is missing (for example, `Missing required scope: data:write`), the API key doesn't have that permission: create a new one with the missing permission and replace the secret in your assistant.

:::tip
The changes the assistant makes with the API key and its reads of personal data are recorded in the organization's **Audit** log.
:::

## Next steps

**[Install the TukiAssistant skills](/en/ai-assistants/assistant-skills)**

Teach your assistant how to work with your agents and your data safely.

**[Capture customer data](/en/conversations/capture-customer-data)**

Set up the tables where your agents save data during conversations.
