Dory MCP Server 标志

Dory MCP Server

组织
dorylab

AI-native SQL client for humans and agents. Query, explore, visualize, and open agent database work as editable SQL workspaces.

发布者dorylab
代码仓库dory
语言TypeScript
复刻数
20
星标数
286
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Dory MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 286 个 Star 和 20 个 Fork。

Dory is an AI-native SQL client for humans and agents.

Dory is a SQL workspace where humans can query, explore, and visualize data, and where AI agents can safely work with databases through MCP.

Unlike a plain database MCP server that only sends query results back to a chat, Dory turns agent work into editable SQL workspaces: SQL tabs, result sets, charts, saved queries, and execution context can all be opened, inspected, modified, and continued by humans.

Use Dory as your everyday SQL client, or as the database execution layer for agents like Claude Code, Codex CLI, and other MCP-compatible tools.

No signup required. Click "Try Dory without an account" to start instantly.

Dory AI-native SQL workspace

Why Dory?

AI agents can now write SQL, inspect schemas, and answer analytical questions. But raw agent output is not enough for real data work.

Teams still need to:

  • see the exact SQL that was run
  • inspect real result sets
  • fix wrong queries
  • turn results into charts or exports
  • preserve context across multiple steps
  • continue the work in a real SQL workspace

Dory is built for this workflow.

How Dory works

Dory provides the same underlying database actions to both the UI and agents:

  • Humans use Dory as a SQL client: write SQL, browse schema, run queries, filter results, create charts, and save queries.
  • Agents use Dory through MCP: list connections, explore schemas, run read-only SQL, create tabs, and organize database work.
  • Agent-generated work becomes a real workspace that humans can review, edit, and continue.

Dory vs a plain database MCP server

CapabilityPlain DB MCP ServerDory
Run SQL from agents✅✅
Explore schema✅✅
Editable SQL tabs❌✅
Persistent result sets❌✅
Charts and filters❌✅
Human review workflowLimited✅
Saved queries and workspace contextLimited✅
Works as a daily SQL client❌✅

✨ Key Features

Editable Agent Workspaces

Agent database work should not disappear into a chat transcript.

  • Open agent-created SQL tabs as normal workspace tabs
  • Inspect SQL, result sets, filters, charts, and saved context
  • Edit generated SQL and rerun it yourself
  • Continue an agent run from the same workspace instead of restarting from scratch

Dory CLI and MCP for Agents

@getdory/cli is the agent entrypoint for running Dory without opening the desktop app.

  • Works with Claude Code, Codex CLI, and other MCP-compatible clients
  • Runs standalone MCP servers over stdio or HTTP
  • Acts as a headless runtime for automation and direct Dory Actions
  • Can use standalone data, hosted Dory Web, or Desktop local data with --data desktop

SQL Workspace for Humans

  • Multi-tab SQL editor with multiple result sets
  • Schema browser for tables, columns, and database objects
  • Saved queries for reusable analysis
  • Built-in query execution history and workspace context

Schema Explorer

Understand unfamiliar databases at a glance with an interactive map of tables and relationships.

  • Visualize primary keys, foreign keys, and relationships across schemas
  • Search for tables, select schemas, and switch between all columns and keys only
  • Auto-arrange the graph, fit it to the viewport, and open any table directly
  • Export the complete schema graph as PNG or SVG

Dory Schema Explorer


Result Sets, Filters, and Charts

  • Inspect real result sets in a table view
  • Filter, search, and review returned rows
  • Turn query output into charts directly inside the workspace
  • Keep results attached to the SQL that produced them

Schema-aware AI Assistance

An AI assistant grounded in real database schema and current query context.

  • Generate SQL from natural language
  • Rewrite, fix, and explain SQL in the current tab
  • Use current database schema and query context
  • Keep AI assistance inside the real SQL workspace

Saved Queries and Reusable Context

  • Save useful SQL as reusable queries
  • Organize query work across connections and workspaces
  • Let humans and agents build on previous database work
  • Preserve context beyond a single chat response

Database Support

Dory is a multi-database SQL client, with broad driver support and deeper integrations where Dory can provide more than generic SQL execution.

DatabaseStatus
ClickHouse✅ Deeply integrated
PostgreSQL✅ Supported
Neon✅ Supported
Supabase✅ Supported
Cloudflare D1✅ Supported
MySQL✅ Supported
MariaDB✅ Supported
SQLite✅ Supported
DuckDB✅ Supported
SQL Server✅ Supported
Oracle✅ Supported
Snowflake✅ Supported

ClickHouse Deep Integration

Dory includes native ClickHouse operations surfaces for teams that need more than a generic SQL editor.

  • Query monitoring with slow queries, errors, active users, latency, and throughput
  • Multi-dimensional filtering by user, database, query type, and time range
  • User and role management without hand-writing every GRANT or CREATE USER statement
  • Cluster-level privilege operations with On Cluster support

Dory ClickHouse monitoring

🚀 Quick Start

Install on macOS with Homebrew

bash
brew install dorylab/dory/dory

Run with Docker

Make sure Docker is installed, then run:

