Data Studio MCP Server
Enables AI coding agents to securely access 70+ SQL and NoSQL databases via dockit and sqlkit, using plain language queries. It provides a three-tier permission model and never exposes credentials to the LLM.
README
<div align="center">
<img src="docs/images/data-studio-agent.svg" width="96" height="96" alt="Data Studio Agent logo" />
Data Studio Agent
Let your AI coding agent securely access all your databases, in plain language.
Local-first. Enterprise-grade security. Open source.
<p> <img src="https://img.shields.io/badge/SQL-70%2B%20databases%20via%20SqlKit-336791"/> <img src="https://img.shields.io/badge/NoSQL-Elasticsearch%20%7C%20OpenSearch%20%7C%20MongoDB%20%7C%20DynamoDB-47A248"/> <img src="https://img.shields.io/badge/MCP-000000&logo=modelcontextprotocol&logoColor=white"/> <img src="https://img.shields.io/badge/Claude%20Code%20%7C%20Cursor%20%7C%20OpenCode%20%7C%20Codex%20%7C%20Cline-7C3AED"/> </p>
<p align="center"> <img src="docs/images/data-studio-terminal.gif" alt="Ask your database in plain language — live demo" width="720"/> </p>
📖 Product Page · npm · dockit · sqlkit · Releases
English · 简体中文
</div>
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
npm install -g @geek-fun/data-studio-mcp
Or run it without installing (npx downloads it on first run):
npx -y @geek-fun/data-studio-mcp
3. Add it to your AI tool
OpenAI Codex, one command:
codex mcp add data-studio -- npx -y @geek-fun/data-studio-mcp
Claude Code, one command:
claude mcp add --transport stdio data-studio -- npx -y @geek-fun/data-studio-mcp
Cursor. Create .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"data-studio": {
"command": "npx",
"args": ["-y", "@geek-fun/data-studio-mcp"]
}
}
}
Windsurf. Create ~/.codeium/windsurf/mcp_config.json (global only):
{
"mcpServers": {
"data-studio": {
"command": "npx",
"args": ["-y", "@geek-fun/data-studio-mcp"]
}
}
}
OpenCode. Add to opencode.json (project) or ~/.config/opencode/opencode.json (global):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"data-studio": {
"type": "local",
"command": ["npx", "-y", "@geek-fun/data-studio-mcp"],
"enabled": true
}
}
}
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:
| Permission mode | What the agent can do |
|---|---|
| Read Only (default) | Explore schemas, run SELECT queries. No writes. |
| Data Read/Write | INSERT, UPDATE, index operations. No deletes/drops. |
| Full Access | Everything, including DELETE, DROP, TRUNCATE. |
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.
Tool reference
All tools follow the data_studio__{backend}__{action} convention. The User confirmation column shows which operations surface an explicit confirmation prompt in your AI client before they run.
| Tool | Backend | Risk | Requires permission | User confirmation |
|---|---|---|---|---|
data_studio__list_connections |
Server | 🟢 Safe | Read Only | No |
data_studio__get_status |
Server | 🟢 Safe | Read Only | No |
data_studio__sqlkit__list_connections |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__execute_query |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__list_databases |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__list_schemas |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__list_tables |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__get_schema |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__describe_table |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__explain_query |
sqlkit | 🟢 Safe | Read Only | No |
data_studio__sqlkit__execute_write |
sqlkit | 🟡 Elevated | Data Read-Write | No |
data_studio__sqlkit__execute_delete |
sqlkit | 🔴 Destructive | Full Access | Yes |
data_studio__sqlkit__execute_ddl |
sqlkit | 🔴 Destructive | Full Access | Yes |
data_studio__es__search |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__get_document |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__cat_indices |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__get_mapping |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__cat_aliases |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__get_alias |
dockit · Elasticsearch | 🟢 Safe | Read Only | No |
data_studio__es__index_document |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__update_document |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__create_index |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__put_mapping |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__put_alias |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__update_aliases |
dockit · Elasticsearch | 🟡 Elevated | Data Read-Write | No |
data_studio__es__delete_document |
dockit · Elasticsearch | 🔴 Destructive | Full Access | Yes |
data_studio__es__delete_by_query |
dockit · Elasticsearch | 🔴 Destructive | Full Access | Yes |
data_studio__es__delete_index |
dockit · Elasticsearch | 🔴 Destructive | Full Access | Yes |
data_studio__es__delete_alias |
dockit · Elasticsearch | 🔴 Destructive | Full Access | Yes |
data_studio__mongo__list_databases |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__list_collections |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__find |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__collection_stats |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__database_stats |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__server_status |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__repl_set_status |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__shard_status |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__count_documents |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__list_indexes |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__sample_documents |
dockit · MongoDB | 🟢 Safe | Read Only | No |
data_studio__mongo__aggregate |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__insert_one |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__update_many |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__update_document |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__create_database |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__create_collection |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__rename_collection |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__clone_collection |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__create_index |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__drop_index |
dockit · MongoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__mongo__delete_many |
dockit · MongoDB | 🔴 Destructive | Full Access | Yes |
data_studio__mongo__delete_document |
dockit · MongoDB | 🔴 Destructive | Full Access | Yes |
data_studio__mongo__drop_collection |
dockit · MongoDB | 🔴 Destructive | Full Access | Yes |
data_studio__mongo__drop_database |
dockit · MongoDB | 🔴 Destructive | Full Access | Yes |
data_studio__mongo__truncate_collection |
dockit · MongoDB | 🔴 Destructive | Full Access | Yes |
data_studio__dynamo__execute_query |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__describe_table |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__list_tables |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__query_table |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__scan_table |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__describe_continuous_backups |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__describe_ttl |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__get_table_metrics |
dockit · DynamoDB | 🟢 Safe | Read Only | No |
data_studio__dynamo__execute_write |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__create_item |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__batch_write_items |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_item |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__create_gsi |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_gsi |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__create_table |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_table_config |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_ttl |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_pitr |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__update_streams |
dockit · DynamoDB | 🟡 Elevated | Data Read-Write | No |
data_studio__dynamo__execute_delete |
dockit · DynamoDB | 🔴 Destructive | Full Access | Yes |
data_studio__dynamo__delete_item |
dockit · DynamoDB | 🔴 Destructive | Full Access | Yes |
data_studio__dynamo__delete_gsi |
dockit · DynamoDB | 🔴 Destructive | Full Access | Yes |
data_studio__dynamo__delete_table |
dockit · DynamoDB | 🔴 Destructive | Full Access | Yes |
data_studio__dynamo__truncate_table |
dockit · DynamoDB | 🔴 Destructive | Full Access | Yes |
79 tools total. Read-only operations run automatically under Read Only mode. Elevated operations (writes, index/schema changes) require Data Read-Write. Destructive operations (DELETE, DROP, TRUNCATE) require Full Access and always surface an explicit user confirmation prompt.
How it works
code agent (Claude Code / Cursor / OpenCode ...)
|
| MCP stdio protocol
v
@geek-fun/data-studio-mcp ← npm package (pure TypeScript)
|
| HTTP (localhost)
+----------------+----------------+
v v |
dockit:9120 sqlkit:9121 |
(NoSQL bridge) (SQL bridge) |
| | |
v v |
Elasticsearch PostgreSQL |
MongoDB MySQL |
DynamoDB SQL Server |
OpenSearch SQLite |
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。