> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gumloop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List connected accounts

> Discover the accounts available for a connector call.

`GET /api/v1/mcp/servers/{server_id}/accounts` lists connected-account selectors available to the authenticated caller for a connector. Use a server ID from [server discovery](https://docs.gumloop.com/api-reference/mcp/list-servers.md). Pass `team_id` to select the permitted team scope.

OAuth requires `gumloop_api.mcp`. Personal and team API keys are supported where the connector and requested scope permit them. A team key does not authorize the acting member's personal accounts. Tokens that cannot choose accounts per call receive `403` with `account_choice_not_enabled`; those calls use their permitted default account.

The response identifies the server and available account choices without returning provider secrets. Use the returned selector with a [tool call](https://docs.gumloop.com/api-reference/mcp/call-tool.md); the call rechecks access. Discovery does not create an account or complete OAuth consent.

```bash theme={"dark"}
gumloop mcp accounts SERVER_ID --json
```

The Python equivalent is `client.mcp.list_accounts(server_id)`, with `await` on the async client. See [`gumloop mcp`](https://docs.gumloop.com/cli/mcp) for discovery, account selection, and interactive setup.
