GaussDB-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| test_connectionA | 测试 GaussDB 连接,返回数据库版本、当前库、当前用户与服务器时间 |
| queryA | 在 GaussDB 上执行只读查询(SELECT/WITH/EXPLAIN/SHOW/VALUES 开头,单语句,写语句会被拒绝)并返回结果行。支持 limit/offset 截断返回(不修改 SQL 本身),可选 tx_handle 在事务内执行 |
| executeB | 执行任意 SQL(INSERT/UPDATE/DELETE/DDL 等),返回受影响行数。可选 tx_handle 在事务内执行。危险操作(DROP/TRUNCATE/DELETE)请谨慎 |
| insert_rowsA | 参数化批量插入:指定表名与行数组(对象数组,键为列名),可选 schema(缺省 public) |
| update_rowsA | 参数化更新:指定表名、SET(列→新值)与 WHERE(列→值,AND 连接,必填防全表误更新),可选 schema |
| delete_rowsA | 参数化删除:指定表名与 WHERE(列→值,AND 连接,必填防全表误删除),可选 schema |
| transaction_beginA | 开启 GaussDB 事务,返回事务句柄 tx_handle。后续 query/execute/写入工具可传入该句柄在同一事务内执行。空闲 5 分钟自动回滚回收 |
| transaction_commitA | 提交事务。需提供 transaction_begin 返回的句柄 |
| transaction_rollbackB | 回滚事务。需提供 transaction_begin 返回的句柄 |
| list_databasesA | 列出 GaussDB 实例中所有可连接的数据库及大小 |
| list_schemasA | 列出当前数据库的所有 schema(排除系统 schema);配置白名单后仅列出允许的 schema |
| list_tablesA | 列出当前数据库的所有表及大小,可选按 schema 过滤 |
| describe_tableA | 查看表结构:列名、数据类型、长度、可空、默认值、是否主键 |
| list_indexesA | 列出索引及所属表,可选按 schema 过滤 |
| list_viewsA | 列出视图,可选按 schema 过滤 |
| list_sequencesB | 列出序列,可选按 schema 过滤 |
| explain_queryA | 查看 SQL 执行计划。analyze=true 时真实执行并统计耗时(自动包裹事务回滚,写语句不落盘) |
| list_sessionsB | 查看当前活跃会话(pg_stat_activity) |
| list_lock_conflictsA | 查看当前锁冲突:被阻塞会话与阻塞来源 |
| database_statsA | 查看数据库统计:版本、大小、连接数、当前用户、服务器地址与时间 |
| list_usersA | 列出数据库用户及属性 |
| create_userB | 创建可登录的数据库用户 |
| grant_privilegeB | 授予权限。privilege 示例:SELECT ON TABLE t、ALL PRIVILEGES ON DATABASE d、USAGE ON SCHEMA s |
| revoke_privilegeC | 回收权限。privilege 格式同 grant_privilege |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mengqi1436/GaussDB-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server