> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Connect Cursor to the Agent Golf MCP server, sign in, and sign out.

Cursor connects to the Agent Golf MCP server over streamable HTTP and signs in with OAuth. Server URL:

```text theme={null}
https://mcp.agent.golf/mcp
```

## Add the server

Add the server to `~/.cursor/mcp.json` for all your projects, or to `.cursor/mcp.json` in one project. Keep the file's other servers:

```json theme={null}
{
  "mcpServers": {
    "agentgolf": {
      "url": "https://mcp.agent.golf/mcp"
    }
  }
}
```

Do not add a token or headers. Cursor gets the token when you sign in.

## Sign in

1. Open **Customize** in the sidebar and find `agentgolf` in the MCP servers. The row asks you to sign in. Start the sign-in there.
2. In the browser, sign in to Agent Golf, select the workspace and the permissions, and select **Approve**. See [Sign in](https://docs.agent.golf/mcp/access.md#sign-in).
3. Back in Cursor, the server shows its tools. Ask the agent to use Agent Golf, for example "Which of my sessions cost the most this week?"

Cursor keeps the token and renews it. When the sign-in ends, sign in again from **Customize**.

Cloud Agents keep their own sign-ins on Cursor's servers. Sign in to the server from its **Cloud** row in **Customize** to use it in Cloud Agents.

## Sign out

In **Customize**, log out on the `agentgolf` row. Do the same on its **Cloud** row if you signed in for Cloud Agents. This removes the token from Cursor.

To end the access on the Agent Golf side too, revoke the client on the **MCP Clients** card of the **Account** page. See [Revoke a client](https://docs.agent.golf/mcp/access.md#revoke-a-client).

## Local transcripts

The remote server reads only Agent Golf data. To read local transcripts of Claude Code, Codex, and the GitHub Copilot CLI, also add the local [`agentgolf mcp`](https://docs.agent.golf/cli/commands#agentgolf-mcp) server of the CLI. See [Local transcripts](https://docs.agent.golf/mcp/overview.md#local-transcripts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.