# list()

Canonical URL: https://developers.iagenify.com/sdk/ref/mcp/list/
Language: en

`api.mcp.list() → Promise<Server[]>`

Every connected server — enough to show what is plugged in, without a single token leaving the account.

Status: GET /api/ai/mcp · free · no tokens, no schemas

```javascript
const servers = await api.mcp.list();
// [{ name: "example", label: "Example", url: "https://mcp.example.com/sse",
//    category: "read", allowed: 2, available: 17,
//    protocolVersion: "2026-07-28", listedAt: "…", lastError: "" }]
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string |  | Its name here — what `mcp: [...]` takes. |
| `label · url` | string |  | Display name, and the address. |
| `category` | string |  | The permission its tools carry. |
| `allowed` | integer |  | How many tools are allowed. |
| `available` | integer |  | How many the server offers. |
| `protocolVersion` | string |  | The revision agreed at the last handshake. |
| `listedAt` | string |  | When its tools were last read. |
| `lastError` | string |  | The last refusal, if there was one. |

## No token, and no schemas {#no-token}

> **A listing is for showing**
>
> Tokens never appear in it, and neither do the tool schemas — which are large. For a server's tools, call get(); for the tokens an agent needs, forAgent() exists and is read by the engine.

## allowed against available {#counters}

`allowed: 2` of `available: 17` is the normal, healthy shape. `allowed: 0` means the server is connected and inert — nothing of it is declared to any model.

## allowed is what a turn costs {#cost}

Each allowed tool is one declaration on every turn of every run that uses the server. Summing `allowed` across the servers an agent is given is the number worth watching.

## lastError is worth surfacing {#lasterror}

A server whose token expired, or whose address moved, keeps working in the list and fails at call time. The field is where that shows before a run discovers it.

- [get()](/sdk/ref/mcp/get): With its tools.
- [update()](/sdk/ref/mcp/update): Changing what is allowed.
- [api.mcp](/sdk/ref/mcp): Connecting, listing and using a server.

```python
servers = api.mcp.list()
# [{"name": "example", "label": "Example", "url": "https://mcp.example.com/sse",
#   "category": "read", "allowed": 2, "available": 17,
#   "protocolVersion": "2026-07-28", "listedAt": "…", "lastError": ""}]
```
