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

# Connect your agent

> Connect Claude, ChatGPT, Cursor or any MCP client to Neo, and do your Neo work from your own AI agent.

Neo runs an MCP server, so the AI agent you already use can read and change your Neo workspace: list agents, debug a run, update an agent's instructions, check integrations. It uses the [Neo public API](https://docs.neoagent.io/developers/introduction.md) under the hood, with the same permissions, limits and error codes.

```
https://api.neoagent.io/mcp
```

## Connect with an API key

**1. Create a key**

A workspace admin creates a key on [**Roles & Access** → **API Keys**](https://dashboard.neoagent.io/rbac?tab=api-keys). Name it for the agent that will use it, for example *Claude Code - Sam*. See [Authentication](https://docs.neoagent.io/developers/authentication.md) for how keys work.

**2. Add the server to your client**

In Claude Code, run:

```bash theme={null}
claude mcp add --transport http neo https://api.neoagent.io/mcp \
  --header "Authorization: Bearer neo_sk_prod_AbCdEf0123456789AbCdEf01"
```

Any other client that speaks MCP over HTTP takes the same two things, the URL and the header. Most read a JSON config like this:

```json theme={null}
{
  "mcpServers": {
    "neo": {
      "type": "http",
      "url": "https://api.neoagent.io/mcp",
      "headers": { "Authorization": "Bearer neo_sk_prod_AbCdEf0123456789AbCdEf01" }
    }
  }
}
```

**3. Ask it something**

Start a new session and ask, for example, *"Which of my Neo agents failed today, and why?"*. The agent calls `whoami` first, then finds the routes it needs.

> [!WARNING]
>
> An API key acts for the whole workspace. Anyone with the key can do what the key allows, so keep it in your client's config and out of chats, tickets and repositories.

To let your agent do less, [limit the key with scopes](https://docs.neoagent.io/developers/authentication.md#limit-a-key-with-scopes). A **Read only** key gets no `neo_api_write` tool, and a call outside the key's scopes returns an error that names the scope it needs.

## The tools

The server has four tools. The list stays fixed; the agent finds what it needs in the API itself.

| Tool | What it does |
| - | - |
| `whoami` | Your workspace, its PSA, the credential and what it may do. |
| `search_api` | Finds API routes by words, and shows one route's parameters and schemas. |
| `neo_api_read` | Reads from the API (`GET`). Marked read-only, so a client can allow it without asking you. |
| `neo_api_write` | Changes your workspace (`POST`, `PUT`, `PATCH`, `DELETE`). Marked destructive, so your client asks you before each call unless you tell it not to. |

A write runs as soon as your client sends it: Neo adds no approval step of its own. Your client is where you approve a call, which is why reads and writes are separate tools. Neo keeps what you need to undo most changes: every agent's [version history](https://docs.neoagent.io/building-automations/managing-workflows/version-history.md), and the earlier versions of [memories](https://docs.neoagent.io/core/memory.md#earlier-versions) and [skills](https://docs.neoagent.io/agents/skills/creating-skills.md#going-back-to-an-earlier-version). A few changes cannot be undone, such as an end-user notification that was already sent.

A result that changes an agent or a run links to its page in the dashboard, in case you want to look. You never need it to finish the work.

## What the server does not do

* **Create or rotate API keys.** The new key's secret would pass through the conversation and your client's logs. An admin does this on the [API Keys](https://dashboard.neoagent.io/rbac?tab=api-keys) tab. Listing and revoking keys work through the server.
* **Decide a technician approval request with an API key.** A decision is a person's act, and a key names no person. The technicians the request was sent to decide it on its card or on the [Approvals page](https://docs.neoagent.io/core/technician-in-the-loop.md). Reading requests and dismissing one work through the server.
* **Mint session tokens.** A backend that embeds Neo chat does this with its API key over HTTP.
* **Hold a live event stream open.** For a chat session, the agent reads the reply from the session's messages instead.

## Limits

* Each tool call uses **two** requests of your workspace's [rate limit](https://docs.neoagent.io/developers/rate-limits.md): one for the MCP request and one for the API request it makes.
* One tool result holds up to 60,000 characters. A larger answer comes back as an error that says how to ask for less: a smaller `page_size`, the next `cursor`, a narrower filter, or one object by id.
* A skill test run is read to its end and returns its outcome, for up to 180 seconds. A run still going then is stopped.
* The server keeps no session. Clients of MCP version 2026-07-28 and of the 2025 versions (2025-03-26, 2025-06-18, 2025-11-25) all work.


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