# StackQL MCP server

> Allows AI agents to query and provision cloud and SaaS resources across dozens of providers using SQL semantics.

- Repository: https://github.com/stackql/stackql
- Page: https://hostedmcp.org/servers/stackql/stackql
- Transport: stdio
- Stars: 1080
- License: MIT
- Latest version: 1.0.888

## Install

### Claude Code

```sh
claude mcp add stackql -- docker run -i --rm docker.io/stackql/stackql-mcp:1.0.888
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "stackql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stackql/stackql-mcp:1.0.888"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "stackql": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stackql/stackql-mcp:1.0.888"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "stackql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stackql/stackql-mcp:1.0.888"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.stackql]
command = "docker"
args = ["run", "-i", "--rm", "docker.io/stackql/stackql-mcp:1.0.888"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "stackql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stackql/stackql-mcp:1.0.888"
      ]
    }
  }
}
```

## FAQ

### How does StackQL work with cloud providers?

It parses SQL statements and transpiles them into API requests for the resource provider, then executes those calls and returns the results.

### Can I use StackQL in my CI/CD workflows?

Yes, you can wire StackQL MCP into agentic CI workflows using GitHub Actions, which defaults to a safe read-only mode.
