---
title: "System and MCP API reference"
url: "https://coldagentai.com/docs/api/system.md"
canonical_url: "https://coldagentai.com/docs/api/system"
last_updated: "2026-10-19"
type: "reference"
summary: "The public system routes of the ColdAgentAI API, its OpenAPI and llms.txt documents, the health check and the MCP endpoint."
related: ["https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/mcp.md", "https://coldagentai.com/docs/openapi.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# System and MCP API reference

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

The public system routes of the ColdAgentAI API, its OpenAPI and llms.txt documents, the health check and the MCP endpoint.

The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the MCP server page. 6 operations.

## Operations

The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the [MCP server](https://coldagentai.com/docs/mcp.md) page.

Authenticate as described in [Authentication](https://coldagentai.com/docs/authentication.md). Every operation below is generated from the [OpenAPI document](https://coldagentai.com/docs/openapi.md).

| Method and path | Scope | What it does |
| --- | --- | --- |
| `GET /` | public | Pointer to the machine-readable docs |
| `GET /health` | public | Liveness check |
| `GET /openapi.json` | public | OpenAPI 3.1 document |
| `GET /llms.txt` | public | Plain-text index for AI agents |
| `GET /docs/{name}` | public | Markdown documentation page |
| `POST /v1/mcp` | read | MCP endpoint (Model Context Protocol) |

## GET /

Plain text that points to /llms.txt and /openapi.json.

Scope: `public`. No API key is needed. Success: HTTP 200.

### Response

HTTP 200 with a `text/plain` body, not JSON.

### Errors

[`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per client address, not per key. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();
```

## GET /health

Returns {"status": "ok"} while the server is running. Does not touch any vendor.

Scope: `public`. No API key is needed. Success: HTTP 200.

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | "ok" | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "status": "ok"
}
```

### Errors

[`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Never refused for load: this operation is not rate limited. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/health"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/health`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## GET /openapi.json

Every endpoint with its schemas, errors and per-operation scope (`x-scope`).

Scope: `public`. No API key is needed. Success: HTTP 200.

### Response

Response example, HTTP 200:

```
{
  "example_key": {}
}
```

### Errors

[`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per client address, not per key. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/openapi.json"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/openapi.json`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## GET /llms.txt

How to use the API, the pricing status (owner-approved), every endpoint and the capabilities that are unavailable on this server and why.

Scope: `public`. No API key is needed. Success: HTTP 200.

### Response

HTTP 200 with a `text/plain` body, not JSON.

### Errors

[`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per client address, not per key. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/llms.txt"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/llms.txt`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();
```

## GET /docs/{name}

Pages: api, plans, capabilities, errors. Add a .md suffix or send Accept: text/markdown for markdown; browsers get a readable HTML page.

Scope: `public`. No API key is needed. Success: HTTP 200.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | No further constraints. |

### Response

HTTP 200 with a `text/markdown` body, not JSON.

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unknown_product`](https://coldagentai.com/docs/errors.md#unknown_product), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per client address, not per key. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/docs/$NAME"
```

JavaScript (fetch):

```
const name = 'Example';
const res = await fetch(`https://api.coldagentai.com/docs/${name}`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();
```

## POST /v1/mcp

Streamable HTTP MCP server, stateless, JSON responses. Authenticate with the same Bearer API key. Tools map one to one onto REST endpoints and obey the key's scope: a read key can list and read but any tool that changes state, spends credits or sends email needs a write key. Tools that spend or send say so in their descriptions.

Scope: `read`. A read key and a write key both work. Success: HTTP 200.

### Response

Response example, HTTP 200:

```
{
  "example_key": {}
}
```

### Errors

[`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl -X POST "https://api.coldagentai.com/v1/mcp" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/mcp`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## Related

- [API reference](https://coldagentai.com/docs/api.md)
- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API errors](https://coldagentai.com/docs/errors.md)
- [MCP server](https://coldagentai.com/docs/mcp.md)
- [OpenAPI document](https://coldagentai.com/docs/openapi.md)
