Skip to main content
Glama
TGich

dm_mcp_server

by TGich

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DAMENG_HOSTYes达梦数据库主机地址
DAMENG_PORTNo达梦数据库端口5236
DAMENG_USERYes数据库用户名
DAMENG_SCHEMANoMCP 服务默认使用的 Schema
DAMENG_PASSWORDYes数据库密码

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
test_connectionA

测试数据库连接状态

batch_comment_columns_sqlA

批量执行字段注释 SQL,仅允许 COMMENT ON COLUMN 语句

参数: sql: 多条 COMMENT ON COLUMN 语句,可用分号分隔 stop_on_error: 执行阶段遇到错误是否停止

execute_sql_fileA

读取并执行 SQL 文件,用于处理超长 SQL。

文件路径必须位于 DAMENG_SQL_FILE_ALLOWED_DIRS 白名单目录内。 文件中的 SQL 注释会在校验和执行前剥离,字符串字面量内的内容不受影响。

get_sql_file_allowed_dirsA

获取 execute_sql_file 允许读取的 SQL 文件目录。

execute_sqlC

执行 SQL 语句(强制限定配置下的SCHEMA操作)

参数: sql: 要执行的 SQL 语句 fetch_results: 是否返回查询结果(默认 True) limit: 限制返回的行数,用于分页(可选) offset: 跳过的行数,用于分页(可选)

list_tablesA

查询指定SCHEMA下的所有表,不指定则查询默认SCHEMA

count_tablesA

统计指定SCHEMA下的表数量,不指定则统计默认SCHEMA

get_current_schemaB

获取当前配置的数据库的SCHEMA及允许的SCHEMA列表

switch_schemaB

切换当前操作的SCHEMA(仅在配置了DAMENG_ALLOWED_SCHEMAS时可用)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TGich/dm_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server