Airflow MCP security: can an AI agent be kept to read-only work?
Yes, for most read-only use cases, but only if the controls are set on purpose. The Astronomer Airflow MCP plugin and the Astro MCP server both offer a read-only mode, a tool allowlist through ASTRO_MCP_ALLOWED_TOOLS, and on Astro a custom Deployment role named MCP_VIEWER that carries only deployment.airflow.*.get read permissions. The plugin and allowlist come from the open-source astro-airflow-mcp package, and the role model comes from Astro. The remote Astro MCP server is marked as a Labs feature in Astronomer's docs, so treat it as less settled than the package. The docs for the plan tier you buy should be checked before you assume any of this is available to you.
Layer the controls rather than relying on one. Setting AF_READ_ONLY to true blocks trigger, pause, clear and delete calls at the MCP server level, regardless of the token's permissions. The allowlist removes tools from the server entirely, and calls to excluded tools are rejected before execution. Both settings apply to every client connected to that server, not to individual users, so one team's read-only server is the same server for everyone who reaches it. The README also says the allowlist does not restrict the arguments of an allowed tool, so an allowed tool still runs every operation its implementation contains. Work out which allowed tools matter before you go live.
The work that stays with your team is verification. Confirm that the token or Airflow identity behind the server holds only read roles, because a write-capable account will still write if a flag is missed. Check that a bad allowlist value leaves the server with no tools, then test that a blocked call fails. Review what the get_task_logs and get_deployment_logs tools return, since log content is data exposure even under read-only mode. Finally, confirm where the server's logs go and who can read them, using Astronomer's current documentation as the starting point. A short retest after each configuration change is the simplest way to show the restriction holds.
Which Airflow MCP controls are built in, paid or outside
This table compares the astro-airflow-mcp plugin, the standalone package and the Astro MCP server on the controls a reviewer needs to test. Where the researched sources are silent, the cell says to confirm with Astronomer rather than assuming the control exists. Read each row as a question to put to the vendor before approving a connection.
| Control | astro-airflow-mcp plugin or standalone package | Astro MCP server (remote) |
|---|---|---|
| Read-only mode (AF_READ_ONLY) | Set AF_READ_ONLY to true to block trigger, pause, clear and delete at the MCP server, regardless of token permissions | Confirm with Astronomer whether the same switch applies to the hosted server |
| Tool allowlist (ASTRO_MCP_ALLOWED_TOOLS) | Limits exposed tools and rejects excluded calls before execution, but applies to every client of that server, not per user | Confirm with Astronomer whether an equivalent allowlist exists and who sets it |
| Least-privilege role (MCP_VIEWER) | Deployment role with only deployment.airflow.*.get read permissions; WORKSPACE_MEMBER tokens do not work with the plugin | Same custom Deployment role recommended for access checks; confirm how it maps to hosted sessions |
| Enforcement of user credentials | Access depends on the token or Airflow credentials configured on the Deployment; confirm how the token is scoped | Sends write and delete requests with the signed-in user's credentials, so Airflow applies that user's permissions |
| Write and delete tools | Exposes the Airflow REST API tools available in the package version in use; review the tool list before enabling | write_airflow_api covers POST, PATCH and PUT; delete_airflow_api sends DELETE, which the docs say cannot be undone |
| Restriction on arguments | The allowlist does not restrict arguments of an allowed tool, so an allowed write tool still performs every operation it contains | Confirm with Astronomer whether argument-level limits exist; assume none until stated |
| Log and secret exposure | Log tools return log content; environment object tools hide secret values for connections and variables | get_task_logs and get_deployment_logs return log content, so review log access as a data exposure |
Which Airflow actions are risky: write and delete tools
The write_airflow_api and delete_airflow_api tools are the Airflow actions that need the most review, because they change the state of a running deployment. The write tool sends POST, PATCH and PUT requests to the Airflow REST API, which covers actions such as triggering a Dag run, pausing a Dag or clearing task instances. The delete tool sends DELETE requests, and Astronomer's docs state that deletes can't be undone. Before approving the server, confirm with your Astronomer contact which Dag and task objects a delete can remove in your Airflow version, and decide whether any team needs delete access at all.
The Astro MCP server sends write and delete requests with the user's own credentials, so Airflow accepts a change only when that user's permissions allow it. The docs also state that these tools can't change Airflow connections, variables, configuration, authentication, users or roles, and that the server never retries a write. That retry behavior matters for reviewers: a failed clear or trigger is not repeated automatically, so teams should expect manual follow-up and check the Airflow UI or audit trail before rerunning an action. Confirm the exact behavior in your environment before you rely on it in a runbook.
Read tools carry their own exposure. Per the Astronomer docs, the environment object tools always hide secret values for connections and variables, but get_task_logs and get_deployment_logs return log content. Task logs can contain values printed by Dag code, stack traces, file paths and sometimes data that a team never meant to share with an external AI client. Treat log access as a data exposure to review, decide whether an assistant needs logs at all, and restrict it with the same care as write access.
Decisions to make before enabling write tools
Before any AI assistant reaches Airflow, four or five settings decide how far it can change a Deployment. Each one narrows or widens the same write path, so they should be decided together and recorded in the rollout approval.
Expose write tools or not
Decide first whether any write tool is reachable. Setting AF_READ_ONLY to true blocks trigger, pause, clear and delete at the MCP server level, regardless of the token's permissions. An allowlist through ASTRO_MCP_ALLOWED_TOOLS is the other control, and it removes excluded tools before execution. Note that the allowlist does not restrict the arguments of an allowed tool, so a permitted write tool still performs every operation its implementation contains. Confirm which control your build honors before you rely on it.
One shared server configuration
The ASTRO_MCP_ALLOWED_TOOLS allowlist applies to every client of that server, not per user. A single shared configuration therefore means a read-only analyst and a release engineer get the same tool set. If some users need write tools, plan separate server instances with separate settings rather than one global list, and test that each instance exposes only the tools it should. A malformed allowlist value exposes no tools, so validate the value after every change.
Deployment role on each user token
Each write or delete call runs with the user's credentials, so the user's Deployment role sets the ceiling. Astronomer recommends a custom role named MCP_VIEWER that carries only deployment.airflow.*.get read permissions, which the docs list as 28 permissions. Tokens from a WORKSPACE_MEMBER role do not work with the plugin, so confirm each user's role before rollout. Grant write-capable roles only to named users who need them.
Whether logs reach the AI client
Environment object tools hide secret values for connections and variables, but get_task_logs and get_deployment_logs return log content. Logs often contain paths, parameters, error traces and occasionally data that a team did not expect to share. Decide whether an assistant may read logs at all, and if it may, decide which Deployments and which users are in scope. Consider excluding the log tools through the allowlist for sensitive Deployments.
Airflow version and install path
The install path depends on the Airflow version. Airflow 3.x requires Astro Runtime 3.1 or later and mounts as a FastAPI app. Airflow 2.x requires 2.4 or later and mounts as a Flask blueprint. The endpoint sits on the webserver at /mcp/v1/, so confirm which Deployments expose it and who can reach the webserver. Record the version in the approval, because controls and upgrade steps differ between the two lines.
How the answer changes by deployment situation
A team that only needs status, Dag health and log review should be configured so that no write path exists at all. The sources give two layers for this. The plugin and standalone server can be set to read-only mode, and on Astro the least-privilege role can be limited to read permissions. Using both layers means a mistake in one setting does not expose writes.
- Set AF_READ_ONLY to true: This blocks trigger, pause, clear and delete operations at the MCP server level, regardless of the token's permissions.
- Use the MCP_VIEWER role on Astro: Astronomer recommends a custom Deployment role with only the deployment.airflow.*.get read permissions.
- Review log access: Task and deployment log tools return log content, so read-only does not mean no data exposure.
- Confirm the token type: WORKSPACE_MEMBER tokens do not work with the plugin, so confirm which token type your team will issue.
Before approval, test that a write call is rejected in your own environment, because read-only enforcement depends on the server version you deploy.
On-call engineers may need to pause a Dag or clear task instances during an incident, but a shared allowlist is not a per-person control. The allowlist applies to every client of a given server, so the decision is about what the whole server can do, not what each engineer can do. Reviewers should separate the write tools that the on-call workflow needs from the ones it does not.
- Allow only the tools the workflow needs: ASTRO_MCP_ALLOWED_TOOLS limits which tools are exposed, and calls to excluded tools are rejected before execution.
- Exclude delete: The delete_airflow_api tool sends DELETE requests, and the docs state that deletes can't be undone.
- Plan for shared scope: Because the allowlist is server-wide, run a separate server instance for on-call if it needs different tools than the monitoring team.
- Keep the user's own permissions: The Astro server sends writes with the user's credentials, so Airflow still checks each user's rights.
- Note the argument limit: The allowlist does not restrict arguments of an allowed tool, so a permitted write can still affect any Dag the user can reach.
Confirm with the vendor and your own tests how a bad allowlist value behaves, since the README says it exposes no tools rather than all tools.
The plugin supports both major Airflow lines, but it is mounted differently on each. Airflow 3.x requires Astro Runtime 3.1 or later and mounts as a FastAPI app. Airflow 2.x requires version 2.4 or later and mounts as a Flask blueprint. The endpoint path is the same on the webserver, so the difference matters mainly for how the server is hosted, upgraded and reviewed.
- Airflow 3 (FastAPI app): Confirm the Runtime version is 3.1 or later before enabling the plugin.
- Airflow 2 (Flask blueprint): Confirm the installed version is 2.4 or later, and test the endpoint after each upgrade.
- Same endpoint path: The MCP endpoint is exposed at /mcp/v1/ on the webserver in both cases.
- Re-test controls per line: Read-only and allowlist settings should be verified separately on each Airflow line in your environment.
- Mixed fleets: Organizations running both lines need two review records, one per install type.
Ask your platform team which Airflow line each environment runs, and whether the same security settings have been tested on both.
The astro-airflow-mcp package can run standalone rather than inside an Airflow Deployment, which fits a case where the MCP server runs somewhere other than the webserver and talks to a remote Airflow. The package is Apache 2.0 licensed, requires Python 3.10 or later, and is built with FastMCP. Standalone mode moves the trust boundary, so the host running the server, its credentials and its network path all need review.
- Check the Python version: The package requires Python 3.10 or later on the host where it runs.
- Protect the credentials: The server calls the Airflow REST API with whatever credentials it is given, so store them in your secret manager and scope them to the minimum role.
- Apply the same controls: AF_READ_ONLY and ASTRO_MCP_ALLOWED_TOOLS are configured on the server, so set them on the standalone host too.
- Review the network path: Confirm which hosts can reach the MCP server and the remote Airflow API.
- Check the version: PyPI listed version 0.9.2 when read in November 2026, so confirm the version you deploy and its release notes.
Confirm with the vendor how standalone authentication to a remote Airflow is configured, since the sources do not describe it in detail.
Astronomer also offers a separate Astro MCP server. It is a remote server that signs users in with their own Astro credentials and respects their existing permissions. The docs mark it as a Labs feature, which means reviewers should treat its availability and behavior as subject to change. It is a different product from the open-source plugin, so the controls and data paths differ.
- Labs status: Confirm with Astronomer what Labs means for support, change notice and production use in your organization.
- User sign-in: Access follows each user's Astro permissions, so review workspace and Deployment roles before rollout.
- Log tools: get_task_logs and get_deployment_logs return log content, which is a data exposure to review.
- Hidden secrets: Environment object tools hide secret values for connections and variables, but confirm this behavior on the version you use.
- Separate review: Assess the hosted server and the self-hosted plugin as two different deployments with their own evidence.
Before approving the hosted server, ask Astronomer for its current Labs status, data handling terms and the controls available to your Astro administrators.
Order of work before production use
This sequence locks the Airflow MCP server down in layers before any AI client reaches a production Deployment. Each step produces a recorded check, so the security reviewer can see what was tested, in what order, and what remains open before approval.
Confirm the server, version and license
The platform owner confirms that the package in use is the astro-airflow-mcp package Astronomer publishes, and that no community server with a similar name is installed. Check the source repository and the PyPI listing, which showed version 0.9.2 when read in November 2026, and record the Apache 2.0 license and the Python 3.10 minimum. Pin the version in your environment so that any upgrade is a reviewed change. Done when the approved version, source link and Python runtime appear in the change record.
Create and verify the MCP_VIEWER role
On Astro, the Deployment owner creates a custom Deployment role named MCP_VIEWER that carries only
deployment.airflow.*.getread permissions. Compare the role against the 28 permissions listed in the Astronomer docs, and confirm that no MCP user depends on a WORKSPACE_MEMBER token, since those tokens do not work with the plugin. Assign the role only to the users or service identities that will connect. Done when a test session with that role can read Dag metadata and a write attempt fails.Set AF_READ_ONLY for the default profile
Set
AF_READ_ONLYtotruein the environment the MCP server reads, so trigger, pause, clear and delete operations are blocked at the server level whatever token a client presents. This setting covers every user and client on that server. Keep it in the deployment configuration the team already version-controls so reviewers can see when it changed. Done when a trigger or pause attempt from a test client is blocked and the change is recorded in the configuration history.Define the tool allowlist
Write the
ASTRO_MCP_ALLOWED_TOOLSlist with only the read tools the use case needs, and store it with the server configuration. The allowlist applies to every client of that server, not to individual users, so a group with a different tool need may require its own server instance. The allowlist does not restrict the arguments of an allowed tool, and an allowed tool still runs every operation in its implementation, so review the code path of each permitted tool. Done when the reviewer holds a written list of exposed tools that matches the approved use case.Test that excluded tools are rejected
From a test client, call a tool that is not on the list, such as a write or delete tool, and confirm the call is rejected before it executes. Also check that excluded tools do not appear in the tool listing the client receives. Record the tool name, the response and the server log entry for each rejected call. Done when every excluded tool tested is rejected and the Deployment state shows no change.
Test that a bad allowlist exposes nothing
Enter a deliberately malformed value in a non-production copy of
ASTRO_MCP_ALLOWED_TOOLS, such as a misspelled tool name or broken formatting, and reload the server. Confirm that no tools are exposed, since a bad value exposes no tools rather than all tools. Then restore the approved value and confirm the expected tools return. Done when the tool listing matches the approved list again and the test result is in the change record.Review log tools and data exposure
Decide whether
get_task_logsandget_deployment_logsare in scope, because they return log content even though the environment object tools hide secret values for connections and variables. Run each permitted log tool against a non-production Deployment and read the output for credentials, personal data or internal hostnames. If the logs carry sensitive content, remove the log tools from the allowlist or limit which users can connect. Done when the data owner signs off on the log decision and the sample review.Confirm write behavior in a non-production Deployment
Only after the earlier steps pass, test the write and delete paths in a non-production Deployment, with
AF_READ_ONLYset tofalseand the write tools allowed for the test only. Trigger a Dag run, pause a Dag and clear a task instance, then confirm that Airflow accepts only what the test user's permissions allow. Delete a disposable object, because the Astronomer docs state that deletes can't be undone, and confirm that the server does not retry a failed write. Done when the results are recorded and the security owner decides whether production write access is approved.
What a security reviewer asks to see
This table maps each Airflow MCP control to the evidence a reviewer should request and where that evidence comes from. Read each row as a question: if the team cannot produce the artifact named in the middle column, the control is not yet proven. The main takeaway is that configuration settings alone are not enough, because the allowlist does not limit arguments and write calls run under the user's own Airflow permissions.
| Control | Evidence to request | Where it comes from |
|---|---|---|
| Read-only mode | The value of AF_READ_ONLY on the running MCP server, plus a test showing a trigger or clear call is blocked | Server environment or deployment config, then a test call from an MCP client |
| Tool allowlist | The ASTRO_MCP_ALLOWED_TOOLS value and a listing of tools the client actually receives | Server config and the tool list returned at connection time |
| Allowlist rejection test | A recorded call to an excluded tool showing rejection before execution | Test run against the server, kept with the change record |
| Allowlist scope | Confirmation that the allowlist is server-wide, so one setting applies to every client | Server configuration review, not per-user settings |
| Least-privilege role | Definition of a custom MCP_VIEWER role with only the deployment.airflow.*.get permissions | Astro Deployment access settings for the target Deployment |
| Token assignment | List of tokens or users bound to the MCP role, with no WORKSPACE_MEMBER tokens | Astro console access management for the Deployment |
| Airflow audit records | Audit entries for write or delete calls, showing the requesting user rather than a shared service account | Airflow audit log for the Deployment, checked against the user who ran the tool |
| Tool access review | Logs of get_task_logs and get_deployment_logs calls, with who ran them and how often | Server or Astro logging, reviewed against the approved users list |
| Package version and source | Installed astro-airflow-mcp version, its Apache 2.0 license, and confirmation it came from the Astronomer repository | Python environment or lock file, compared with the PyPI and GitHub project pages |
Questions buyers ask before approving Airflow MCP write access
Can we run the Airflow MCP server in read-only mode only?
Yes, for the Astro MCP server. Setting AF_READ_ONLY to true blocks every write operation, including trigger, pause, clear and delete, at the MCP server level. The block applies regardless of what the token's permissions allow, so a user with write rights still cannot change Dags through that server. Read-only mode does not stop data from leaving, though. Task logs and deployment logs still return content to the AI client, and the environment object tools hide secret values for connections and variables only. Confirm that the setting behaves the same way in the configuration you deploy, whether standalone or as an Airflow plugin. After each change, review the tool list the server exposes to confirm it matches your intent.
Is the ASTRO_MCP_ALLOWED_TOOLS allowlist set per user?
No. The allowlist set by ASTRO_MCP_ALLOWED_TOOLS applies to every client that connects to that server, not to individual users. If one team needs write_airflow_api and another needs only reads, you need separate server instances with different values, so the read-only group does not share the write-capable endpoint. A bad value exposes no tools, which fails closed, but check the tool list after every change. The allowlist also does not restrict the arguments of an allowed tool. An allowed write tool still performs every operation its implementation contains, so the tool name alone does not bound the risk. Per-person limits therefore come from the Airflow roles each person's token carries.
Does the Astro MCP server respect our Airflow roles and permissions?
Yes, for the Astro MCP server. It sends write and delete requests with the signed-in user's credentials, so Airflow accepts a change only when that user's permissions allow it. The tools cannot change connections, variables, configuration, authentication, users or roles, and the server never retries a write. For least privilege, Astronomer recommends a custom Deployment role named MCP_VIEWER with only deployment.airflow.*.get read permissions, chosen from the 28 permissions the docs list. Tokens with the WORKSPACE_MEMBER role do not work with the plugin, so confirm which token type each user receives. Ask Astronomer how the plugin authenticates users, because the documented credential flow describes the remote Astro server.
What does an Airflow MCP server cost to run?
The sources we reviewed give no price for the Astro MCP server or the plugin, so get the figure from Astronomer and from your current Astro contract. The astro-airflow-mcp package is licensed under Apache 2.0, which governs the code, but the Astro environment and any terms for the Astro MCP server determine what you pay. The server is marked as a Labs feature, so ask whether that status carries conditions. Ask Astronomer which plan includes each server, what usage or seat terms apply, and whether support covers the plugin. Recurring costs include your Airflow Deployments and the staff time spent on role and token management. Any outside review is a separate written scope with its own quote, because DeployOpen does not publish a price list.
How long does it take to set up an Airflow MCP server?
No duration is published for this setup, so ask for a timeline in writing before you plan a rollout. The effort depends mainly on your Airflow version, since the plugin supports Airflow 3.x with Astro Runtime 3.1 or later and Airflow 2.x from 2.4. The number of teams that need different allowlists and roles adds work, as does the standalone versus plugin choice. Token issuance, change approval and testing in a non-production Deployment also take time. Ask Astronomer for the setup steps that match your version, and ask any implementation partner for a fixed-scope plan with agreed milestones and deliverables before work starts.
Can our own platform team set up Airflow MCP write controls?
Often yes for a single Deployment, provided your team already runs Airflow and manages its roles and tokens. The configuration work is modest: installing the package or plugin, setting AF_READ_ONLY and ASTRO_MCP_ALLOWED_TOOLS, creating the MCP_VIEWER role and checking the tool list. The harder work is in the decisions: which teams get write access, how tokens are issued and revoked, and how log exposure is handled, since task and deployment logs return content. Test each control with an isolated Deployment before pointing staff at it. If several teams, regulated data or a formal approval are involved, an outside review can check the result against your requirements.
What does an outside security review add before approving write access?
An outside review tests whether the controls work under attack, not only whether they are configured. DeployOpen's AI agent rollout security review examines prompt injection, tool and file permissions, data exposure, credential handling, and SSO and admin settings, then delivers a findings report with fixes and a retest. For this setup, that means checking whether a write tool can be reached through a crafted prompt, whether read-only and allowlist settings hold after restarts, whether log content leaks, and whether token roles match the access you intended. The review does not issue an audit report or certification. Ask for the report format, what the retest covers, and whether it is in the written scope.
How DeployOpen tests an Airflow MCP setup before rollout
DeployOpen works on Airflow MCP security as a fixed-scope engagement inside your own environment. We test the MCP server, its tool permissions, its Airflow roles and its logging before staff connect AI assistants, then deliver fixes and documentation your security team can review.
How we scope
- Confirm which Airflow version, plugin or standalone server, and Astro or self-hosted deployment are in use
- Agree in writing which tools are in scope, including write_airflow_api and delete_airflow_api
- Define which Airflow roles, tokens and clients the review covers before testing starts
How we build
- Test whether read-only mode, tool allowlists and least-privilege roles behave as documented in your setup
- Check whether allowed tools can still change arguments or perform operations you did not intend
- Review what task logs and environment objects return to the AI client and what data leaves your network
How we hand over
- Deliver a findings report with severity, evidence and the specific configuration changes needed
- Document the approved tool list, role definitions and client settings for your change records
- Retest the fixed configuration and confirm the results in writing before sign-off
How we support
- Offer retainers for upgrades, continuous testing and reviews when the Airflow or MCP server version changes
- Prepare evidence for your security questionnaires and internal reviews of the setup
- Keep the scope and deliverables aligned with your written agreement as rollout grows

