
StackQL MCP Server: Setup for Claude, Cursor and Other Apps
Lets Claude and Cursor query and manage AWS, Azure, Google, GitHub and other cloud services by writing SQL.
StackQL MCP is the StackQL project's own server. It turns cloud and SaaS APIs into tables, so the assistant can answer questions with SQL queries, such as which buckets are public or which instances run in a region. It can also change resources with INSERT, UPDATE and DELETE, and start or stop things with EXEC.
It runs on your computer and uses the cloud credentials you give it. Mutations ask for your approval by default, but only in apps that can show the prompt, so check how your app behaves before trusting it.
Good for
- Cloud and platform engineers who want to inventory resources across providers
- Security teams running read-only audits for public exposure or IAM review
- Developers who already know SQL and want it to be the interface to cloud APIs
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install StackQL MCP
Claude Code
- 1
Copy this prompt.
Add the StackQL MCP server to Claude Code. Run this command: claude mcp add stackql -- npx -y @stackql/mcp-server Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
Built from the package data we hold. Not yet tested by us.
Tools
Runs a SQL SELECT against a cloud or SaaS provider
Executes a SELECT written in StackQL's SQL dialect and returns the rows. It reads live data from the provider using your credentials.
Try: “List the names of all Google Compute networks in project stackql-demo.”
Network ·
run_select_queryLists the cloud and SaaS providers available
Returns the providers you can query, at the top of the provider, service, resource hierarchy.
Try: “Which providers can StackQL query?”
Read ·
list_providersLists the services under a provider
Returns the services for one provider, such as compute or storage.
Try: “What services does the google provider have?”
Read ·
list_servicesLists the resources under a service
Returns the resources for a provider and service, such as networks or instances.
Try: “List the resources in google compute.”
Read ·
list_resourcesLists the ways to read or change a resource
Returns each access method for a resource with its SQL verb and required parameters. The tool text says to call it before writing a query.
Try: “Show the methods for google.compute.networks.”
Read ·
list_methodsDescribes the inputs and output fields of one method
Returns the inputs and the output fields a SELECT can use for a single method.
Try: “Describe the get method on google.compute.networks.”
Read ·
describe_methodChecks a SELECT without running it
Parses and plans the query and returns whether it is valid, with any errors.
Try: “Validate this query before you run it.”
Read ·
validate_select_queryRuns INSERT, UPDATE, REPLACE or DELETE on real resources
Executes a change statement against the provider. It has real side effects. The default mode asks you to approve each one, and refuses if your app cannot show the prompt.
Try: “Delete the network returning-test-03 in project stackql-demo.”
Delete ·
run_mutation_queryRuns an EXEC action such as starting an instance
Executes a StackQL EXEC statement, for example starting a virtual machine. It follows the same approval rules as changes.
Try: “Start the instance demo in us-central1-a.”
Write ·
run_lifecycle_operationLists providers and versions in the registry
Returns the providers and versions available to install, or the versions of one provider.
Try: “Which versions of the aws provider can I pull?”
Network ·
list_registryInstalls a provider into the local cache
Downloads a provider from the registry into the local StackQL folder. It writes only to that local cache.
Try: “Pull the github provider.”
Write ·
pull_providerReloads credentials from the env file
Reads the credentials file again, clears cached sign-ins and reports which providers now resolve. It never returns secret values.
Try: “Reload my credentials and tell me which providers work.”
Files ·
reload_credentialsSearches a library of ready-made queries
Finds curated example queries from a plain-language intent, optionally filtered by provider, service or tag.
Try: “Find a query that lists public storage buckets.”
Read ·
query_library_searchGets one library query, filled in with your values
Returns a library entry and, given parameters, the SQL to run and the tool to run it with.
Try: “Get the library query for open security groups.”
Read ·
query_library_getShows server version, mode and settings
Returns the StackQL version, backing engine, registry location, mode and read-only flag. The docs say to call it once at session start.
Try: “What mode is the StackQL server in?”
Read ·
server_info
Read from the source code
Permissions
high risk · 6 things to watch
High risk
The assistant can read, change and delete resources in the cloud accounts you connect, using your credentials. Start in read-only mode with a limited-permission account, and move to approvals only when you need changes.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only modeHow to turn it on
Watch out for
It can change and delete cloud resources
run_mutation_query and run_lifecycle_operation can create, update and delete resources and run EXEC actions with your credentials. The default safe mode asks you to approve each one, but only in apps that can show that prompt. github.com
It acts with your cloud permissions
The server uses whatever access the credentials you provide have. Use credentials that are limited to what you want it to reach. github.com
Approval depends on the app being honest
The docs say safe mode trusts the client to show the prompt to a person and report the answer faithfully. A client that approves its own prompt defeats it. github.com
full_access mode removes approvals
This opt-in mode runs every change and EXEC with no prompt. The docs say to use it only when the client and operator are trusted. It is not the default. github.com
First run downloads a binary
The npm launcher downloads the StackQL binary from the project's GitHub release and checks its SHA-256 against values built into the package. It caches it under ~/.stackql/mcp-server-bin. registry.npmjs.org
The launcher turns the audit log off
The npm launcher passes a setting that disables the audit file the server writes by default, so there is no record of what the agent ran. Turn it back on in the config if you want one. registry.npmjs.org
Security advisories
No published security advisories as of Nov 1, 2026.
Technical details
| Turning on read-only | Pass --mcp.config with {"server":{"mode":"read_only","audit":{"disabled":true}}} after the package name. In read_only mode changes and EXEC are refused. |
|---|---|
| Talks to | The cloud and SaaS APIs you query. GitHub releases (first-run binary download). The StackQL provider registry |
| Sign-in and keys | Credentials come from provider environment variables or a credentials file you set with --env.file, which is created with owner-only permissions. Secret values are not returned or logged. |
Questions
Is it official?
Yes. It is made by the StackQL project and ships from its own repository and npm package.
Can it delete my cloud resources?
Yes. A delete statement can run through the mutation tool. In the default safe mode it needs your approval, and in read-only mode it is refused.
How do I make it read-only?
Pass a server config after the package name in your client config, with mode set to read_only. The permissions section above shows the exact setting.
What if my app cannot show approval prompts?
Then changes are refused in safe mode. The docs say the server tells you to switch to full access mode, which removes all approvals, so avoid that unless you trust the client.
Do I need an API key?
You need credentials for each provider you query. GitHub can be queried without credentials, and the docs use it for the guided tour.
Which providers does it support?
AWS, Azure, Google, GitHub, Databricks and others. The list_registry tool shows what is available.
How do I add it to Claude?
Use the Claude Code or Claude Desktop tab in the install box above. The docs also mention a one-click .mcpb bundle for Claude Desktop.
Is the tool list complete?
Yes. The docs list 15 tools. Seven prompts and four reference resources come with them.
Information
updated Nov 2, 2026
- Publisher
- Official
- Package
@stackql/mcp-server- Registry
- npm
- Transport
- stdio
- Version
- 0.12.824
- License
- MIT
- Last commit
- Oct 31, 2026
- Open issues
- 110
- Listed in
- Official MCP registry
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 2Hide
- StackQL docs/mcp.md (v0.12.824) · github.com
- @stackql/mcp-server 0.12.824 launcher · registry.npmjs.org