---
title: "Connecting an agent"
description: "Connect Claude Code or another MCP client to Tidegate, so an agent can read and manage your budgets."
---

# Connecting an agent

Tidegate runs an MCP server, so an agent such as Claude Code can read your budgets and spend, and,
if you're an admin, set up apps, meters, prices, budgets, and keys for you. The agent acts as you,
in the organization you choose when you sign it in, with your role there.

The server is at:

```
https://tidegate.attune.inc/mcp
```

## Claude Code

Add the server:

```sh
claude mcp add --transport http tidegate https://tidegate.attune.inc/mcp
```

Then run `/mcp` in Claude Code, choose `tidegate`, and sign in. Your browser opens Tidegate,
which asks you to sign in if you aren't already, then asks whether to let the agent in: choose
the organization it should act in, and allow it. Allow only an agent you just asked to connect;
the page shows the name it gave itself, and where it will send you back.

## Other agents

Any MCP client can connect if it supports:

- the Streamable HTTP transport, at the URL above;
- MCP protocol version 2026-07-28 (older clients are refused);
- signing in with OAuth. The client finds where to sign in on its own, from the server's
  `401` response.

Add the URL as a remote MCP server in the client's settings, then sign in when it asks.

## What an agent can do

The same things you can, through tools: list and define apps, meters, prices, and budgets, change
limits, list environments, list, create, and revoke keys, add up spend by app, environment,
vendor, meter, or label over any range, and read the history. It never reserves or settles spend,
which only services do. If you're a member, it reads everything and changes nothing.

Changes your agent makes are recorded in the [history](/tidegate/guide/history) as yours. A key your agent
creates has its secret shown to the agent once, like any key: have it put the secret straight
into the service's secret store.

The agent can also read this guide, to learn how Tidegate works before it changes anything.

## Signing out an agent

If you leave the organization, or an admin removes you, the agent is signed out of it with you.
A change to your role applies to the agent's next action. An agent unused for 30 days is signed
out. To sign it out yourself, remove it from your agent (in Claude Code,
`/mcp`, then clear its authentication).
