Logo Dory MCP Server

Dory MCP Server

Tổ chức
dorylab

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

Nhà phát hànhdorylab
Kho mãdory
Ngôn ngữTypeScript
Bản fork
20
Sao
286
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Dory MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    286 sao và 20 bản fork từ kho mã được liên kết.

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

Dùng MCP Dory MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Dory MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Dory MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Dory MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "dory": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Dory MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Dory MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Dory MCP Server giúp tôi làm việc này không?
Dory MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Dory MCP Server.

Câu hỏi thường gặp

Máy chủ MCP Dory MCP Server dùng để làm gì?

Dory MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Dory MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Dory MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Dory MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Dory MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Dory MCP Server với TypingMind?

Dory MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Dory MCP Server cung cấp những công cụ nào trong TypingMind?

Dory MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Dory MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Dory MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