Skip to content
Skillpedia
βœ“ Official Β· StackQL● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyCloud and servers

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 exec or stackql shell for 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

You need credentials for the cloud providers you want to reach, passed with the --auth option. The server runs with npx @stackql/mcp-server, uvx stackql-mcp-server, Docker, or a downloaded .mcpb bundle.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.