PluginBench
MCP Server
Active
MIT

StackQL MCP Server MCP Server

io.github.stackql/stackql-mcp

Query and provision cloud infrastructure across 40+ providers using SQL via MCP

What is the StackQL MCP Server MCP server?

The StackQL MCP Server is a SQL-native query and provisioning engine for cloud infrastructure that integrates with AI agents like Claude and Cursor. It allows you to query and manage resources across 40+ cloud and SaaS providers (AWS, Google Cloud, Azure, GitHub, Okta, etc.) using standard SQL semantics, transpiling SQL statements into API requests.

StackQL MCP exposes cloud and SaaS APIs as queryable SQL tables, letting you write SELECT, INSERT, UPDATE, and DELETE statements against infrastructure resources. Use it to audit cloud state, provision resources, enforce compliance, or gather FinOps data across multiple cloud providers without learning provider-specific APIs or SDKs.

How to install StackQL MCP Server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "stackql-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@stackql/mcp-server"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • SQL query execution — Execute SELECT, INSERT, UPDATE, and DELETE statements against cloud provider APIs
  • Multi-provider resource querying — Query resources across 40+ cloud and SaaS providers including AWS, Google Cloud, Azure, GitHub, Okta, and others
  • Infrastructure provisioning — Create, modify, and delete cloud resources using SQL statements
  • Output formatting — Return results in JSON, CSV, table, or text formats
  • Variable and parameter support — Pass parameters to queries using jsonnet or JSON

Use cases

  • Query EC2 instances, S3 buckets, and other AWS resources across regions using SQL
  • Audit cloud security and compliance by querying IAM policies, network configurations, and resource tags across multiple cloud providers
  • Provision infrastructure resources (VMs, databases, networks) by writing INSERT statements instead of using provider CLIs
  • Generate FinOps reports by querying billing and resource utilization data across AWS, Google Cloud, and Azure
  • Automate cloud resource management in CI/CD pipelines via GitHub Actions or other agentic workflows

StackQL MCP Server MCP server FAQ

What is the StackQL MCP Server?

StackQL MCP is a SQL-native interface to 40+ cloud and SaaS providers. It transpiles SQL queries into API calls, letting you query and provision infrastructure using standard SQL instead of provider-specific tools.

Is StackQL free?

Yes, StackQL is open-source under the MIT License and free to use.

How do I install it in Cursor or Claude?

Add a configuration block to your MCP client config pointing to one of the install vectors: npm (@stackql/mcp-server), PyPI (stackql-mcp-server), Docker (stackql/stackql-mcp), or download a .mcpb bundle for your platform.

What authentication does StackQL require?

StackQL requires credentials for the cloud providers you want to query (AWS, Google Cloud, Azure, etc.). Pass credentials via the --auth flag or environment variables. GitHub Actions mode defaults to read-only for safety.

Can I use StackQL in read-only mode?

Yes, StackQL supports a read-only mode suitable for audits and CI/CD workflows, preventing accidental infrastructure changes.

What output formats does StackQL support?

StackQL can return results as JSON, CSV, table, or text format via the --output flag.

README (reference)

Source of truth, from the repository.

<!-- web assets --> <!-- docker links --> <!-- github actions links --> <!-- badges --> <!-- github links --> <!-- repo assets --> <!-- misc links --> <!-- language: lang-none --> <div align="center">

logo

platforms license build MCP Toplist MCP Registry MCP Server GitHub Release GitHub Downloads Docker Pulls stars

