# List the agents you have connected

> Page: https://docs.plotwork.dev/api/get-user-mcp-connections. Index of every page: https://docs.plotwork.dev/llms.txt

Returns the agents you connected with a browser sign-in that are still connected, newest first, to your own account or to an organisation.

`GET /user/mcp/connections`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | List the agents you have connected. |
| What does it take? | Nothing. |
| What does it return? | Status 200 with a body of type [`ConnectionList`](https://docs.plotwork.dev/api/schemas.md#connectionlist). |
| What can go wrong? | `401` not signed in; `429` too many requests. Every failure uses the one error envelope. |

## What it does

Returns the agents you connected with a browser sign-in that are still connected, newest first, to your own account or to an organisation. The key behind a connection is never shown.

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The connected agents. | [`ConnectionList`](https://docs.plotwork.dev/api/schemas.md#connectionlist) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`ConnectionList`](https://docs.plotwork.dev/api/schemas.md#connectionlist).

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | `Connection[]` | yes |  |
| `items[].id` | `string` | yes |  |
| `items[].clientId` | `string` | yes | The OAuth client id the agent registered with. |
| `items[].clientName` | `string` | yes | The name the agent gave itself when it registered. It is a claim, not a fact. |
| `items[].connectedAt` | `integer` | yes | Milliseconds since the epoch. |
| `items[].lastUsedAt` | `integer \| null` | yes | Milliseconds since the epoch, or null if the agent has not made a call. |
| `items[].organisation` | `ConnectionOrganisation` | yes | The organisation the agent was connected to, or null when it acts for your own account. |
| `items[].organisation.id` | `string` | yes |  |
| `items[].organisation.slug` | `string` | yes |  |
| `items[].organisation.name` | `string` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
