PlugWiki
StackQL MCP Server logo

StackQL MCP Server: Setup for Claude, Cursor and Other Apps

OfficialLocal
Getnpm@stackql/mcp-serverstackql/stackqlDocs

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.

Install StackQL MCP

Claude Code

  1. 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. 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_query

  • Lists 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_providers

  • Lists 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_services

  • Lists 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_resources

  • Lists 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_methods

  • Describes 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_method

  • Checks 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_query

  • Runs 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_query

  • Runs 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_operation

  • Lists 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_registry

  • Installs 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_provider

  • Reloads 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_credentials

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

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-onlyPass --mcp.config with {"server":{"mode":"read_only","audit":{"disabled":true}}} after the package name. In read_only mode changes and EXEC are refused.
Talks toThe cloud and SaaS APIs you query. GitHub releases (first-run binary download). The StackQL provider registry
Sign-in and keysCredentials 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

WebsiteDocsGitHubnpmOfficial MCP RegistryChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. StackQL docs/mcp.md (v0.12.824) · github.com
  2. @stackql/mcp-server 0.12.824 launcher · registry.npmjs.org

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.