Stackql

v1.0.0Cloud Servicesstable

Query, provision and operate Cloud and SaaS resources and APIs using an extensible SQL based framework

asset-managementcloudcloud-automationcloud-configcloud-operations
Share:
843
Stars
0
Downloads
0
Weekly
0/5

What is Stackql?

Stackql is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to query, provision and operate cloud and saas resources and apis using an extensible sql based framework

Query, provision and operate Cloud and SaaS resources and APIs using an extensible SQL based framework

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Query, provision and operate Cloud and SaaS resources and AP

Use Cases

SQL-based cloud and SaaS resource management
Infrastructure automation and CSPM operations
stackql

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx stackql

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Stackql

StackQL is an open-source SQL framework that lets AI agents query, provision, and operate cloud and SaaS resources across AWS, GCP, Azure, GitHub, Okta, and dozens more providers using familiar SQL syntax. The engine translates SQL statements into the appropriate cloud provider API calls, so agents can write 'SELECT id, status FROM aws.ec2.instances WHERE region = us-east-1' without learning each provider's REST API. This makes StackQL a powerful tool for cloud security posture management (CSPM), infrastructure auditing, and DevSecOps automation driven by natural language.

Prerequisites

  • StackQL binary installed (Homebrew, Chocolatey, or direct download)
  • Cloud provider credentials configured for the providers you want to query (e.g. AWS credentials via environment variables or ~/.aws/credentials)
  • An MCP-compatible client such as Claude Desktop or Cursor (if using StackQL as an MCP server)
  • Docker (optional, for running StackQL in a container)
1

Install StackQL

Install StackQL using your operating system's package manager, or download the binary directly.

# macOS
brew install stackql

# Windows (Chocolatey)
choco install stackql

# Linux
curl -L https://bit.ly/stackql-zip -O && unzip stackql-zip

# Docker
docker pull stackql/stackql
2

Configure cloud provider authentication

Set up credentials for the cloud providers you want to query. StackQL accepts provider-specific auth configuration via the --auth flag as a JSON string.

# AWS example: set standard AWS env vars
export AWS_ACCESS_KEY_ID="AKIA..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_DEFAULT_REGION="us-east-1"

# Then pass to stackql
export AUTH='{"aws": {"type": "env", "credentialsenvvar": "AWS_SECRET_ACCESS_KEY", "keyIDenvvar": "AWS_ACCESS_KEY_ID"}}'  
3

Test with an interactive shell query

Launch the interactive StackQL shell and run a test query against your cloud provider to confirm authentication is working.

stackql shell --auth="${AUTH}"

-- Inside the shell:
SELECT id, instance_type, state FROM aws.ec2.instances WHERE region = 'us-east-1';
4

Configure StackQL as an MCP server

Add StackQL to your MCP client configuration. StackQL can be invoked as a command-line process that accepts SQL queries from the MCP protocol.

{
  "mcpServers": {
    "stackql": {
      "command": "stackql",
      "args": ["srv", "--auth", "${AUTH}"],
      "env": {
        "AWS_ACCESS_KEY_ID": "AKIA...",
        "AWS_SECRET_ACCESS_KEY": "...",
        "AWS_DEFAULT_REGION": "us-east-1"
      }
    }
  }
}
5

Restart your MCP client and run a cloud query

Restart the client and ask the AI to query your cloud resources. StackQL will translate the SQL to API calls and return structured results.

Stackql Examples

Client configuration

Claude Desktop config launching StackQL in server mode with AWS credentials from environment variables.

{
  "mcpServers": {
    "stackql": {
      "command": "stackql",
      "args": ["srv"],
      "env": {
        "AWS_ACCESS_KEY_ID": "AKIA...",
        "AWS_SECRET_ACCESS_KEY": "...",
        "AWS_DEFAULT_REGION": "us-east-1"
      }
    }
  }
}

Prompts to try

Use these prompts once StackQL is connected to your MCP client.

- "List all running EC2 instances in us-east-1 and show their instance type and state."
- "Find all S3 buckets that do not have server-side encryption enabled."
- "Show me all IAM users who have not logged in for more than 90 days."
- "List all open GitHub issues in the stackql/stackql repository."
- "Query all GCP compute instances across all zones and export to a table."

Troubleshooting Stackql

stackql command not found after installation

On macOS, run 'brew link stackql' or ensure /usr/local/bin is in your PATH. On Linux, move the extracted binary to /usr/local/bin: 'sudo mv stackql /usr/local/bin/'.

Authentication errors when querying AWS resources

Verify your AWS credentials are valid with 'aws sts get-caller-identity'. Ensure the --auth JSON structure matches the StackQL provider spec for AWS. Consult the StackQL docs at https://stackql.io/docs for the exact auth schema per provider.

SQL query returns no rows when resources clearly exist

Check the region filter in your WHERE clause — StackQL requires explicit region scoping for most AWS resources. Run 'SHOW SERVICES IN aws;' inside the shell to confirm the provider is loaded correctly.

Frequently Asked Questions about Stackql

What is Stackql?

Stackql is a Model Context Protocol (MCP) server that query, provision and operate cloud and saas resources and apis using an extensible sql based framework It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Stackql?

Follow the installation instructions on the Stackql GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Stackql?

Stackql works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Stackql free to use?

Yes, Stackql is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "stackql": { "command": "npx", "args": ["-y", "stackql"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Stackql?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides