# Coherence MCP server

> Allows AI clients to interact with your Coherence CRM agent to manage records, outreach items, and automate tasks like drafting emails or creating reminders.

- Repository: https://github.com/getcoherence/mcp-server
- Page: https://hostedmcp.org/servers/getcoherence/mcp-server
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.2.3

## Install

### Claude Code

```sh
claude mcp add --env 'COHERENCE_API_TOKEN=<YOUR_COHERENCE_API_TOKEN>' mcp-server -- npx -y @coherenceos/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@coherenceos/mcp-server"
      ],
      "env": {
        "COHERENCE_API_TOKEN": "<YOUR_COHERENCE_API_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@coherenceos/mcp-server"
      ],
      "env": {
        "COHERENCE_API_TOKEN": "<YOUR_COHERENCE_API_TOKEN>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@coherenceos/mcp-server"],"env":{"COHERENCE_API_TOKEN":"<YOUR_COHERENCE_API_TOKEN>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@coherenceos/mcp-server"
      ],
      "env": {
        "COHERENCE_API_TOKEN": "<YOUR_COHERENCE_API_TOKEN>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server --env 'COHERENCE_API_TOKEN=<YOUR_COHERENCE_API_TOKEN>' -- npx -y @coherenceos/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@coherenceos/mcp-server"]

[mcp_servers.mcp-server.env]
COHERENCE_API_TOKEN = "<YOUR_COHERENCE_API_TOKEN>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'COHERENCE_API_TOKEN=<YOUR_COHERENCE_API_TOKEN>' mcp-server npx -- -y @coherenceos/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@coherenceos/mcp-server"
      ],
      "env": {
        "COHERENCE_API_TOKEN": "<YOUR_COHERENCE_API_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `COHERENCE_API_TOKEN` | yes | yes | API key from your Coherence workspace (Settings → API Keys). Starts with sk_live_. |
| `COHERENCE_API_URL` | no | no | API base URL. Defaults to https://api.getcoherence.io/v1. |

## Tools (13)

- `chat_with_agent`
- `list_modules`
- `list_module_fields`
- `list_records`
- `get_record`
- `create_record`
- `update_record`
- `delete_record`
- `list_outreach_items`
- `get_outreach_item`
- `create_outreach_item`
- `update_outreach_body`
- `update_outreach_item`

## FAQ

### How do I use the Coherence agent for tasks like sending emails or posting to social?

You can use the chat_with_agent tool to send messages to your Coherence agent, which can then handle emails, social posts, and more.

### Can an API key bypass approval gates for sending emails or social posts?

No, approval gates are enforced within the Coherence platform and cannot be bypassed by an API key.
