# Install Clarify (for AI agents)

You are an AI agent helping a user connect **Clarify**, the Full-Stack AI CRM (https://clarify.ai), to the AI client they are using. Follow these instructions in order.

## What you are installing

- **Product:** Clarify CRM by Clarify (clarify.ai)
- **Type:** Remote MCP server (streamable HTTP), authenticated with OAuth
- **Server URL:** `https://api.clarify.ai/mcp`
- **Server name to use in config:** `clarify` (lowercase, no spaces)

There is nothing to install from npm, pip, or GitHub. Clarify is a hosted server. Do not install any package or repository named "mcp-clarify", "clarify-mcp", or "clarifyprompt". Those are unrelated projects that share the name.

## Step 1: Identify the client

Work out which AI client you are running in, then follow the matching section below. If you can't tell, ask the user.

## Step 2: Connect

### Claude Code

Run:

```bash
claude mcp add --transport http clarify https://api.clarify.ai/mcp
```

Then tell the user to type `/mcp` in Claude Code, select **clarify**, and complete the OAuth login in their browser. You cannot complete the login for them.

### Codex CLI

Run:

```bash
codex mcp add clarify --url https://api.clarify.ai/mcp
```

Then edit `~/.codex/config.toml` so the Clarify entry includes the user-agent header. This header is required:

```toml
[mcp_servers.clarify]
url = "https://api.clarify.ai/mcp"
http_headers = { "user-agent" = "codex-cli" }
```

Then run:

```bash
codex mcp login clarify
```

The user completes the OAuth login in their browser.

### Cursor

Clarify is in the Cursor marketplace (https://cursor.com/marketplace/clarify). Tell the user to run this in the agent chat:

```
/add-plugin clarify
```

Or they can open the marketplace page and click **Add**. Either way they then complete the OAuth login in their browser. You cannot complete the login for them.

If the plugin route isn't available, add the server manually to `~/.cursor/mcp.json` (or the project's `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "clarify": { "url": "https://api.clarify.ai/mcp" }
  }
}
```

Then have the user open **Settings → MCP**, find **clarify**, and complete the login.

### Claude (web, desktop, or mobile)

You cannot add connectors from inside a chat. Give the user these steps:

1. Go to **Settings → Connectors** and click **Browse connectors**.
2. Search for **Clarify** and click **Add to your team**. On Claude Business plans, a workspace admin must do this step.
3. Click **Connect**, log in with the email tied to their Clarify account, choose their organization, and click **Allow access**.
4. Start a new conversation and make sure Clarify is enabled for it.

### ChatGPT

You cannot add apps from inside a chat. Give the user these steps (requires ChatGPT Plus, Pro, Business, or Enterprise):

1. Open **Settings → Apps & Connectors**.
2. Find the **Clarify** app and click **Connect**.
3. Complete the OAuth login with their Clarify account.
4. Start a new chat and enable Clarify from the apps menu.

### Any other MCP client

Add a remote MCP server named `clarify` pointing to `https://api.clarify.ai/mcp` using the client's HTTP/streamable-HTTP transport, then have the user complete the OAuth login when prompted. If the client only supports stdio servers, tell the user it isn't supported yet.

## Step 3: Verify

Once the user has logged in, call the `get-current-user` tool. If it returns their name and workspace, setup is complete. Tell the user they're connected and suggest a first question, such as:

- "What deals should I focus on this week?"
- "Go through today's meetings and create follow-up tasks for each one."

If tools don't appear after login, the client may need a restart or a new conversation.

## Scheduled or unattended use (optional)

OAuth logins need periodic re-authorization, which breaks scheduled or headless jobs. For those, connect with a **Personal API key** instead of OAuth by sending these headers to `https://api.clarify.ai/mcp`:

```
Authorization: api-key YOUR_API_KEY
X-Clarify-Workspace: your-workspace-slug
```

- Only **Personal** API keys work. Workspace keys will list every tool and then fail on every call.
- The user creates a key at **Settings → Workspace → API Keys** in Clarify. Any workspace member can do this.
- Have the user put the key into the config themselves. Don't ask them to paste it into the chat, and never echo it back.

Full reference: https://developer.clarify.ai/docs/getting-started/ai-agents

## Troubleshooting

- **Tool calls return "no approval received":** the client's tool-approval prompt declined the call. Have the user approve the tool or set it to always allow.
- **Write tools return "Tool not found" while reads work:** the client has a stale tool list. Remove the Clarify connector and add it again (reconnecting alone doesn't refresh it).
- **OAuth page didn't open:** a popup blocker is likely in the way. Allow popups for the client's domain and click Connect again.

More help: https://docs.clarify.ai/en/articles/13367278-clarify-mcp
