Skip to main content
Glama
yizhilangou

dameng-mcp-server

by yizhilangou

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DM_HOSTNoDatabase host127.0.0.1
DM_MODENoreadonly or readwritereadonly
DM_PORTNoDatabase port5236
DM_USERYesDatabase username (required)
DM_SCHEMANoSchema to switch to after login
DM_MAX_ROWSNoMaximum rows returned by read_query200
DM_PASSWORDYesDatabase password (required)
DM_AUDIT_LOGNoAudit log file path./dameng_audit.log
DM_QUERY_TIMEOUTNoSingle SQL timeout in seconds30
DM_LD_LIBRARY_PATHNoPath to Dameng dpi library directory

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_schemasA

列出达梦数据库中所有用户(schema)。无参数。

list_tablesA

列出表。可选 schema 过滤;省略时用连接配置的 schema。 返回 [{schema, name}, ...]。

describe_tableA

描述某张表的列(名/类型/长度/可空/默认值/是否主键)。 name 为表名,schema 可选。

read_queryA

执行只读查询(SELECT/WITH)。sql 用 ? 占位符,参数放 params。 受 DM_MAX_ROWS 限制;返回 {columns, rows, row_count, truncated}。

get_audit_logB

读取最近的写操作审计记录(任何模式可用,便于 LLM 自查写历史)。

execute_writeA

执行 DML(INSERT/UPDATE/DELETE/MERGE),仅读写模式可用。 每次调用写入审计日志。返回 {status, rows_affected, seq}。

execute_ddlB

执行 DDL(CREATE/ALTER/DROP/TRUNCATE...),仅读写模式可用。 每次调用写入审计日志。返回 {status, rows_affected, seq}。

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/yizhilangou/dameng-mcp-server'

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