Enables real-time retrieval of table structure information from MySQL databases, supporting both low-code system schema queries and traditional database metadata queries
Enables real-time retrieval of table structure information from PostgreSQL databases, supporting both low-code system schema queries and traditional database metadata queries
SP Database MCP Server
一个用于实时获取数据库表结构信息的 Model Context Protocol (MCP) 服务器。通过 MCP 协议,可以让 AI 助手实时获取数据库的表结构信息,解决信息不及时更新的问题。
功能特性
- 智能表结构查询:支持两种查询模式
- 低代码系统 Schema 查询:通过
da_logic_entity
和da_entity_attribute
表获取详细的业务字段信息 - 传统数据库元数据查询:直接从数据库系统表获取技术字段信息
- 低代码系统 Schema 查询:通过
- 🔄 实时获取数据库表结构信息
- 📊 支持多种数据库类型 (MySQL, PostgreSQL)
- 🚀 通过 API 接口动态获取最新的表字段信息
- 🔍 支持表信息查询和字段详情获取
- 📝 自动生成表结构文档
安装
从 PyPI 安装(推荐)
从源码安装
配置
环境变量
MCP 客户端配置
Claude Desktop 配置(使用 uvx)
Windsurf 配置
开发版本配置
如果你想使用本地开发版本,可以使用以下配置:
使用方式
启动 MCP 服务器
使用示例
查询表结构信息
现在支持两种查询模式,系统会自动优先使用低代码系统的 schema 查询:
查询模式说明
- 低代码系统 Schema 查询(优先)
- 查询
da_logic_entity
表获取实体基本信息 - 查询
da_entity_attribute
表获取字段详细信息 - 提供中文字段名、业务描述、数据类型等丰富信息
- 支持外键关系解析
- 查询
- 传统数据库元数据查询(回退)
- 当低代码系统查询失败时自动回退
- 直接从数据库系统表获取技术字段信息
- 提供基础的字段类型、约束等信息
项目结构
开发
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides real-time database schema information to AI assistants, supporting both low-code system schema queries and traditional database metadata queries.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.Last updated -7TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to securely interact with Apache IoTDB databases through a controlled interface for listing tables, reading data, and executing SQL queries.Last updated -Python
- AsecurityAlicenseAqualityA Model Context Protocol server that provides read-only MySQL database queries for AI assistants, allowing them to execute queries, explore database structures, and investigate data directly from AI-powered tools.Last updated -34497TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides AI assistants with comprehensive access to SQL databases, enabling schema inspection, query execution, and database operations with enterprise-grade security.Last updated -102TypeScriptMIT License