# Connect your AI agent

> Add Quality's MCP server to Claude Code, Codex, Cursor or another MCP client so your agent can read threads and their recordings.

Canonical: https://docs.usequality.app/docs/guides/connect-your-ai-agent

- Prerequisites: A Quality account; Claude Code, Claude Desktop, Codex, Cursor, VS Code or another MCP client
- Last updated: 2026-12-02

Quality runs a hosted MCP server, so there is nothing to install. Once your agent is connected, it can read a thread's comments, console messages, network requests, clicks and screenshots, and with write access reply on the thread.

The server's address is `https://server.usequality.app/mcp`.

## Add the server to your agent

**Claude Code.** Run:

```bash
claude mcp add --transport http quality https://server.usequality.app/mcp
```

Then run `/mcp` in Claude Code, choose **quality** and sign in to Quality in the browser.

**Codex CLI.** Add this to `~/.codex/config.toml`:

```toml
[mcp_servers.quality]
url = "https://server.usequality.app/mcp"
```

Then run `codex mcp login quality` and sign in.

**Cursor.** Add this to `~/.cursor/mcp.json`, then restart Cursor. It asks you to sign in the first time it uses a Quality tool.

```json
{
  "mcpServers": {
    "quality": {
      "url": "https://server.usequality.app/mcp"
    }
  }
}
```

**Claude Desktop, the Codex app, VS Code and other clients.** Add a remote MCP server named `quality` with the address above, using Streamable HTTP. The [MCP docs](https://docs.usequality.app/docs/mcp) have the exact steps for each.

On your site, the **MCP** row in the toolbar's menu opens the same setup guides. A thread also offers **Let your agent fix things** until you have connected an agent.

## Sign in and choose access

Your agent signs in with your Quality account in the browser. Reading threads needs no extra access. If you want your agent to comment on threads, allow write access when you sign in. Your agent can only see and do what your own account can.

## Check the connection

1. Ask your agent: "Call quality.system.ping."
2. A reply with `"status": "ok"` means it is connected.

Once connected, the **MCP** row in the toolbar's menu shows it as connected. You also get an email whenever a new client is connected to your account, so you can spot one you don't recognise.

## Limits

On the Free plan a workspace has 10 MCP tool calls a week, starting again each Monday, counted against the workspace whose thread is read. Paid plans have no limit.

## Next

Hand your agent a thread to fix: see [Send a thread to your agent](https://docs.usequality.app/docs/guides/send-a-thread-to-your-agent). For every tool the server offers, see the [MCP docs](https://docs.usequality.app/docs/mcp).

## Features in this guide

- [MCP server](https://www.usequality.app/features.md#mcp-server): Let AI coding agents such as Claude Code, Codex and Cursor read threads with their replay, console, network and screenshots, and reply on them.
