StackQL MCP Server — Claude Code MCP server
This MCP server exposes StackQL to an agent for SQL-based queries and provisioning across cloud resources and APIs. Use it to inspect or change infrastructure from a coding session.
claude mcp add stackql-mcp -- npx -y @stackql/mcp-serverWhat StackQL MCP Server does
StackQL MCP Server connects an agent to StackQL, an engine that manages and queries service and resource state through SQL semantics. StackQL parses a statement, turns it into an API request for the selected provider, then returns the result. The project covers cloud and SaaS interfaces such as Google, AWS, Azure, Okta, and GitHub.
The server runs as @stackql/mcp-server through npx. StackQL itself can run as a standalone application in exec, shell, or srv mode; the latter accepts a PostgreSQL wire protocol client. Because setup starts the package with npx, that command must be available in the environment.
What it helps with
- query cloud resource state with SQL
- create or modify provider resources
- retrieve records from cloud and SaaS APIs
- inspect infrastructure from an agent chat
Example prompts for the agent
- Check AWS resource state and present the result as a table.
- Write a StackQL query that finds Azure resources with a given property.
- Fetch GitHub data through StackQL and explain the records you find.
How to install StackQL MCP Server
Platform CLI
claude mcp add stackql-mcp -- npx -y @stackql/mcp-serverPlatform CLI
codex mcp add stackql-mcp-server -- npx -y @stackql/mcp-serverConfig file
{
"mcpServers": {
"stackql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@stackql/mcp-server"
]
}
}
}Config file
{
"servers": {
"stackql-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@stackql/mcp-server"
]
}
}
}Platform CLI
gemini mcp add stackql-mcp-server npx -y @stackql/mcp-serverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about StackQL MCP Server
How do I install StackQL MCP Server in Claude Code?
Run claude mcp add stackql-mcp -- npx -y @stackql/mcp-server.
What does StackQL MCP Server do?
It connects StackQL to an agent through MCP. The agent can send SQL queries, which StackQL translates into API requests for cloud and SaaS providers.
Which platforms support StackQL MCP Server?
It can be connected to Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, and Zed.