Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

get_variable

Retrieve Airflow variable values by key to access configuration settings, API keys, and shared parameters stored in Airflow's metadata database.

Instructions

Get a specific Airflow variable by key.

Use this tool when the user asks about:

  • "What's the value of variable X?" or "Show me variable Y"

  • "Get variable Z" or "What does variable A contain?"

  • "What's stored in variable B?" or "Look up variable C"

Variables are key-value pairs stored in Airflow's metadata database that can be accessed by DAGs at runtime. They're commonly used for configuration values, API keys, or other settings that need to be shared across DAGs.

Returns variable information including:

  • key: The variable's key/name

  • value: The variable's value (may be masked if marked as sensitive)

  • description: Optional description of the variable's purpose

Args: variable_key: The key/name of the variable to retrieve

Returns: JSON with the variable's key, value, and metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variable_keyYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/astronomer/astro-airflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server