> ## 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.

# MCP Quickstart

> Connect an AI tool to the Agent Golf MCP server, sign in, and ask the first question.

Connect an AI tool to Agent Golf in three steps.

## Before you begin

* An Agent Golf account and a role in a workspace with at least one of **View Own Sessions**, **View Team Sessions**, **View Team Activity**, **View Pull Requests and Repositories**, or **View Roadmap**. See [Default roles](https://docs.agent.golf/account/users.md#default-roles).
* Remote MCP access on for the workspace. It is on by default. See [Manage Remote MCP](https://docs.agent.golf/mcp/administration.md).
* Session data in the workspace. Agent Golf has a session only after an uplink instance sends its telemetry. See [Connect a harness](https://docs.agent.golf/harnesses/overview.md).

**1. Add the server**

Add the server URL to your AI tool:

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

For example, in Claude Code:

```bash theme={null}
claude mcp add --scope user --transport http agentgolf https://mcp.agent.golf/mcp
```

Do not add a token or headers. Each [client page](https://docs.agent.golf/mcp/overview.md#supported-ai-tools) shows the steps for one AI tool.

**2. Sign in**

Start the sign-in in the AI tool. In Claude Code, run `/mcp`, select `agentgolf`, and select **Authenticate**.

In the browser, sign in to Agent Golf. On the **Connect an MCP Client** page, select the **Workspace**, select the permissions under **Permissions for This Client**, and select **Approve**. See [Sign-In and Access](https://docs.agent.golf/mcp/access.md#sign-in).

**3. Ask a question**

Ask the AI tool about your work, for example:

* "Which of my sessions cost the most this week?"
* "Why did CI cost so much on [https://github.com/OWNER/REPO/pull/123](https://github.com/OWNER/REPO/pull/123)?"
* "How did my tool failure rate change over the last 30 days?"

The AI tool calls the [tools](https://docs.agent.golf/mcp/tools.md) that answer the question.

## Next steps

* Install the Agent Golf plugin for [Claude Code](https://docs.agent.golf/mcp/claude-code.md), [Codex](https://docs.agent.golf/mcp/codex.md), or [omp](https://docs.agent.golf/mcp/omp.md). The plugin adds the server and skills that use the tools.
* Read the [Tool Reference](https://docs.agent.golf/mcp/tools.md) to see what each tool returns.
* If the sign-in or a tool fails, see [Limits and Troubleshooting](https://docs.agent.golf/mcp/troubleshooting.md).


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