# MCP server

> Connect Claude, ChatGPT, Claude Code, Codex or another MCP client to your workspace, and see what it can do there and how you stay in control.

Chat apps such as Claude and ChatGPT, and coding agents such as Claude Code and Codex, support the Model Context Protocol (MCP). Any of them can work in your workspace through our MCP server:

```text
https://mcp.limitry.com/mcp
```

## Connect

Add the address above to your agent as a remote MCP server:

* **Claude:** **Customize → Connectors → + Add → Add custom connector**. On a Team or Enterprise plan, an owner adds it under **Organization settings → Connectors**, and each person then clicks **Connect** under **Customize → Connectors**.
* **ChatGPT:** go to [chatgpt.com/plugins](https://chatgpt.com/plugins), click **+**, then **Add custom MCP server**. Enter the address, click **Create as a plugin** and install it. On a Business or Enterprise plan, an admin allows custom MCP servers first.
* **Claude Code:** run `claude mcp add --transport http limitry https://mcp.limitry.com/mcp`, then `/mcp` in Claude Code to sign in.
* **Codex:** run `codex mcp add limitry --url https://mcp.limitry.com/mcp`, then `codex mcp login limitry`.
* **Cursor, GitHub Copilot in VS Code, Windsurf, Gemini CLI, or another app that supports remote MCP servers:** add the address in its MCP settings, and sign in when it asks.

The first time the agent connects, your browser opens:

1. Sign in, if you aren’t already.
2. Choose the **one workspace** the agent will work in.
3. Choose what the agent may do. Anything that can change data starts unticked, so tick only what the agent needs.
4. Click **Allow**.

There’s nothing to copy and no key to store. The agent gets its own sign-in, which works only for the workspace and the access you chose.

## Test and live

When you sign in, you choose where the agent works by default: **Test** (practice data your developers use) or **Live** (your real customers). It starts on Test. Test limits and counts are separate from live ones, so an agent trying things out can’t refuse your real customers by mistake. To switch, reconnect and choose the other. Your choice shows in **Account → Apps and agents**.

An address ending in `?environment=live` or `?environment=test` overrides the choice, for example to keep a second connector for live:

```text
https://mcp.limitry.com/mcp?environment=live
```

Every tool result ends with `Environment: test` or `Environment: live`, so you and the agent can always tell which side it used. See [Test and live](/docs/test-and-live/).

## What the agent can do

The agent’s tools are the [API](/docs/reference/) operations you allowed, such as reading the workspace or listing webhook deliveries. It always acts as **you**, with your role in the workspace. It can do only what you could do in the app. Everything it changes shows up in the workspace’s audit log under your name.

Even with full access, an agent can’t send your workspace’s data somewhere new or hand out access by itself, for example by creating a webhook endpoint or a credential. It can **ask** instead, and you approve or deny the request in the app. If the action creates a secret, the app shows it to you, never to the agent. [Approvals](/docs/approvals/) explains how.

## Staying in control

* **Account → Apps and agents** lists every agent you’ve connected. Disconnect one and it stops working at once.
* The workspace’s **audit log** records what each agent did.
* If you’re removed from the workspace, your agents lose access too.

## For developers

The server follows the MCP authorization specification. A request without a token gets a `401` that points to `/.well-known/oauth-protected-resource/mcp`, which names the authorization server, `https://api.limitry.com/auth`. That server supports dynamic client registration and PKCE, and issues tokens for the MCP server only.

Every tool that changes something takes an optional `idempotencyKey`. If an agent calls the tool again after an error or a timeout, the same key makes sure the change happens only once. Within a single call, the server also retries a failed attempt with that call’s key. [Idempotency](/docs/idempotency/) has the details.

For your own scripts, the [CLI](/docs/cli/) or the [SDK](/docs/typescript/) is simpler. For the agent skill, see [Build with AI agents](/docs/agents/).
