dolphindb-mcp-server

dolphindb-mcp-server

A FastMCP-compatible server plugin for DolphinDB database operations.

4
Stars
3
Forks
4
Watchers
1
Issues
dolphindb-mcp-server provides a plugin service enabling external tools to interact with DolphinDB databases through standardized MCP interfaces. The server exposes commonly used functions for listing databases and tables, querying table disk usage, and executing scripts via the FastMCP protocol. It supports flexible installation methods and environment configuration, allowing seamless integration with LLM toolchains or MCP frontends.

Key Features

Exposes standardized MCP protocol for DolphinDB access
Supports multiple installation methods (uvx, PyPI, local build)
Environment variable based configuration for DB credentials
Integration with FastMCP agent for function exposure
API endpoints for database and table listing
Query specific table disk usage
Execute custom DolphinDB scripts
Works as a plugin service for external callers
Usable from MCP frontend interfaces
Enables straightforward LLM and toolchain integration

Use Cases

Integrate DolphinDB operations with language model workflows
Automate database and table metadata extraction
Monitor and query disk usage of DolphinDB tables
Programmatically execute DolphinDB scripts via API
Enable standardized database management for AI pipelines
Build custom tools or dashboards using MCP functions
Serve as a backend for MCP-compatible interfaces
Allow LLMs to access and manipulate structured DolphinDB data
Centralize DolphinDB administration via external orchestration
Seamlessly connect DolphinDB to any FastMCP-compliant system

README

🧱 安装方式

✅ 方法一:使用 uvx(推荐)

通过 uvx 安装并运行:

bash
uvx install dolphindb-mcp-server

安装完成后,直接运行:

bash
uvx dolphindb-mcp-server

📌 注意uvx 安装方式需要通过 uv.pack 构建并上传到 Universe。如果你尚未上传,请参考 uv 文档进行打包与发布。

✅ 方法二:从 PyPI 安装

bash
pip install dolphindb-mcp-server

安装后运行:

bash
dolphindb-mcp-server

✅ 方法三:本地构建 & 安装

bash
git clone https://github.com/your-org/dolphindb-mcp-server.git
cd dolphindb-mcp-server

# 创建并激活虚拟环境
python -m venv .venv
source .venv/bin/activate

# 构建并安装
pip install build
python -m build
pip install dist/*.whl

安装后运行:

bash
dolphindb-mcp-server

🧪 测试运行

运行后你可以直接使用工具,例如:

bash
dolphindb-mcp-server

或(如果是 uvx 安装):

bash
uvx dolphindb-mcp-server

好的,这是转换后的 Markdown 版本:

好的,这是转换后的 Markdown 版本:


🚀 使用方法

  1. 配置环境变量(可选)

    你可以通过 .env 文件或系统环境变量配置 DolphinDB 的连接信息:

    env
    DDB_HOST=127.0.0.1
    DDB_PORT=8848
    DDB_USER=admin
    DDB_PASSWD=123456
    

    也可以不设置,系统将使用默认值。

  2. 启动服务

    bash
    dolphindb-mcp-server
    

    该命令会启动 MCP 插件服务,供外部调用。

  3. FastMCP Agent 使用示例

    启动后,你的工具将通过 FastMCP 对外暴露以下函数接口:

    • list_dbs()
    • list_tbs(dbName: str)
    • query_table_diskusage(database: str, tableName: str)
    • query_dolphindb(script: str)

    可通过 MCP 前端界面或对接 LLM 工具链来进行访问。

Star History

Star History Chart

Repository Owner

tradercjz
tradercjz

User

Repository Details

Language Python
Default Branch master
Size 139 KB
Contributors 1
MCP Verified Nov 12, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • YDB MCP

    YDB MCP

    MCP server for AI-powered natural language database operations on YDB.

    YDB MCP acts as a Model Context Protocol server enabling YDB databases to be accessed via any LLM supporting MCP. It allows AI-driven and natural language interaction with YDB instances by bridging database operations with language model interfaces. Flexible deployment through uvx, pipx, or pip is supported, along with multiple authentication methods. The integration empowers users to manage YDB databases conversationally through standardized protocols.

    • 24
    • MCP
    • ydb-platform/ydb-mcp
  • dbt MCP Server

    dbt MCP Server

    Bridge dbt projects and AI agents with rich project context.

    dbt MCP Server provides an implementation of the Model Context Protocol for dbt projects, enabling seamless integration between dbt and AI agents. It allows agents to access and understand the context of dbt Core, dbt Fusion, and dbt Platform projects. The tool supports connection to external AI products and offers resources for building custom agents. Documentation and examples are provided to facilitate adoption and integration.

    • 420
    • MCP
    • dbt-labs/dbt-mcp
  • Databricks MCP Server

    Databricks MCP Server

    Expose Databricks data and jobs securely with Model Context Protocol for LLMs.

    Databricks MCP Server implements the Model Context Protocol (MCP) to provide a bridge between Databricks APIs and large language models. It enables LLMs to run SQL queries, list Databricks jobs, retrieve job statuses, and fetch detailed job information via a standardized MCP interface. The server handles authentication, secure environment configuration, and provides accessible endpoints for interaction with Databricks workspaces.

    • 42
    • MCP
    • JordiNeil/mcp-databricks-server
  • MCP Server for Milvus

    MCP Server for Milvus

    Bridge Milvus vector database with AI apps using Model Context Protocol (MCP).

    MCP Server for Milvus enables seamless integration between the Milvus vector database and large language model (LLM) applications via the Model Context Protocol. It exposes Milvus functionality to external LLM-powered tools through both stdio and Server-Sent Events communication modes. The solution is compatible with MCP-enabled clients such as Claude Desktop and Cursor, supporting easy access to relevant vector data for enhanced AI workflows. Configuration is flexible through environment variables or command-line arguments.

    • 196
    • MCP
    • zilliztech/mcp-server-milvus
  • mcp-difyworkflow-server

    mcp-difyworkflow-server

    MCP server for managing and executing multiple Dify workflows on demand.

    mcp-difyworkflow-server is an MCP-compliant server tool that facilitates the querying and invocation of custom Dify workflows. It supports dynamic execution of multiple workflows by interfacing with the Dify platform, enabling users to manage workflow credentials and operations efficiently. Configuration allows mapping of workflows to API keys, and commands to list or execute available workflows are provided.

    • 58
    • MCP
    • gotoolkits/mcp-difyworkflow-server
  • XiYan MCP Server

    XiYan MCP Server

    A server enabling natural language queries to SQL databases via the Model Context Protocol.

    XiYan MCP Server is a Model Context Protocol (MCP) compliant server that allows users to query SQL databases such as MySQL and PostgreSQL using natural language. It leverages the XiYanSQL model, providing state-of-the-art text-to-SQL translation and supports both general LLMs and local deployment for enhanced security. The server lists available database tables as resources and can read table contents, making it simple to integrate with different applications.

    • 218
    • MCP
    • XGenerationLab/xiyan_mcp_server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results