</div> <!-- <div align="center"> --> <!-- ![GitHub Release](https://img.shields.io/github/v/release/stackql/stackql?label=github%20release) --> <!-- ![GitHub Downloads](https://img.shields.io/github/downloads/stackql/stackql/total?label=github%20downloads) --> <!-- ![Docker Pulls](https://img.shields.io/docker/pulls/stackql/stackql) --> <!-- ![Chocolatey Downloads](https://img.shields.io/chocolatey/dt/stackql?label=chocolatey%20downloads) --> <!-- ![Docker Image Version](https://img.shields.io/docker/v/stackql/stackql?label=docker%20version) --> <!-- ![Chocolatey Version](https://img.shields.io/chocolatey/v/stackql) --> <!-- ![homebrew version](https://img.shields.io/homebrew/v/stackql?label=homebrew%20version) --> <!-- ![homebrew downloads](https://img.shields.io/homebrew/installs/dy/stackql?label=homebrew%20downloads) --> <!-- ![PyPI - Downloads](https://img.shields.io/pypi/dm/stackql-deploy?label=pypi%20downloads) --> <!-- </div> --> <div align="center">

Deploy, manage and query cloud resources and interact with APIs using SQL

The Universal Interface for the Agentic Era. Configuration-as-Data. Infrastructure-as-Context.

<!-- <h3 align="center">SQL based XOps, observability and middleware framework</h3> --> <p align="center">

Read the docs »
Raise an Issue · Request a Feature · Developer Guide · BYO Providers

</p> </div> <details open="open"> <summary>Contents</summary> <ol> <li><a href="#about-the-project">About The Project</a></li> <li><a href="#mcp-server">MCP Server</a></li> <li><a href="#installation">Installation</a></li> <li><a href="#usage">Usage</a></li> <!-- <li><a href="#roadmap">Roadmap</a></li> --> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#acknowledgements">Acknowledgements</a></li> </ol> </details>

About The Project

StackQL is an open-source project built with Golang that allows you to create, modify and query the state of services and resources across different local and remote interfaces, using SQL semantics. Such interfaces canonically include, but are not limited to, cloud and SaaS providers (Google, AWS, Azure, Okta, GitHub, etc.). <br /> <br />

stackql-shell stackql-shell

How it works

StackQL is a standalone application that can be used in client mode (via exec or shell) or accessed via a Postgres wire protocol client (psycopg2, etc.) using server mode (srv).

StackQL parses SQL statements and transpiles them into API requests to the (cloud) resource provider. The API calls are then executed and the results are returned to the user.

StackQL provider interfaces are canonically defined in OpenAPI extensions to the providers' specification. These definitions are then used to generate the SQL schema and the API client. The source for the provider definitions are stored in the StackQL Registry. The semantics of provider interactions are defined in our any-sdk library. For more detail on nuts and bolts, please see the local AGENTS.md file and that of any-sdk.

<details> <summary><b>StackQL Context Diagram</b></summary> <br /> The following context diagram describes the StackQL architecture at a high level: <!-- ![StackQL Context Diagram](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/stackql/test-readme/main/puml/stackql-c4-context.iuml) -->
flowchart LR
  subgraph StackQL
    direction BT
    subgraph ProviderDefs
        Registry[Provider Registry Docs]    
    end
    subgraph App
        Proc[$ stackql exec\n$ stackql shell\n$ stackql srv]
        style Proc fill:#000,stroke:#000,color:#fff,text-align:left;

        %% ,font-family:'Courier New', Courier, monospace
    end
  end
  User((User)) <--> StackQL <--> Provider[Cloud Provider API]
  ProviderDefs --> App

More detailed design documentation can be found in the here.

</details>

MCP Server

StackQL is an MCP server - SQL over 40+ cloud and SaaS providers for AI agents. Point any MCP-capable client (Claude, VS Code, Cursor, etc.) at StackQL and it can query and provision cloud resources using SQL.

Run it over stdio:

stackql mcp --mcp.server.type=stdio

StackQL MCP is published to the Official MCP Registry as io.github.stackql/stackql-mcp and distributed via npm, PyPI, Docker, a GitHub Action and .mcpb bundles. Pick an install vector and add the matching block to your MCP client config:

<details> <summary><b>npm (npx)</b></summary>
{
  "mcpServers": {
    "stackql": {
      "command": "npx",
      "args": ["-y", "@stackql/mcp-server"]
    }
  }
}
</details> <details> <summary><b>PyPI (uvx)</b></summary>
{
  "mcpServers": {
    "stackql": {
      "command": "uvx",
      "args": ["stackql-mcp-server"]
    }
  }
}
</details> <details> <summary><b>Docker</b></summary>
{
  "mcpServers": {
    "stackql": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "stackql/stackql-mcp"]
    }
  }
}
</details> <details> <summary><b>.mcpb bundle</b></summary>

Download the bundle for your platform from the latest release and install it in your MCP client (one-click in clients that support .mcpb).

  • stackql-mcp-linux-x64.mcpb
  • stackql-mcp-linux-arm64.mcpb
  • stackql-mcp-windows-x64.mcpb
  • stackql-mcp-darwin-universal.mcpb
</details> <details> <summary><b>GitHub Actions</b></summary>

