StackQL MCP Server
Lets your AI agent query and provision cloud and SaaS resources using SQL across 40+ providers.
1.1k stars on GitHubby StackQLLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add stackql -- npx -y @stackql/mcp-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
List my AWS EC2 instances in us-east-1 with their status.
Show all GitHub repos in my organization.
What it is
StackQL turns SQL statements into API requests to cloud and SaaS providers such as Google, AWS, Azure, Okta and GitHub. Through MCP your agent can query the state of resources and provision them with SQL. It does not require or install a database.
What it can do
- Query cloud resources with SELECT statements
- Create and change resources with SQL
- Run as an MCP server with
stackql mcp --mcp.server.type=stdio - Use
stackql execorstackql shellfor statements and files - Serve clients over the Postgres wire protocol with
stackql srv - Run read-only in CI with the GitHub Action mode
read_only
When to use
- βΊWhen you want a list of your cloud instances without opening a console
- βΊWhen you want a read-only audit of cloud resources
- βΊWhen you want an agent to provision resources and you want the steps visible as SQL
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
terraform-gcpEnables your agent to provision GCP infrastructure using Terraform. It allows configuring providers and deploying Google Cloud resources declaratively.terraform-awsEnables your agent to provision AWS infrastructure using Terraform. It allows managing resources as code, ensuring consistent and repeatable deployments.terraform-azureHelps your agent provision Azure infrastructure with Terraform. It allows configuring providers and deploying resources, implementing infrastructure as code.Frequently asked questions
Is it free and open source?
Yes. StackQL is open source under the MIT license, written in Go.
How many providers does it cover?
The readme says SQL over 40+ cloud and SaaS providers.
Does it need a database?
No. The readme says StackQL does not require or install a database.
How can I install the MCP server?
Through npm (npx), PyPI (uvx), Docker, a GitHub Action or .mcpb bundles for Linux, Windows and macOS.
Is server mode secure?
Clients are not authenticated unless mTLS is set with --pgsrv.tls, so the readme says to keep the listener on loopback otherwise.
Is there a safe mode for CI?
Yes. The GitHub Action defaults to read_only mode, described as the safe default for CI.
If it does not work
- βΊCheck that your provider credentials are set and passed with --auth.
- βΊCheck that Node.js, uv or Docker is installed for the install method you chose.
- βΊRestart your AI app fully after adding the server config.
5 new skills a week. 1 minute to read.