stackql

stackql

Open source SQL-native query and provisioning engine for cloud and SaaS infrastructure. Ships as a single signed binary with MCP tools for provider discovery, schema exploration, queries, and lifecycle operations.

Category
访问服务器

README

<!-- web assets --> [logo]: https://stackql.io/img/stackql-logo-bold.png "stackql logo" [homepage]: https://stackql.io/ [docs]: https://stackql.io/docs [blog]: https://stackql.io/blog [registry]: https://github.com/stackql/stackql-provider-registry [variables]: https://stackql.io/docs/getting-started/variables [macpkg]: https://storage.googleapis.com/stackql-public-releases/latest/stackql_darwin_multiarch.pkg [winmsi]: https://releases.stackql.io/stackql/latest/stackql_windows_amd64.msi [winzip]: https://releases.stackql.io/stackql/latest/stackql_windows_amd64.zip [tuxzip]: https://releases.stackql.io/stackql/latest/stackql_linux_amd64.zip <!-- docker links --> [dockerhub]: https://hub.docker.com/u/stackql [dockerstackql]: https://hub.docker.com/r/stackql/stackql [dockerjupyter]: https://hub.docker.com/r/stackql/stackql-jupyter-demo <!-- github actions links --> [setupaction]: https://github.com/marketplace/actions/stackql-studios-setup-stackql [execaction]: https://github.com/marketplace/actions/stackql-studios-stackql-exec <!-- badges --> [badge1]: https://img.shields.io/badge/platform-windows%20macos%20linux-brightgreen "Platforms" [badge2]: https://github.com/stackql/stackql/workflows/Go/badge.svg "Go" [badge3]: https://img.shields.io/github/license/stackql/stackql "License" [badge4]: https://img.shields.io/tokei/lines/github/stackql/stackql "Lines"
<!-- github links --> [issues]: https://github.com/stackql/stackql/issues/new?assignees=&labels=bug&template=bug_report.md&title=%5BBUG%5D [features]: https://github.com/stackql/stackql/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=%5BFEATURE%5D [developers]: /docs/developer_guide.md [registrycont]: /docs/registry_contribution.md [designdocs]: /docs/high-level-design.md [contributing]: /CONTRIBUTING.md [discussions]: https://github.com/orgs/stackql/discussions <!-- repo assets --> [darkmodeterm]: /docs/images/stackql-light-term.gif#gh-dark-mode-only [lightmodeterm]: /docs/images/stackql-dark-term.gif#gh-light-mode-only <!-- misc links --> [twitter]: https://twitter.com/stackql

<!-- language: lang-none --> <div align="center">

[![logo]][homepage]
![badge1] ![badge2] ![badge3] ![badge4]

</div>

<div align="center">

homebrew downloads homebrew version GitHub Downloads (all assets, all releases) GitHub Release Docker Pulls Docker Image Version Chocolatey Downloads Chocolatey Version PyPI - Downloads

</div> <div align="center">

Deploy, manage and query cloud resources and interact with APIs using SQL

<!-- <h3 align="center">SQL based XOps, observability and middleware framework</h3> -->

<p align="center">

[Read the docs »][docs]
[Raise an Issue][issues] · [Request a Feature][features] · [Developer Guide][developers] · [BYO Providers][registrycont]

</p> </div>

<details open="open"> <summary>Contents</summary> <ol> <li><a href="#about-the-project">About The Project</a></li> <li><a href="#installation">Installation</a></li> <li><a href="#usage">Usage</a></li> <!-- <li><a href="#roadmap">Roadmap</a></li> --> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#acknowledgements">Acknowledgements</a></li> </ol> </details>

About The Project

[StackQL][homepage] is an open-source project built with Golang that allows you to create, modify and query the state of services and resources across different local and remote interfaces, using SQL semantics. Such interfaces canonically include, but are not limited to, cloud and SaaS providers (Google, AWS, Azure, Okta, GitHub, etc.). <br /> <br />

![stackql-shell][darkmodeterm] ![stackql-shell][lightmodeterm]

How it works

StackQL is a standalone application that can be used in client mode (via exec or shell) or accessed via a Postgres wire protocol client (psycopg2, etc.) using server mode (srv).

StackQL parses SQL statements and transpiles them into API requests to the (cloud) resource provider. The API calls are then executed and the results are returned to the user.

