Docs/Connect Astral to Claude and ChatGPT
Connect Astral to Claude and ChatGPT
Use your Astral workspace from Claude, Claude Code, ChatGPT, Codex or CI through the Astral MCP server. Connect, tools, approvals, limits and disconnect.
Astral has an MCP server at https://www.astralos.ai/mcp. Connect it to Claude, ChatGPT or another MCP client. The client can then search your workspace, read it, and ask your agents for work.
- One connection is for one workspace. To use two workspaces, connect two times.
- The client acts as you. It sees only what you can see in that workspace.
- Only members can connect. Guests can not.
Claude (web, desktop and mobile)#
- In Claude, open Settings → Connectors.
- Select Add custom connector.
- Paste
https://www.astralos.ai/mcpand select Add. - Select Connect. Astral opens.
- Sign in to Astral if it asks you.
- Pick one workspace.
- Keep Act on to let Claude ask agents, make tasks and change the Library. Turn it off to let Claude only read.
- Select Allow. You go back to Claude.
Claude Code#
Run this command:
claude mcp add --transport http astral https://www.astralos.ai/mcpThen run /mcp in Claude Code, select astral and sign in. Astral opens in your browser. Do steps 5 to 8 of the Claude section.
ChatGPT#
- In ChatGPT, open Settings → Apps & Connectors.
- Turn on developer mode (under Advanced).
- Select Create.
- Type a name, for example
Astral, and pastehttps://www.astralos.ai/mcpas the URL. - Select OAuth as the authentication.
- Select Create, then connect. Do steps 5 to 8 of the Claude section.
Without a browser: an API key for MCP#
Use an API key for Codex, CI or a server, where no person can sign in.
- In Astral, open Settings → API keys and select New key.
- Set For to For MCP (Claude Code, Codex, CI).
- Choose Read or Read and act, and when the key expires.
- Select Create key and copy the key. You can not see it again.
- Send it in each request to
https://www.astralos.ai/mcp:
Authorization: Bearer <key>Claude Code with a key:
claude mcp add --transport http astral https://www.astralos.ai/mcp --header "Authorization: Bearer $ASTRAL_MCP_KEY"An MCP key works only on the MCP server. The Astral API (/api/v1) refuses it. An API key for /api/v1 does not work on the MCP server.
A key acts as you in the workspace where you made it. It stops when you revoke it, when it expires, when you leave the workspace, or when an admin turns off Outside AI apps.
Tools#
| Tool | Needs Act | What it does |
|---|---|---|
search | No | Searches your workspace. |
fetch | No | Reads one item by id: a Library item, a task, a chat or an agent. |
list_agents | No | Lists the agents you can use. It marks your main agent. |
list_tasks | No | Lists tasks. Filter by status or assignee. |
library_list | No | Lists the items of a Library folder. |
list_needs_you | No | Lists the decisions and approvals that wait for you, each with its Astral link. |
get_reply | No | Gets new agent messages in a chat. It waits up to 60 seconds. |
ask_agent | Yes | Sends your message to an agent and waits up to 120 seconds for the reply. The chat shows in Astral. |
create_task, update_task | Yes | Makes a task, or adds a note to a task, cancels it or closes it. |
library_create, library_update | Yes | Makes a document or HTML item, or changes one. |
Some tools come in steps. Your client shows the tools that the server has now.
Approvals#
Astral rules stay on. When an action needs your approval, the tool gives a link. Open the link, and approve or deny in Astral. Then ask the client to do the action again. It runs one time.
Limits and credits#
- A connection is free. The work costs what it costs in Astral (agent turns, media, paid tools). The workspace of the connection pays.
- Each connection can use at most 20 credits a day.
- When the workspace has no credits, the tool gives an error with a link to Billing.
Disconnect#
- You: open Settings → Connected apps and select Disconnect. The next request of the client fails. To stop a key, open Settings → API keys and revoke it.
- Owners and admins: open Settings → Access. The switch Outside AI apps turns off every connection and every MCP key of the workspace. You also see each connection of the workspace there.
The Event Log shows the work of each connection, for example "via Claude".