StackQL MCP Server
SQL-native query and provisioning engine for cloud infrastructure, served over MCP.
StackQL MCP Server scores 77 (Good), licensed MIT and written in Go. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 1,145 stars. Package registries report about 200 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
77 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 77 comes from
22 + 20 + 14 + 10 + 4 + 7 = 77. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 14 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "stackql-stackql": { "command": "npx", "args": [ "-y", "https://github.com/stackql/stackql/releases/download/v1.1.959/stackql-mcp-linux-x64.mcpb" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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
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.
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.
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:
{
"mcpServers": {
"stackql": {
"command": "npx",
"args": ["-y", "@stackql/mcp-server"]
}
}
}
{
"mcpServers": {
"stackql": {
"command": "uvx",
"args": ["stackql-mcp-server"]
}
}
}
{
"mcpServers": {
"stackql": {
"command": "docker",
"args": ["run", "-i", "--rm", "stackql/stackql-mcp"]
}
}
}
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.mcpbstackql-mcp-linux-arm64.mcpbstackql-mcp-windows-x64.mcpbstackql-mcp-darwin-universal.mcpb
Wire StackQL MCP into agentic CI workflows. Defaults to
read_onlymode, 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.
- Homebrew (
amd64andarm64)brew install stackqlorbrew tap stackql/tap && brew install stackql/tap/stackql
- MacOS PKG Installer (
amd64andarm64)- download the latest MacOS PKG installer for StackQL
- run the installer and follow the prompts
- MSI Installer
- download the latest MSI installer for StackQL
- run the installer and follow the prompts
- Chocolatey
- install Chocolatey
- run
choco install stackql
- ZIP Archive
- download the latest Windows ZIP archive for StackQL
- extract the archive (code signed
stackql.exefile) to a directory of your choice - add the directory to your
PATHenvironment variable (optional)
- ZIP Archive
- download the latest Linux ZIP archive for StackQL
- or via
curl -L https://bit.ly/stackql-zip -O && unzip stackql-zip
- or via
- extract the archive (
stackqlfile) to a directory of your choice - add the directory to your
PATHenvironment variable (optional)
- download the latest Linux ZIP archive for StackQL
View all available StackQL images on DockerHub. Images available include
stackql,stackql-jupyter-demoand 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.
Use StackQL in your GitHub Actions workflows to automate cloud infrastructure provisioning, IaC assurance, or compliance/security. Available GitHub Actions include:
setup-stackql,stackql-execand 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,tableandtextare available for theexeccommand using the--outputflagℹ️ StackQL supports passing parameters using
jsonnetorjson, 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:
- vitess
- kin-openapi
- gorilla/mux
- readline
- psql-wire
- mcp-postgres
- the
golangMCP SDK - ...and more. Please excuse us for any omissions.
We gratefully acknowledge these pieces of work.
Frequently asked questions
What is StackQL MCP Server?
SQL-native query and provisioning engine for cloud infrastructure, served over MCP.
How do I install StackQL MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. StackQL MCP Server runs locally from the MCP bundle https://github.com/stackql/stackql/releases/download/v1.1.959/stackql-mcp-linux-x64.mcpb with the command npx -y https://github.com/stackql/stackql/releases/download/v1.1.959/stackql-mcp-linux-x64.mcpb.
Is StackQL MCP Server free and open source?
Yes. StackQL MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does StackQL MCP Server support remote (HTTP) connections?
No remote endpoint is listed for StackQL MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is StackQL MCP Server's trust score calculated?
StackQL MCP Server scores 77 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
