
Data Studio
io.github.geek-fun由 GitHub 账号 geek-fun 发布v0.1.12更新于 Nov 3, 2026
Unified MCP server for SQL and NoSQL databases, powered by dockit and sqlkit desktop apps
概览
本地 MCP 服务器,让 AI 编程助手通过 dockit 和 sqlkit 桌面应用浏览并查询 SQL 与 NoSQL 数据库。
- 可以做什么
- 列出连接、数据库、模式、表、视图、索引、键、存储过程与函数,读取 DDL 或解释查询
- 通过 sqlkit 在 70 多种 SQL 数据库上执行 SELECT 查询,查看会话与慢查询
- 在 Elasticsearch 和 OpenSearch 中搜索、读取、计数,并查看映射、别名、节点与分片
- 在 MongoDB 中查找、聚合、计数、抽样,并查看统计信息与索引
- 在 DynamoDB 中查询、扫描、描述表,并查看备份、TTL 与指标
- 写入、更新、创建、授权或回收权限,以及删除或丢弃对象,受权限模式与确认提示约束
- 适用场景
- 适合希望用自然语言让 AI 助手读取表结构并查询自有数据库的场景,覆盖多种 SQL 引擎以及 Elasticsearch、MongoDB、DynamoDB,且无需把凭据粘贴到提示词中。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行,需要 Node.js 与 npx。必须安装并启动 dockit 和/或 sqlkit 桌面应用,添加数据库连接,并启用 MCP Bridge 自动启动;桥接仅监听本机。未声明任何 API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Data Studio,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Data Studio Agent
Let your AI coding agent securely access all your databases, in plain language.
Local-first. Enterprise-grade security. Open source.
[Release] [Downloads] [npm] [License] [Stars] [CI] [MCP Toplist]
[Ask your database in plain language — live demo]
📖 Product Page · npm · dockit · sqlkit · Releases
English · 简体中文
This repository contains the Data Studio MCP Server, a Model Context Protocol server that gives AI coding agents direct access to your databases through the dockit and sqlkit desktop apps.
- SQL (via sqlkit): 70+ databases (PostgreSQL, MySQL, SQL Server, Oracle, SQLite, DuckDB, ClickHouse, Snowflake, BigQuery, and more)
- NoSQL (via dockit): Elasticsearch, OpenSearch, MongoDB, DynamoDB
Features
- Any AI coding agent. Claude Code, Cursor, Windsurf, OpenCode, Codex, Cline, Pi, Qoder, GitHub Copilot, or any MCP client.
- Any OS. macOS, Windows, Linux.
- Any LLM model. Bring your own provider. No lock-in.
- One MCP server, one config. Routes to both SqlKit (SQL) and DocKit (NoSQL) bridges over localhost.
- Enterprise-grade security. See below.
Quick start
1. Prerequisites
Install and launch dockit and/or sqlkit, add a database connection, and make sure Settings → MCP Bridge → Auto-start is enabled (it is by default). Install both apps for the full SQL + NoSQL tool set.
2. Install the MCP server
Or run it without installing (npx downloads it on first run):
3. Add it to your AI tool
OpenAI Codex, one command:
Claude Code, one command:
Cursor. Create .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Windsurf. Create ~/.codeium/windsurf/mcp_config.json (global only):
OpenCode. Add to opencode.json (project) or ~/.config/opencode/opencode.json (global):
DeepSeek Harness. Save the overlay as data-studio.cordis.yml:
Run dsh web --patch "$PWD/data-studio.cordis.yml", or merge the insert patch into $DSH_HOME/cordis.patch.yml to keep it across runs. Tools appear as mcp__data-studio__* (DSH is developer preview — its config surface may change).
WorkBuddy / CodeBuddy CLI. One command:
Or add the same mcpServers JSON shown for Cursor above to the project-level .mcp.json (~/.codebuddy/.mcp.json for user scope).
Any other MCP client. Register a stdio server with command npx and args -y @geek-fun/data-studio-mcp.
4. Tune permissions (optional)
Open Settings → MCP Bridge in dockit/sqlkit to control what the agent can do:
5. Start asking
Use plain language. The agent queries your databases for you:
- "List all tables in my PostgreSQL database"
- "Show me the last 10 orders from the Elasticsearch index
orders*" - "Find all users older than 30 in MongoDB"
- "Run this query and explain the results"
The agent reads schemas, runs queries, and explores your data, then shows you every query it executed.
Enterprise-grade security
The LLM gets broad access to your data, but it never sees your credentials. The policy model gates every capability by risk level.
- Credentials never leave the apps. The LLM only ever sees an opaque
connection_id. Real credentials are resolved inside dockit/sqlkit and never cross the MCP boundary. Your passwords and keys stay on your machine, in your app. - ID-based resource access. Agents access databases strictly by connection ID. Credentials never appear in prompts or tool arguments, so there is no path for the model to obtain or exfiltrate connection secrets.
- Three-tier permission model. Read Only / Data Read-Write / Full Access modes gate every capability by risk level, with per-connection overrides. You can mark any connection read-only or allowlist specific actions.
- Explicit user confirmation. Destructive operations (DELETE, DROP, TRUNCATE) surface as
Askin the policy. The client prompts the user for explicit confirmation before anything destructive runs. - Action-level statement classification. SQL is parsed and classified by statement kind (Read / Write / Delete / DDL) before execution. Write-only tools reject DELETE statements; delete tools reject DDL.
- Local-only bridge. The bridge binds to
127.0.0.1exclusively. It is unreachable from other machines, with no server to host and no API keys to manage.
Tools
All tools follow the data_studio__{app}__{backend}__{action} convention: app is the desktop app exposing the bridge (sqlkit or dockit), and backend is the data source behind it (sqlkit, es, mongo, dynamo). The two server-level tools (data_studio__list_connections, data_studio__get_status) have no app segment. The User confirmation column shows which operations surface an explicit confirmation prompt in your AI client before they run.
The exact tool set advertised at runtime depends on your apps' permission mode and configured connections — call data_studio__get_status to see what is currently available.
How it works
The MCP server is a thin routing layer. All database drivers, SSH tunnels, and connection management live in the desktop apps, which expose a local HTTP bridge (127.0.0.1 only). The MCP server auto-discovers running backends via each app's port file.
For developers
This repository also contains the data-studio-agent Rust framework, the shared AI agent loop (provider adapters, streaming, tool calling, context compaction) that powers the built-in assistants in dockit and sqlkit.
See crates/data-studio-agent/README.md for installation, architecture, and integration guides.
License
Apache 2.0. See LICENSE.
来源:README.md,提交 c3f962b
工具
0版本历史
1- v0.1.12最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分