StackQL

Cloud and DevOpsDeveloper tools

SQL-native query and provisioning engine for cloud infrastructure, served over MCP.

Your AI app calls the StackQL MCP server, which does the cloud and DevOps and developer tools work and sends the result back to the chat.

About StackQL

StackQL is a community MCP server from stackql, filed in our directory under cloud and devops and developer tools. SQL-native query and provisioning engine for cloud infrastructure, served over MCP.

StackQL is listed in the official MCP registry as io.github.stackql/stackql-mcp, version 1.1.959.

At a glance

Publisher
stackql (community)
Runs
See the README for setup
Install from
MCP bundle: https://github.com/stackql/stackql/releases/download/v1.1.959/stackql-mcp-linux-x64.mcpb
Written in
Go
License
MIT
GitHub stars
1,145
Official MCP registry
io.github.stackql/stackql-mcp

How to set up StackQL

  1. Follow the install steps in the StackQL README; it is written in Go, so have that toolchain ready.
  2. Check the StackQL README for keys or settings; the registry lists none that StackQL requires.
  3. Add StackQL to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the StackQL tools to confirm the connection.
  5. Run one read-only task with StackQL first, and keep your app asking before each tool call until the results look right.

StackQL compared with similar servers

  • Kubectl by rohitg00 has fewer GitHub stars than StackQL (974 against 1.1k); both are community servers, and both run locally.
  • Huatuo by ccfos has more GitHub stars than StackQL (1.2k against 1.1k); both are community servers, and both run locally.
  • Microsoft Gateway by microsoft has fewer GitHub stars than StackQL (930 against 1.1k); Microsoft Gateway is official while StackQL is a community server, and both run locally.

Before you connect StackQL

  • Give StackQL its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each StackQL tool call until you trust what it does with them.
  • Treat text that StackQL fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for StackQL on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for StackQL

How marketing and sales teams put StackQL to work, by company size. Pick the size closest to yours and start StackQL on one use case.

Small business

  • A small business can ask StackQL why the site is slow or down and get the likely cause in plain words.
  • Owners can use StackQL to check hosting costs and spot services they pay for but no longer use.
  • A small business with a developer can use StackQL to ship site and tracking fixes faster, with the AI reading the code it changes.
  • StackQL runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Web teams can connect StackQL to watch deploys during a launch and roll back fast if a campaign page breaks.
  • Marketing engineering can use StackQL to spin up preview environments for every landing page review.
  • Growth engineers can use StackQL to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start StackQL on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should give StackQL read access first, with changes gated by the same approvals as any infrastructure change.
  • Large orgs can use StackQL to answer cost and reliability questions across accounts, so marketing launches are planned with real capacity.
  • Enterprise engineering teams can roll out StackQL with repo scopes and audit logs, so agents work only where they are allowed.
  • StackQL is a community server, so have security review the code and pin a version before StackQL touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

StackQL README

From stackql/stackql on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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.

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

Contents
  1. About The Project
  2. MCP Server
  3. Installation
  4. Usage
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

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

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 the omnisdk library. For more detail on nuts and bolts, please see the local AGENTS.md file and the omnisdk developer guide.

StackQL Context Diagram
The following context diagram describes the StackQL architecture at a high level:
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 github.com/docs/high-level-design.md.

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:

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

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
GitHub Actions

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

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.

Installing on MacOS
  • Homebrew (amd64 and arm64)
    • brew install stackql or brew tap stackql/tap && brew install stackql/tap/stackql
  • MacOS PKG Installer (amd64 and arm64)
Installing on Windows
  • 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)
Installing on Linux
  • 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)
Getting StackQL from DockerHub

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.

Using StackQL with GitHub Actions

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

Usage

Caller authentication and permissions: configuration and four tested walkthroughs.

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

For provider authentication, StackQL uses the provider's default configuration when no --auth override is supplied. Set the environment variables required by the provider before running queries. For example, AWS uses AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. See provider authentication examples.

ℹ️ StackQL does not require or install a database.

  • Interactive Shell

    # run interactive stackql queries
    stackql shell
    
  • Execute a statement or file

    stackql exec -i myscript.iql --iqldata vars.jsonnet --output json
    
    # or
    
    stackql exec "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.) 
    # clients are not authenticated unless mTLS is configured via --pgsrv.tls, so keep the listener on loopback otherwise
    stackql srv --pgsrv.address=127.0.0.1
    

To override a provider's default authentication, supply an auth JSON object with --auth, for example stackql shell --auth="${AUTH}".

For more examples, please check our Blog

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.

Questions about StackQL

What is the StackQL MCP server?

SQL-native query and provisioning engine for cloud infrastructure, served over MCP. StackQL is maintained by stackql on GitHub at stackql/stackql, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the StackQL MCP server?

StackQL doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (stackql/stackql). Like most servers, StackQL ends with a command or URL you paste into your AI app's MCP config.

Does StackQL need an API key?

The registry lists no required keys for StackQL. Check the StackQL README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is StackQL an official MCP server?

No. StackQL is a community server maintained by stackql. Community servers can be excellent; read the code and the open issues before you give StackQL access to company data.

What license is StackQL under?

StackQL is released under the MIT license, according to its GitHub repository. The license covers the code of StackQL; the service it connects to has its own terms.