Wire StackQL MCP into agentic CI workflows. Defaults to read_only mode, the safe default for CI.

- uses: stackql/setup-stackql-mcp@v1
  with:
    mode: read_only
</details>

For client-specific setup, authentication and server modes, see the full MCP install and usage docs.

Installation

StackQL is available for Windows, MacOS, Linux, Docker, GitHub Actions and more. See the installation instructions below for your platform.

<details> <summary><b>Installing on MacOS</b></summary>
  • Homebrew (amd64 and arm64)
    • brew install stackql or brew tap stackql/tap && brew install stackql/tap/stackql
  • MacOS PKG Installer (amd64 and arm64)
</details> <details> <summary><b>Installing on Windows</b></summary>
  • MSI Installer
  • Chocolatey
  • ZIP Archive
    • download the latest Windows ZIP archive for StackQL
    • extract the archive (code signed stackql.exe file) to a directory of your choice
    • add the directory to your PATH environment variable (optional)
</details> <details> <summary><b>Installing on Linux</b></summary>
  • ZIP Archive
    • download the latest Linux ZIP archive for StackQL
      • or via curl -L https://bit.ly/stackql-zip -O && unzip stackql-zip
    • extract the archive (stackql file) to a directory of your choice
    • add the directory to your PATH environment variable (optional)
</details> <details> <summary><b>Getting StackQL from DockerHub</b></summary>

View all available StackQL images on DockerHub. Images available include stackql, stackql-jupyter-demo and more. Pull the latest StackQL base image using:

docker pull stackql/stackql

Want findings, not infrastructure? Run a read-only cross-cloud security & FinOps audit with the standard image in one command — see the Docker audit quickstart.

</details> <details> <summary><b>Using StackQL with GitHub Actions</b></summary>

Use StackQL in your GitHub Actions workflows to automate cloud infrastructure provisioning, IaC assurance, or compliance/security. Available GitHub Actions include: setup-stackql, stackql-exec and more

</details>

Usage

StackQL can be used via the interactive REPL shell, or via the exec command or ran as a server using the Postgres wire protocol.

ℹ️ StackQL does not require or install a database.

  • Interactive Shell

    # run interactive stackql queries
    stackql shell --auth="${AUTH}"
    
  • Execute a statement or file

    stackql exec --auth="${AUTH}" -i myscript.iql --iqldata vars.jsonnet --output json
    
    # or
    
    stackql exec --auth="${AUTH}" "SELECT id, status FROM aws.ec2.instances WHERE region = 'us-east-1'"
    

    ℹ️ output options of json, csv, table and text are available for the exec command using the --output flag

    ℹ️ StackQL supports passing parameters using jsonnet or json, see Using Variables

  • Server

    # serve client requests over the Postgres wire protocol (psycopg2, etc.) 
    stackql srv --auth="${AUTH}"
    

For more examples, please check our Blog

<!-- ## Roadmap See our [__roadmap__](https://github.com/othneildrew/Best-README-Template/issues) to see where we are going with the project. -->

Contributing

Contributions are welcome and encouraged. For more information on how to contribute, please see our contributing guide.

License

Distributed under the MIT License. See LICENSE for more information. Licenses for third party software we are using are included in the /docs/licenses directory.

Contact

Get in touch with us via Twitter at @stackql, email us at info@stackql.io or start a conversation using discussions.

Acknowledgements

Forks of the following support our work:

We gratefully acknowledge these pieces of work.

Related MCP servers

PHPhonebook logo

Phonebook

Active

Self-hosted gallery of SwiftUI #Preview and Jetpack Compose @Preview screens, no SaaS required.

10
TypeScript
MIT
View repository →

AI-optimized patent data marketplace providing structured JSON datasets.

0
Python
MIT
View repository →

SEC EDGAR MCP: search, preview, purchase filings. x402 USDC on Polygon. xpay + Cloud Run upstream.

2
Python
MIT
View repository →

MCP server for Directus 12 — items, collections, files, flows, users, and schema tools

0
TypeScript
MIT
View repository →

Dart AI task management MCP with batch operations, DartQL selectors, CSV import, zero context rot

0
TypeScript
MIT
View repository →
DEDevTool MCP logo

AI coding agent with browser superpowers: screenshots, DOM inspection, error capture, and real-time debugging.

19
Go
Apache-2.0
View repository →