← 返回
未分类 Key 中文

supabase-win

Query Supabase cloud database via REST API using project ID and anon key. Use when the user needs to query their Supabase database, inspect table schemas, or...
通过项目ID和匿名密钥使用REST API查询Supabase云数据库,适用于查询数据库、检查表结构等需求。
don2ccc don2ccc 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 153
下载
💾 0
安装
1
版本
#latest

概述

Supabase Query Skill

This skill allows AI agents to query Supabase cloud database via REST API using only project ID and anon key.

Security Features

  • Cloud-native: Uses Supabase REST API, no direct database connection
  • Read-only operations: Only SELECT-style queries via HTTP GET
  • Row limit: Maximum 200 rows returned per query
  • Timeout protection: 30-second request timeout
  • Local config: Credentials stored in local .env file (not in version control)

Prerequisites

  1. Python 3.x installed
  2. Supabase project with API access enabled

Setup

  1. Copy references/.env.example to references/.env
  2. Fill in your Supabase credentials in references/.env:
    • SUPABASE_PROJECT_ID: Your Supabase project ID (from project URL)
    • SUPABASE_ANON_KEY: Your anon/public API key (from Settings → API)

Usage

Run the query script from the skill directory:

python scripts/query.py "users" --select "*" --limit 10

Or on Windows:

scripts\query.bat users --select "*" --limit 10

Output Format

The script returns JSON:

{
  "success": true,
  "table": "users",
  "rows": [...],
  "row_count": 10,
  "truncated": false
}

Error response:

{
  "success": false,
  "error": "Error message here"
}

Examples

Query all columns

python scripts/query.py "users" --select "*" --limit 20

Query specific columns with filter

python scripts/query.py "users" --select "id,name,email" --eq "status:active" --limit 10

Query with ordering

python scripts/query.py "posts" --select "title,created_at" --order "created_at.desc" --limit 5

Troubleshooting

  • "Config file not found": Create references/.env from the example file
  • "Connection failed": Check your project ID and anon key
  • "Table not found": Verify the table name and RLS policies
  • "Permission denied": Check if anon key has access to the table (RLS settings)

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-12 06:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Docker Essentials

arnarsson
核心 Docker 命令和工作流程,包括容器管理、镜像操作和调试。
★ 38 📥 32,695
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,243
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,137