> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# List an agent's MCP servers

GET https://api.jelliu.co/api/agents/{agentId}/mcp-servers

Returns the MCP servers assigned to the agent, i.e. the external tool sources the agent can
call. Credentials and per-tool decisions are never included; use
`GET /api/mcp-servers/{mcpServerId}` for a server's `toolOverrides`.

Not paginated: at most 50 servers are returned, in no guaranteed order. The list includes the
platform's own gateway row for the agent (it may carry a non-null `agent_id`) and hosted
providers attached automatically; it excludes the connected-apps tool surface managed under
Integrations. An agent id that does not exist in the workspace returns an empty list, not 404.

**Consistency.** Cached for up to 2 minutes; assigning or removing a server clears the cache
before responding.

**Idempotency.** Read-only and safe to retry.

**Access**

* **Required scope:** `read` (or `write`). Any workspace role.
* **Rate limit:** General API — 120 (Starter), 200 (Growth), 300 (Business) or 600 (Enterprise) requests/min per workspace. See [Rate limits](/rate-limits).
* **Plan:** Available on every plan.

Reference: https://developer.jelliu.co/api-reference/mcp-servers/get-agents-by-agent-id-mcp-servers

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Request

### Path parameters

- `agentId` (string, required) — UUID of the agent. It must belong to the authenticated workspace; an id from another workspace answers `404`, exactly like an unknown one. Returned as `id` by `GET /api/agents`.

## Response

### 200

The servers assigned to the agent.

- `data` (list of object, required)
  - `id` (string, optional) — The MCP server's id (the same id used under `/api/mcp-servers`).
  - `tenant_id` (string, optional) — The workspace that owns the server.
  - `agent_id` (string, optional, nullable) — `null` for a workspace server; set for the platform's per-agent gateway row, which belongs to that agent only.
  - `name` (string, optional) — Display name.
  - `description` (string, optional, nullable) — Agent-facing description of what the server's tools do.
  - `server_url` (string, optional) — The MCP endpoint, without any credential.
  - `approval_mode` (enum, optional) — Approval policy — `always_ask`, `fine_grained` or `no_approval`.
    - Allowed values: `always_ask`, `fine_grained`, `no_approval`
  - `transport` (enum, optional) — `SSE`, `STREAMABLE_HTTP`, or `null` when the voice engine's default (SSE) applies.
    - Allowed values: `SSE`, `STREAMABLE_HTTP`
  - `provider` (enum, optional) — Hosted provider recognised from the URL host (`zapier`, `alegra`, `make`); `null` for a custom server.
    - Allowed values: `zapier`, `alegra`, `make`
  - `created_at` (datetime, optional) — When the server was created.
  - `updated_at` (datetime, optional) — Last change to the server.

## Errors

### 400 Bad Request Error

`agentId` is not a UUID (the issue `path` is empty because the value itself is validated).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 401 Unauthorized Error

No usable credential. Either the `Authorization` header is missing or is not a well-formed `Bearer jl_…` key, or the key is unknown, revoked or expired. Do not retry with the same key. See [Authentication](/authentication#401-unauthorized).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 403 Forbidden Error

The API key has neither `read` nor `write`, or the workspace is suspended.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 429 Too Many Requests Error

General API rate limit exceeded.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "3c2b1a09-8f7e-4d6c-b5a4-938271605f4e",
      "tenant_id": "0e9d7c3b-8a1f-4c55-b7a2-3c4d5e6f7a8b",
      "agent_id": null,
      "name": "Zapier",
      "description": "Actions in the apps this business has connected through Zapier.",
      "server_url": "https://mcp.zapier.com/api/v1/connect",
      "approval_mode": "no_approval",
      "transport": "STREAMABLE_HTTP",
      "provider": "zapier",
      "created_at": "2026-09-14T15:02:11.000Z",
      "updated_at": "2026-09-14T15:02:11.000Z"
    },
    {
      "id": "6e5d4c3b-2a19-4807-b6f5-e4d3c2b1a098",
      "tenant_id": "0e9d7c3b-8a1f-4c55-b7a2-3c4d5e6f7a8b",
      "agent_id": null,
      "name": "Inventario Ferretería El Tornillo",
      "description": "Consulta de existencias y precios por referencia.",
      "server_url": "https://mcp.eltornillo.com.co/mcp",
      "approval_mode": "always_ask",
      "transport": "STREAMABLE_HTTP",
      "created_at": "2026-09-11T09:30:00.000Z",
      "updated_at": "2026-09-12T16:45:10.000Z"
    }
  ]
}
```

**SDK Code**

```python MCP Servers_getAgentsByAgentIdMcpServers_example
import requests

url = "https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript MCP Servers_getAgentsByAgentIdMcpServers_example
const url = 'https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go MCP Servers_getAgentsByAgentIdMcpServers_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby MCP Servers_getAgentsByAgentIdMcpServers_example
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java MCP Servers_getAgentsByAgentIdMcpServers_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php MCP Servers_getAgentsByAgentIdMcpServers_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp MCP Servers_getAgentsByAgentIdMcpServers_example
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift MCP Servers_getAgentsByAgentIdMcpServers_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/agents/2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11/mcp-servers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```