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

# Connect with MCP

> Call every APIstable public API from your AI assistant using your own API key.

## Connect Codex

Create a key in Console, set `APISTABLE_API_KEY` in your AI client’s process environment (a shell `export` does not update an already-running desktop app), then register the remote MCP server. Keep keys out of prompts and repositories.

```bash theme={null}
codex mcp add apistable --url https://apistable.ai/mcp --bearer-token-env-var APISTABLE_API_KEY
```

[Create an API key](https://apistable.ai/console/keys)

## Other MCP clients

For any client supporting Streamable HTTP and custom Bearer headers, add `https://apistable.ai/mcp` with `Authorization: Bearer YOUR_APISTABLE_KEY`. OAuth login and legacy standalone SSE transport are not supported.

## Three tools, every public API

| Tool | Purpose |
| - | - |
| `list_apis` | Compact API/model directory and `revision`. |
| `get_api` | Full contract for one operation; pass `model_id` for model input/result schemas. |
| `call_api` | Execute an operation (`operation_id`, `path`, `query`, `body`) with your key. |

```json theme={null}
{
  "operation_id": "getBalance"
}
```

> Example `call_api` input. Setup and discovery calls do not create paid tasks.

[Common APIs](https://docs.apistable.ai/api-directory.md)
[Integration Skill](https://docs.apistable.ai/skill.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.