bash
docker run -d --name dory \
  -p 3000:3000 \
  -e DS_SECRET_KEY="$(openssl rand -base64 32 | tr -d '\n')" \
  -e BETTER_AUTH_SECRET="$(openssl rand -hex 32)" \
  -e BETTER_AUTH_URL="http://localhost:3000" \
  -e DORY_AI_PROVIDER=openai \
  -e DORY_AI_MODEL=gpt-4o-mini \
  -e DORY_AI_API_KEY=your_api_key_here \
  -e DORY_AI_URL=https://api.openai.com/v1 \
  -e NEXT_PUBLIC_REQUIRE_EMAIL_VERIFICATION=false \
  -e DORY_INIT_USER_EMAIL=admin@getdory.dev \
  -e DORY_INIT_USER_PASSWORD=admin \
  dorylab/dory:latest

Then:

Username: admin@getdory.dev

Password: admin

The initial administrator account is controlled by DORY_INIT_USER_EMAIL and DORY_INIT_USER_PASSWORD in .env.

To enable email verification, set RESEND_API_KEY to a valid resend key and EMAIL_FROM to a validated email.

Self-host with Docker Compose

For long-running self-hosted deployments, Docker Compose runs Dory with a dedicated PostgreSQL database and persistent volumes.

bash
cp docker-compose.env.example .env
# Edit .env and replace all placeholder secrets/passwords.
docker compose up -d

For comprehensive self-hosting documentation, environment variables, and deployment guides, see the Self-Hosting Documentation.

🧩 Dory Agent Skill

Install the Dory skill for Codex, ChatGPT, Claude, and other agents that support the open Agent Skills format.

bash
npx skills add https://github.com/dorylab/skills --skill dory

The skill teaches agents when to use Dory, how to use Dory MCP tools, and how to preserve generated SQL, result sets, and findings in an editable Dory Agent Run workspace.

The skill does not install the Dory CLI or configure MCP automatically. For live database access, connect Dory MCP with the setup commands below.

🔗 Dory CLI and MCP

Use @getdory/cli to connect MCP-compatible agents to Dory. It can run a local stdio MCP server, host a long-running HTTP MCP endpoint, bridge to hosted Dory Web, or reuse Dory Desktop local data with --data desktop.

For the full MCP setup guide, including CLI stdio, headless HTTP, and hosted Dory bridge options, see Dory MCP Guide.

Run a local stdio MCP server when your agent client is on the same machine:

bash
codex mcp add dory -- npx -y @getdory/cli mcp serve --stdio --data standalone
codex mcp list
bash
claude mcp add dory -- npx -y @getdory/cli mcp serve --stdio --data standalone
claude mcp list

Run a local HTTP MCP endpoint when you want a long-running service:

bash
npx -y @getdory/cli mcp token create --data standalone --name "local-http"

export DORY_MCP_TOKEN="dory_mcp_..."

npx -y @getdory/cli mcp serve \
  --http \
  --host 127.0.0.1 \
  --port 3318 \
  --token "$DORY_MCP_TOKEN" \
  --data standalone

Add that HTTP endpoint to Codex CLI:

bash
codex mcp add \
  --url http://127.0.0.1:3318/api/mcp \
  --bearer-token-env-var DORY_MCP_TOKEN \
  dory

Add it to Claude Code:

bash
claude mcp add \
  --transport http \
  dory \
  http://127.0.0.1:3318/api/mcp \
  --header "Authorization: Bearer $DORY_MCP_TOKEN"

Bridge hosted Dory Web to local MCP clients:

bash
npx -y @getdory/cli mcp login --url https://your-dory-host
codex mcp add dory-hosted -- npx -y @getdory/cli mcp bridge --url https://your-dory-host
claude mcp add dory-hosted -- npx -y @getdory/cli mcp bridge --url https://your-dory-host

For the standalone @getdory/mcp bridge package, see packages/mcp. For the full CLI and headless runtime guide, see packages/cli.

🧠 Supported AI Providers

Dory is built with a pluggable AI provider architecture. You can freely switch between different model vendors by changing environment variables, with no code changes required.

Currently supported providers:

ProviderEnv DORY_AI_PROVIDERDescription
OpenAIopenaiDefault provider. Uses official OpenAI API.
OpenAI-Compatibleopenai-compatibleAny service exposing an OpenAI-compatible API.
AnthropicanthropicClaude models via Anthropic official API.
GooglegoogleGemini models via Google Generative AI API.
Qwen (Alibaba)qwenQwen models via DashScope OpenAI-compatible endpoint.
xAIxaiGrok models via xAI API.

🗺️ Roadmap

See the latest roadmap here:

⚙️ Tech Stack

  • Next.js + React + Tailwind
  • Drizzle ORM
  • Multi-model AI SDK integration
  • PGLite
  • Resend
  • Shadcn UI
  • Monaco Editor

🎯 Who is it for?

  • Data engineers
  • Data analysts
  • Database platform teams
  • Agent builders who need a database execution layer
  • ClickHouse operations teams

📄 License

Apache-2.0

将 Dory MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Dory MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Dory MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Dory MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "dory": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Dory MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Dory MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Dory MCP Server 帮我完成这项任务吗?
Dory MCP Server
当然。我已阅读。
以下是我使用 Dory MCP Server 得到的结果。

常见问题

Dory MCP Server MCP 服务器有什么用途?

Dory MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Dory MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Dory MCP Server,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Dory MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Dory MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Dory MCP Server MCP 连接到 TypingMind?

Dory MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Dory MCP Server MCP 在 TypingMind 中提供哪些工具?

Dory MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Dory MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Dory MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