astro) is an authenticated remote MCP server for reading your Astro resources, including Deployments, Workspaces, environment objects, and Organization settings, and for reading and changing the Dags, Dag runs, and other Airflow resources of your Deployments through the Airflow REST API. It signs you in with your own Astro credentials and respects your existing permissions.
Set up the Astro MCP server
LabsThis feature is in Labs and is available to all Astro Organizations.
The Astro MCP server signs you in with your Astro credentials, so each tool returns only the resources that your existing permissions allow you to view.
The investigation tools are available only to Organizations that have Otto investigations enabled. They require permission to view task logs for the whole Deployment. A Dag-level role isn’t enough.
write_airflow_api and delete_airflow_api send each request with your credentials, so Airflow accepts only the changes that your permissions in the Deployment allow. These tools can’t change Airflow connections, variables, configuration, authentication, users, or roles. The Astro MCP server never retries a write. If a write times out, check whether Airflow applied the change before you send it again.
Each connection to the Astro MCP server acts on one Organization. The server takes the Organization from the organizationId query parameter in the server URL:
- Claude Code
- Cursor
- Claude, Claude Desktop, and Cowork
- VS Code
- Codex
- OpenCode
Claude Code connects to remote MCP servers natively without the To authenticate, run
mcp-remote module./mcp in Claude Code and select the astro server. Claude Code opens a browser window so you can sign in with your Astro credentials.Authenticate with an API token
Instead of signing in through a browser, you can authenticate with an Organization API token, a Workspace API token, or a Deployment API token. Use this option for automated agents and other clients that can’t complete a browser sign-in. Send the token in theAuthorization header. For example, in Claude Code:
Restrict write tools
LabsThis feature is in Labs and is available to all Astro Organizations.
write_airflow_apidelete_airflow_apistart_investigation
Turn off write tools for an Organization
An Organization Owner can turn off write tools for every user in the Organization. When write tools are off, the Astro MCP server doesn’t list them and refuses a call to one of them. Agents can still use the read tools andsubmit_feedback.
- In the Astro UI, go to Settings.
- In the AI section, turn off Astro MCP Write Tools.
Connect in read-only mode
To hold one connection to read access, addreadOnly=true to the server URL:
&:
submit_feedback still works.
Approve redirect URIs for MCP clients
LabsThis feature is in Labs and is available to all Astro Organizations.
Prerequisites
- Organization Owner permissions to approve or remove a redirect URI. Any Organization member can view the approved list.
Approve a redirect URI
- In the Astro UI, go to Settings, then in the Security section, click MCP Redirect URIs.
- Click + New Redirect URI.
- Enter the exact HTTPS URL that the MCP client sends users back to, then click Approve Redirect URI.
https://mcp-client.example.com/oauth/callback. Astro rejects a URL that contains a wildcard, a fragment, or user information. Each Organization can approve up to 100 redirect URIs.
To stop accepting a client, remove its redirect URI from the same page. Removing a URI immediately blocks new sign-ins through that URL, but a client that’s already signed in keeps its access until its token expires.