Skip to main content
Glama

list_connections

Retrieve all configured connections from Apache Airflow to manage data pipelines and external integrations.

Instructions

[Tool Role]: Lists all connections in Airflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Implementation Reference

  • Implementation of the list_connections MCP tool handler. Fetches paginated list of Airflow connections using the generic airflow_request function.
    @mcp.tool() async def list_connections(limit: int = 20, offset: int = 0) -> Dict[str, Any]: """[Tool Role]: Lists all connections in Airflow.""" params = {'limit': limit, 'offset': offset} query_string = "&".join([f"{k}={v}" for k, v in params.items()]) resp = await airflow_request("GET", f"/connections?{query_string}") resp.raise_for_status() return resp.json()
  • Registration call for all common tools (including list_connections) in the v1 tools module.
    common_tools.register_common_tools(mcp)
  • Registration call for all common tools (including list_connections) in the v2 tools module.
    common_tools.register_common_tools(mcp)

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/call518/MCP-Airflow-API'

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