# Connect an agent (MCP)

Canonical: https://saturncrm.com/docs/mcp

Give any AI agent scoped access to your CRM through the built-in Model Context Protocol server.

## Overview

SaturnCRM includes a Model Context Protocol (MCP) server. Any MCP client connects over Streamable HTTP with an API key, and agents follow the same permissions as people.

Agents can work on their own. Proposed tasks and deal changes follow the workspace policy for each type of update, so with Auto-apply on Growth and Scale they take effect immediately. See [Pipeline checks](https://saturncrm.com/docs/pipeline-checks#policies).

## Create an API key

1. An admin opens Settings → API & MCP and creates a key.
2. Choose its scopes: read, propose or write. Starter workspaces can create read keys. Growth and Scale can use all three.
3. Copy the key. It’s shown once and stored only as a hash.

## Connect your client

Add the server URL shown in Settings → API & MCP to your MCP client, with the key as a bearer token in the `Authorization` header. Most clients accept a configuration like this:

```
{
  "mcpServers": {
    "saturncrm": {
      "type": "http",
      "url": "<server URL>",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}
```

Clients with a command line take the same two values, for example `claude mcp add --transport http saturncrm <server URL> --header "Authorization: Bearer <key>"`.

## Compatible clients

Any client that supports remote MCP servers over Streamable HTTP with an `Authorization` header can connect today: coding agents, desktop assistants, agent frameworks and model APIs that accept a remote MCP server as a tool.

Hosted assistants that add servers as connectors from their own cloud usually sign you in with OAuth instead of taking an API key. OAuth sign-in for those connectors is on the roadmap. Until then, connect through a client or framework that sends the key.

Hosted clients reach the server from the internet, so it must be served over public HTTPS. Private deployments work with clients on your own network.

## OpenAI Responses API

Create a key using the steps above. In your Responses API request, add an MCP tool with `type: "mcp"`, `server_label: "saturncrm"`, your public HTTPS server URL as `server_url`, and your SaturnCRM key as `authorization`. The API sends the key as a bearer token. See the [OpenAI MCP setup guide](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).

This connection uses the OpenAI API. Signing in through a ChatGPT connector requires OAuth support, which is on the roadmap.

## Anthropic: Claude Code

Create a key using the steps above, then add SaturnCRM to Claude Code with your server URL and bearer key:

```
claude mcp add --transport http saturncrm <server URL> --header "Authorization: Bearer <key>"
```

Run `/mcp` in Claude Code to check the connection. See the [Claude Code MCP setup guide](https://code.claude.com/docs/en/mcp).

## Grok through the xAI API

Create a key using the steps above. In an xAI Responses API request, add an MCP tool with `type: "mcp"`, `server_label: "saturncrm"`, your public HTTPS server URL as `server_url`, and your SaturnCRM key as `authorization`. See the [xAI remote MCP setup guide](https://docs.x.ai/developers/tools/remote-mcp).

This connection uses the xAI API. Hosted Grok connectors that require OAuth are on the roadmap.

## Cursor

Create a key using the steps above. Add this server entry to your Cursor MCP configuration, replacing the placeholders with your SaturnCRM server URL and key:

```
{
  "mcpServers": {
    "saturncrm": {
      "url": "<server URL>",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}
```

See the [Cursor MCP setup guide](https://cursor.com/docs/mcp) for configuration locations and connection settings.

## Gemini CLI

Create a key using the steps above, then add SaturnCRM to Gemini CLI with your server URL and bearer key:

```
gemini mcp add --transport http --header "Authorization: Bearer <key>" saturncrm <server URL>
```

Run `gemini mcp list` to check the connection. See the [Gemini CLI MCP setup guide](https://geminicli.com/docs/tools/mcp-server/).

## n8n workflows

Create a key using the steps above. In an n8n MCP Client node, choose Streamable HTTP, use your SaturnCRM server URL and configure the `Authorization` header as `Bearer <key>`. You can also connect from the MCP Client Tool node to give an n8n AI agent access to CRM tools. See the [n8n MCP Client guide](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.mcpclient).

This uses n8n’s generic MCP connection. A dedicated SaturnCRM node and native event triggers are on the roadmap.

## Available tools

| Tool | Scope | What it does |
| --- | --- | --- |
| `search_crm` | read | Search companies, contacts, deals and tasks by name, email or domain. |
| `get_record` | read | Get a summary of a company, contact or deal. |
| `list_deals` | read | List deals with filters, including their health factors. |
| `pipeline_summary` | read | Get default pipeline totals, win rate and your follow-ups. |
| `list_tasks` | read | List tasks. |
| `propose_task` | propose | Suggest a task. It follows the workspace policy for new tasks. |
| `propose_deal_update` | propose | Suggest a deal change. It follows the workspace policy for deal updates. |
| `log_activity` | write | Log a call, email, meeting or note. With propose scope, it suggests the activity instead. |
| `create_contact` | write | Create a contact. With propose scope, it suggests the contact instead. |

## Permissions and audit

- A key can’t do more than the person who created it. Keys created by viewers are read-only.
- Keys stop working when their creator is disabled.
- Every agent action is recorded in the audit log under the key’s name.
- Revoke a key at any time in Settings → API & MCP.
- MCP calls don’t use AI runs. Your agent runs on its own model.
