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

# MCP server

> Connect Claude Code, Cursor and other remote MCP clients to your Eloout organization.

The Eloout MCP server lets AI clients that support the Model Context Protocol work with your
organization's pipelines, opportunities, lists and records through the Eloout API. It runs on
Eloout's servers at this address; there is nothing to install:

```text theme={null}
https://app.eloout.com/api/mcp
```

Your client connects to it over Streamable HTTP and sends your API key in the
`Authorization: Bearer` header, as with the API.

**What it can do depends on the API key you give it.** It covers the API's reads of pipelines,
custom fields, opportunities, lists and records, and its creates and updates of opportunities
and records, but offers only the tools the key's permissions allow. A key with the
[MCP read-only preset](https://docs.eloout.com/authentication.md#mcp-read-only-preset) keeps it read-only; add write
permissions only if you want the assistant to create and update opportunities or records. It
never deletes anything and does not manage webhooks.

> [!WARNING]
>
> Everything the assistant reads through the server, and every write it makes, goes through your
> organization's key. Configure it only in clients and on computers you trust.

## Requirements

* An MCP client that connects to remote servers over HTTP and can send an `Authorization`
  header, such as Claude Code or Cursor. Nothing is installed on your computer: clients that can
  only start local servers, or cannot send a header, are not supported yet.
* The **admin** role in your Eloout organization, to create the key.

## Create a key

In Eloout, open **Settings → API keys** and create a key for the assistant, for example
`Claude MCP`:

* **Read only:** click **Use the MCP read-only preset**. It selects `opportunities:read`,
  `pipelines:read`, `lists:read` and `records:read`.
* **Reads and writes:** start from the preset and add only what the assistant should change:
  `opportunities:write` for opportunities, `records:write` for list records. Add
  `custom-fields:read` if it should look up the opportunity custom fields (`list_custom_fields`)
  to know their ids; writing custom field values is part of `opportunities:write`.

Copy the key: it is shown only once. Use a key for the assistant alone, so you can revoke it
without affecting other systems. See [Authentication](https://docs.eloout.com/authentication.md) for every permission.

## Configure your client

Keep the key in an environment variable, for example `ELOOUT_API_KEY`, and let the client read it
from there, or in the client's own secret settings. Never put the key itself in a command's
arguments, where other programs on the computer can read it, or in a file you commit.

> [tab] Claude Code
>
> Add the server to `.mcp.json` at the root of your project. The file names the variable, not
> the key, so it holds no secret:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "eloout": {
>       "type": "http",
>       "url": "https://app.eloout.com/api/mcp",
>       "headers": { "Authorization": "Bearer ${ELOOUT_API_KEY}" }
>     }
>   }
> }
> ```
>
> Claude Code fills in `${ELOOUT_API_KEY}` from the environment it starts in. Export the key in
> that shell from your secret manager, or paste it at a prompt that does not echo it, then
> start Claude Code:
>
> ```bash theme={null}
> read -rsp 'Eloout API key: ' ELOOUT_API_KEY && export ELOOUT_API_KEY
> claude
> ```
>
> Run `/mcp` in Claude Code to check that `eloout` is connected.

> [tab] Cursor
>
> Add the server to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project).
> Cursor fills in `${env:ELOOUT_API_KEY}` from its environment:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "eloout": {
>       "url": "https://app.eloout.com/api/mcp",
>       "headers": { "Authorization": "Bearer ${env:ELOOUT_API_KEY}" }
>     }
>   }
> }
> ```
>
> Set `ELOOUT_API_KEY` in the environment Cursor starts from.

> [tab] Other clients
>
> Any MCP client with Streamable HTTP and custom headers works: use the URL
> `https://app.eloout.com/api/mcp` and the header `Authorization: Bearer <key>`, taking the key
> from an environment variable or the client's secret settings. The endpoint is stateless and
> answers in JSON: it opens no event stream (`GET` answers 405) and takes one JSON-RPC message
> per request (a batch array answers 400). Browsers may call it only from Eloout's own origin;
> a request without an `Origin` header, as native clients send, is accepted.

## Check the connection

Ask the assistant to call `get_me`. It answers with the key's organization, its permissions and
the tools they enable, without any key material:

```json theme={null}
{
  "organization": { "id": "6f1d2c3b-4a59-4e6f-8a7b-9c0d1e2f3a4b", "name": "Acme" },
  "permissions": ["opportunities:read", "pipelines:read", "lists:read", "records:read"],
  "legacyKey": false,
  "readOnly": true,
  "tools": ["get_me", "list_pipelines", "list_opportunities", "get_opportunity", "list_lists", "get_list", "list_list_records", "get_list_record", "get_list_record_by_external_id"],
  "missingReadGrants": []
}
```

Every request is authenticated with the key it carries, and the server offers only the tools
that key's effective permissions allow: the same ones `GET /api/v1/me` reports. A permission
value Eloout does not recognize grants nothing. A request without a valid key gets `401` and no
tools.

## Tools

| Tool | Permission | What it does |
| - | - | - |
| `get_me` | Any valid key | Organization, permissions and available tools |
| `list_pipelines` | `pipelines:read` | Pipelines and their stages |
| `list_custom_fields` | `custom-fields:read` | Opportunity custom fields |
| `list_opportunities` | `opportunities:read` | One page of opportunities, filtered by pipeline, stage, source, external ID or last change |
| `get_opportunity` | `opportunities:read` | One opportunity by ID |
| `update_opportunity` | `opportunities:write` | Change an opportunity's stage, title, value or custom fields |
| `upsert_opportunity` | `opportunities:write` | Create or update an opportunity by external ID |
| `batch_upsert_opportunities` | `opportunities:write` | Create or update 1–50 opportunities by external ID |
| `list_lists` | `lists:read` | The organization's lists |
| `get_list` | `lists:read` | One list and its fields |
| `list_list_records` | `records:read` | One page of a list's records, filtered by stage or last change |
| `get_list_record` | `records:read` | One record by code or ID |
| `get_list_record_by_external_id` | `records:read` | One record by external ID |
| `set_list_record_stage` | `records:write` | Move a record to another stage |
| `upsert_list_record` | `records:write` | Create or update a record by external ID |

