# Connect your agent to Klarity

> Connect Claude, ChatGPT, Cursor or another MCP client to Klarity in three steps: copy the URL, add it to your client, sign in and choose a workspace and access.

Klarity runs an MCP server at `https://api.klarity.so/mcp`. Add it to your AI client, sign in with your Klarity account, and your agent works with the same tasks, schedule and clients you do.

## What an agent can do in Klarity

- **Tasks**: find, create and update tasks with estimates, priorities and due dates, make a task repeat, read and add comments. New tasks go into your plan like any other.
- **Schedule**: read your planned blocks, your calendar events and your work hours, to answer what's next and whether something fits. Place a task on the Schedule or move a block (both pinned, like a drag in the app) and ask for a replan.
- **Projects and processes**: create and update projects, read where a project stands and when it will finish, start a process and complete or skip its steps. For Enterprise workspaces, where Projects and Processes are part of the app.
- **Time**: log finished work and list time entries.
- **Clients and billing**, if you bill: look up and add clients, keep each client's dossier, add deals, see unbilled time, draft invoices and record payments. Only a draft invoice can be deleted; any other is cancelled instead.

An agent can place and move blocks on the Schedule and ask for a replan. It cannot start a timer or change your calendar: Klarity only reads your calendar, and so does the agent.

## Set it up in three steps

1. **Copy the URL**: `https://api.klarity.so/mcp`. In Klarity, the row at the bottom of the sidebar ("Connect your agent") opens this setup with a copy button.
2. **Add it to your client** as a remote MCP server or custom connector. Steps for each client are below.
3. **Sign in and choose.** Your client opens Klarity's sign-in. Sign in, check the workspaces the agent may work in, and choose **Read only** or **Read and change**. Then ask it something. No Klarity account yet? Choose **Sign up** on that page: the 14-day trial starts without a credit card, and after you confirm your email the setup continues to this choice.

Once connected, the sidebar row shows when the agent was last used, for example "Agent · used 2h ago".

## Per client

### Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http klarity https://api.klarity.so/mcp
```

Add `--scope user` to use Klarity in every project, not only the current one. Then start Claude Code, run `/mcp`, choose `klarity` and sign in in the browser window it opens.

### Claude.ai and Claude Desktop

1. Open **Settings**, then **Connectors**, and choose **Add custom connector**.
2. Name it Klarity and paste `https://api.klarity.so/mcp`. Add it.
3. Click **Connect** and sign in to Klarity.
4. In a chat, make sure the Klarity connector is switched on in the tools menu.

A connector added on claude.ai is also available in Claude Desktop with the same account. On Team and Enterprise plans an owner may need to add the connector for the organization first.

### ChatGPT

ChatGPT connects to custom MCP servers on the web. Business, Enterprise and Edu get read and write; Pro gets read only. On Business, an admin or owner adds the server.

1. Open **Plugins**, select **+**, then **Add custom MCP server**.
2. Name it Klarity and enter `https://api.klarity.so/mcp`. If ChatGPT asks for an authentication type, choose OAuth: there is no client ID to enter.
3. Confirm the risk warning and create it.
4. Sign in to Klarity when ChatGPT asks. On Pro, choose **Read only**.

### Cursor

Add Klarity to `~/.cursor/mcp.json` (for every project) or `.cursor/mcp.json` in a project:

```json
{
  "mcpServers": {
    "klarity": {
      "url": "https://api.klarity.so/mcp"
    }
  }
}
```

Cursor shows the server in its MCP settings; sign in to Klarity when it asks.

### Other MCP clients

Any client that speaks the Streamable HTTP transport and OAuth works:

- URL: `https://api.klarity.so/mcp`
- Authentication: OAuth 2.1 with PKCE and dynamic client registration. The client registers itself; there is nothing to create by hand. Discovery starts at `https://api.klarity.so/.well-known/oauth-protected-resource`.

**Scripts and headless use**: create a workspace API key in Klarity under **Settings**, **Agents**, **API keys**, and send it as a header:

```
Authorization: Bearer klar_…
```

With Claude Code, for example: `claude mcp add --transport http klarity https://api.klarity.so/mcp --header "Authorization: Bearer klar_…"`. Treat the key like a password: it works without a sign-in.

## Prompts to start with

- "What's planned for me tomorrow, and does anything look at risk this week?"
- "What should I work on next?"
- "Add the three follow-ups from this call as tasks, each with an estimate, due Friday."
- "I spent 90 minutes on the Acme report this morning. Log it."
- "Which clients haven't I been in touch with for two weeks?"
- "Draft an invoice for Acme from the unbilled time in November."
- "Put the proposal for Northwind on tomorrow morning and replan the rest of my week."

Clients that show MCP prompts (in Claude, the + menu; in Claude Code, `/mcp__klarity__plan_my_week`) also list four ready-made ones from Klarity: Plan my week, What's next, Capture tasks from notes and Log my time.

## Security and access

- **What access means.** The agent acts as you, in the workspaces you checked, with your role in each. It sees what you can see there and nothing in your other workspaces. With more than one, it works in the default workspace unless you name another ("log this in the Acme workspace").
- **Read only** lets the agent read and nothing else. **Read and change** also lets it create, update and delete. Changes need the owner or manager role and an active subscription or trial; reading works for everyone.
- **Revoke any time.** Settings, **Agents** lists every connected agent with when it was last used. **Revoke** cuts it off on its next request. Delete an API key under Settings, API keys.
- **Where your data goes.** Your data stays stored in Klarity, on servers in the EU. What the agent reads is sent to the provider of your AI client (for example Anthropic or OpenAI) as part of your conversation and is handled under their terms. Klarity never hands your password to the agent: sign-in happens on Klarity's own page.
- Agents are told to confirm with you before deleting anything or changing many records at once. Still, read what your agent proposes before you say yes.

## Troubleshooting

- **The client says it can't connect or asks for authentication again.** Remove the server and add it again, then sign in. In Claude Code, run `/mcp` and choose to authenticate.
- **The agent says it needs write access.** You chose Read only, your role is not owner or manager, or the workspace has no active subscription or trial. Reconnect with Read and change, or ask the workspace owner.
- **The agent sees the wrong workspace.** Revoke it under Settings, Agents, then connect again and pick the right one.
- **The agent says a slot is free but you have a meeting.** A calendar may have failed to load. Check Settings, Calendars and reconnect it. Klarity reports which calendar failed, and agents are told not to call a slot free while one is missing.
- **A new task doesn't show on the Schedule yet.** Klarity replans in the background, hourly and while the app is open. Open the Schedule or press S to plan now.
- **Times are off by an hour or more.** Check your time zone in Settings. Agents read and write times in it.

For anything else, write to [info@blackbridge.so](mailto:info@blackbridge.so).
