# List MCP servers

> Source: https://truto.one/docs/api-reference/admin/mcp/list/

`GET /integrated-account/{integrated_account_id}/mcp`

Resource: **MCP**

## Path parameters

- **`integrated_account_id`** _(string, required)_
  The ID of the integrated account to list MCP servers for.

## Response body

- **`result`** _(array<object>)_
  List of MCP servers associated with the integrated account.
  - **`id`** _(string)_
    Unique identifier for the MCP server.
  - **`name`** _(string)_
    Human-readable name for the MCP server.
  - **`integrated_account_id`** _(string)_
    The integrated account this MCP server is bound to.
  - **`config`** _(object)_
    Optional scoping for the MCP server. When omitted, all available tools for the integrated account are exposed.
    - **`methods`** _(array<string>)_
      Restrict the MCP server to these Truto method names. Combined with `tags` using AND semantics.
    - **`tags`** _(array<string>)_
      Restrict the MCP server to tools whose resources carry these tags.
  - **`expires_at`** _(string)_
    Optional expiry timestamp. When set, the MCP server's token is invalidated after this time.
  - **`created_by`** _(string)_
    ID of the user who created the MCP server.
  - **`created_at`** _(string)_
    Time at which the MCP server was created.
  - **`updated_at`** _(string)_
    Time at which the MCP server was last updated.
- **`next_cursor`** _(string)_
  Cursor to fetch the next page of results, when present.

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/integrated-account/{integrated_account_id}/mcp' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/integrated-account/{integrated_account_id}/mcp', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/integrated-account/{integrated_account_id}/mcp"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