Each tool calls one endpoint of the [API reference](https://docs.eloout.com/api-reference/introduction.md). Read and write
tools return that endpoint's `data` as JSON, sometimes followed by a short note (the
Idempotency-Key of a write, or the end of the rate-limit window). `get_me` returns the summary
shown above instead of the raw answer.

### Pages

The list tools return one page at a time, never the whole dataset. When `nextCursor` is not
`null`, the assistant calls the tool again with it as `cursor` and the same filters. For example,
"list the opportunities changed since November 1" becomes:

```json theme={null}
{ "name": "list_opportunities", "arguments": { "updatedSince": "2026-11-01", "limit": 50 } }
```

### Writes

Every write tool takes a required `dryRun` argument, and its description tells the assistant to:

1. Call it first with `dryRun: true`. Eloout plans the write and answers as if it were done
   (`"dryRun": true`), but nothing is written and no webhook event is sent.
2. Show you the result and apply it with `dryRun: false` only after you confirm.

> [!WARNING]
>
> The preview is an instruction to the assistant, not a check the server makes: a call with
> `dryRun: false` applies the write at once, previewed or not. To approve every write yourself,
> keep your client's per-tool approval on for the write tools.

Applied writes carry an `Idempotency-Key`: the assistant can pass one, otherwise the server
generates it. The key is reported with the result and with every error of an applied write.
Repeating the same write with the same key within 24 hours returns the stored answer and does
not run it again, and a repeat while the first is still running answers `409`: wait and send it
again with the same key.

When the outcome of an applied write is uncertain (a timeout, a lost connection, a 5xx error or
an answer the server could not read), it may or may not have happened. Eloout does not store 5xx
answers, so a retry, even with the same key, can apply it twice. The error names the tool to read
the item back; the assistant checks before trying again. A key with only write permissions
cannot read items back: then check in the Eloout app.

`batch_upsert_opportunities` answers 200 when the request was processed, not when every item
was: each item runs on its own and has its own `ok` and `status` in `results`, so some can fail
while others are applied. A value a person owns in Eloout is never overwritten by the API.

## Limits and safety

* **Same authorization as the API.** Each tool call runs the API operation it names, with your
  key. The MCP server can do nothing the key cannot do through the API.
* **Same rate limits as the API, counted twice for API calls.** Every MCP request counts once
  against the key's and the organization's limits. A tool call that runs an API operation counts
  a second time for that operation; `get_me`, listing tools and calls refused before they reach
  the API (for example, invalid arguments) do not. The `X-RateLimit-*` headers of the answer
  report the MCP request's own count. If the operation is the one refused for the rate limit,
  the answer is not an HTTP 429 but a tool error with `429 RATE_LIMITED` and `Retry-After` in its
  text. See [Errors](https://docs.eloout.com/errors.md).
* **Bounded requests and answers.** A request body is limited to the API's size and must arrive
  within 10 seconds (`408` otherwise). One key may have up to 4 MCP requests in progress at once,
  and the service up to 8 for all keys together (`429` beyond either); a request counts until the
  API work it started has stopped, even if its answer was already sent. A tool result, and the whole answer, may be at most 2 MiB: a larger one is
  refused with an error asking for less (a smaller `limit`, narrower filters or fewer items).
* **Bounded work.** A tool call waits up to 30 seconds for its answer. Its API operation has a
  25-second budget that covers all of its database work, including checking the key and reading
  the organization, and Postgres itself enforces the end of that work:

  * waiting for a database connection counts against the budget: an operation still without one
    27 seconds after it started fails at that moment, and does no work if a connection frees up
    later; at most 4 database connections per server do MCP operation work at the same time;
  * no new write starts after 25 seconds, and a batch starts no more items (each is reported as
    `DEADLINE_EXCEEDED`, not applied);
  * Postgres cancels a database statement of the operation, reads included, once it runs past the
    time left when its transaction actually started (a statement run on its own: 27 seconds after the
    operation started at the latest), and its transaction does not commit;
  * Postgres ends any transaction of the operation still open 28 seconds after the operation
    started at the latest, whether idle or running many short statements.

  Writes that finished before stay applied: a timeout never undoes them, so check what was
  applied before retrying. The server does not retry failed requests.
* **The key stays out of answers and logs.** Every tool result and every answer, including
  protocol errors, passes through a filter that removes the key, and anything shaped like an
  Eloout key; so do the server's error logs. Eloout records only when the key was last used, as
  for the API.

## Troubleshooting

| Symptom | Cause and fix |
| - | - |
| The client cannot connect (`401 UNAUTHENTICATED`) | The key is missing, mistyped or revoked, or the variable is empty where the client starts. Fix the key in the client's configuration or environment and reconnect. |
| `403 FORBIDDEN` | The key lacks the permission named in the error. Create a key with it, update the configuration and reconnect. |
| `429 RATE_LIMITED` | Too many requests. The error says how many seconds to wait; the server does not retry by itself. See [Errors](https://docs.eloout.com/errors.md). |
| A tool is missing | The key does not have its permission. Call `get_me` to see the permissions and tools. |

## Rotate or revoke the key

To rotate, create a new key with the same permissions, update the client's configuration or
environment, reconnect the client, then revoke the old key in **Settings → API keys**. If the key may have
leaked, revoke it first: every client using it stops working immediately.


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