StackQL provider interfaces are canonically defined in OpenAPI extensions to the providers' specification. These definitions are then used to generate the SQL schema and the API client. The source for the provider definitions are stored in the [StackQL Registry][registry]. The semantics of provider interactions are defined in our any-sdk library. For more detail on nuts and bolts, please see the local AGENTS.md file and that of any-sdk.

<details> <summary><b>StackQL Context Diagram</b></summary> <br /> The following context diagram describes the StackQL architecture at a high level:

<!-- StackQL Context Diagram -->

flowchart LR
  subgraph StackQL
    direction BT
    subgraph ProviderDefs
        Registry[Provider Registry Docs]    
    end
    subgraph App
        Proc[$ stackql exec\n$ stackql shell\n$ stackql srv]
        style Proc fill:#000,stroke:#000,color:#fff,text-align:left;

        %% ,font-family:'Courier New', Courier, monospace
    end
  end
  User((User)) <--> StackQL <--> Provider[Cloud Provider API]
  ProviderDefs --> App

More detailed design documentation can be found in the [here][designdocs].

</details>

Installation

StackQL is available for Windows, MacOS, Linux, Docker, GitHub Actions and more. See the installation instructions below for your platform.

<details> <summary><b>Installing on MacOS</b></summary>

  • Homebrew (amd64 and arm64)
    • brew install stackql or brew tap stackql/tap && brew install stackql/tap/stackql
  • MacOS PKG Installer (amd64 and arm64)
    • download the latest [MacOS PKG installer for StackQL][macpkg]
    • run the installer and follow the prompts

</details>

<details> <summary><b>Installing on Windows</b></summary>

  • MSI Installer
    • download the latest [MSI installer for StackQL][winmsi]
    • run the installer and follow the prompts
  • Chocolatey
  • ZIP Archive
    • download the latest [Windows ZIP archive for StackQL][winzip]
    • extract the archive (code signed stackql.exe file) to a directory of your choice
    • add the directory to your PATH environment variable (optional)

</details>

<details> <summary><b>Installing on Linux</b></summary>

  • ZIP Archive
    • download the latest [Linux ZIP archive for StackQL][tuxzip]
      • or via curl -L https://bit.ly/stackql-zip -O && unzip stackql-zip
    • extract the archive (stackql file) to a directory of your choice
    • add the directory to your PATH environment variable (optional)

</details>

<details> <summary><b>Getting StackQL from DockerHub</b></summary>

View all available StackQL images on [DockerHub][dockerhub]. Images available include [stackql][dockerstackql], [stackql-jupyter-demo][dockerjupyter] and more. Pull the latest StackQL base image using:

docker pull stackql/stackql

</details>

<details> <summary><b>Using StackQL with GitHub Actions</b></summary>

Use StackQL in your GitHub Actions workflows to automate cloud infrastructure provisioning, IaC assurance, or compliance/security. Available GitHub Actions include: [setup-stackql][setupaction], [stackql-exec][execaction] and more

</details>

Usage

StackQL can be used via the interactive REPL shell, or via the exec command or ran as a server using the Postgres wire protocol.

ℹ️ StackQL does not require or install a database.

  • Interactive Shell

    # run interactive stackql queries
    stackql shell --auth="${AUTH}"
    
  • Execute a statement or file

    stackql exec --auth="${AUTH}" -i myscript.iql --iqldata vars.jsonnet --output json
    
    # or
    
    stackql exec --auth="${AUTH}" "SELECT id, status FROM aws.ec2.instances WHERE region = 'us-east-1'"
    

    ℹ️ output options of json, csv, table and text are available for the exec command using the --output flag

    ℹ️ StackQL supports passing parameters using jsonnet or json, see [Using Variables][variables]

  • Server

    # serve client requests over the Postgres wire protocol (psycopg2, etc.) 
    stackql srv --auth="${AUTH}"
    

For more examples, please check our [Blog][blog]

<!-- ## Roadmap

See our roadmap to see where we are going with the project. -->

Contributing

Contributions are welcome and encouraged. For more information on how to contribute, please see our [contributing guide][contributing].

License

Distributed under the MIT License. See LICENSE for more information. Licenses for third party software we are using are included in the /docs/licenses directory.

Contact

Get in touch with us via Twitter at [@stackql][twitter], email us at info@stackql.io or start a conversation using [discussions][discussions].

Acknowledgements

Forks of the following support our work:

We gratefully acknowledge these pieces of work.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选