Airflow MCP security

Who can run which Airflow actions through an MCP server, and which controls limit them. Covers read-only mode, tool allowlists and least-privilege roles for the Astronomer server and plugin.

On this page

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.

Controlastro-airflow-mcp plugin or standalone packageAstro 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 permissionsConfirm 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 userConfirm 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 pluginSame custom Deployment role recommended for access checks; confirm how it maps to hosted sessions
Enforcement of user credentialsAccess depends on the token or Airflow credentials configured on the Deployment; confirm how the token is scopedSends write and delete requests with the signed-in user's credentials, so Airflow applies that user's permissions
Write and delete toolsExposes the Airflow REST API tools available in the package version in use; review the tool list before enablingwrite_airflow_api covers POST, PATCH and PUT; delete_airflow_api sends DELETE, which the docs say cannot be undone
Restriction on argumentsThe allowlist does not restrict arguments of an allowed tool, so an allowed write tool still performs every operation it containsConfirm with Astronomer whether argument-level limits exist; assume none until stated
Log and secret exposureLog tools return log content; environment object tools hide secret values for connections and variablesget_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.

Allowlist README

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.

Astronomer MCP docs

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.

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.

  1. 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.

  2. 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.*.get read 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.

  3. Set AF_READ_ONLY for the default profile

    Set AF_READ_ONLY to true in 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.

  4. Define the tool allowlist

    Write the ASTRO_MCP_ALLOWED_TOOLS list 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.

  5. 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.

  6. 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.

  7. Review log tools and data exposure

    Decide whether get_task_logs and get_deployment_logs are 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.

  8. 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_ONLY set to false and 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.

ControlEvidence to requestWhere it comes from
Read-only modeThe value of AF_READ_ONLY on the running MCP server, plus a test showing a trigger or clear call is blockedServer environment or deployment config, then a test call from an MCP client
Tool allowlistThe ASTRO_MCP_ALLOWED_TOOLS value and a listing of tools the client actually receivesServer config and the tool list returned at connection time
Allowlist rejection testA recorded call to an excluded tool showing rejection before executionTest run against the server, kept with the change record
Allowlist scopeConfirmation that the allowlist is server-wide, so one setting applies to every clientServer configuration review, not per-user settings
Least-privilege roleDefinition of a custom MCP_VIEWER role with only the deployment.airflow.*.get permissionsAstro Deployment access settings for the target Deployment
Token assignmentList of tokens or users bound to the MCP role, with no WORKSPACE_MEMBER tokensAstro console access management for the Deployment
Airflow audit recordsAudit entries for write or delete calls, showing the requesting user rather than a shared service accountAirflow audit log for the Deployment, checked against the user who ran the tool
Tool access reviewLogs of get_task_logs and get_deployment_logs calls, with who ran them and how oftenServer or Astro logging, reviewed against the approved users list
Package version and sourceInstalled astro-airflow-mcp version, its Apache 2.0 license, and confirmation it came from the Astronomer repositoryPython 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

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.