Skip to main content
Glama
CGAdmin544

多数据库 MCP Server

by CGAdmin544

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTNo数据库主机地址
DB_MODENo数据库模式:readonly(默认)或 readwritereadonly
DB_NAMENo数据库名或 SQLite 文件路径
DB_PORTNo数据库端口
DB_TYPENo数据库类型:oracle / sqlserver / mysql / postgres / sqlite
DB_USERNo数据库用户名
DB_PASSWORDNo数据库密码
ORACLE_HOSTNoOracle 主机地址(兼容旧配置)
ORACLE_MODENoOracle 模式(兼容旧配置),默认 readonlyreadonly
ORACLE_PORTNoOracle 端口(兼容旧配置)
ORACLE_USERNoOracle 用户名(兼容旧配置)
DATABASE_URLNo完整 SQLAlchemy URL,例如 mysql+pymysql://user:pw@localhost:3306/mydb
ORACLE_PASSWORDNoOracle 密码(兼容旧配置)
ORACLE_SERVICE_NAMENoOracle 服务名(兼容旧配置)
ORACLE_CLIENT_LIB_DIRNoOracle Instant Client 目录(thick 模式)

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
execute_queryA

执行只读 SQL 查询(仅允许 SELECT/WITH),结果以 JSON 数组返回。

Args: sql: SELECT 语句,绑定变量使用 :name 占位(不要字符串拼接值)。 schemaName: 指定默认 schema,未限定表名将解析到该 schema(如 "SCOTT")。

list_tablesA

列出数据库中的表;指定 schema 时仅列出该命名空间下的表。

Args: schema: 目标 schema/数据库名(不区分大小写);不传则列出当前默认命名空间下的表。

describe_tableA

查看表结构:列名、数据类型、是否可为空。

Args: table_name: 表名。 schemaName: 限定所属 schema(Oracle 为 owner,PostgreSQL 为 schema, MySQL/SQL Server 为数据库名);不传则匹配默认命名空间中的表。

test_connectionA

测试数据库连接是否正常,返回连接状态。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: listing tables, running read-only queries, describing table schemas, and testing connectivity. There is no meaningful overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow the same verb_noun snake_case pattern: list_tables, execute_query, describe_table, test_connection. The naming is uniform and predictable.

Tool Count5/5

With 4 tools, the set is concise and well-scoped for a read-only database MCP server. Every tool serves a necessary core function without unnecessary bloat.

Completeness5/5

The tool set covers the essential read-only database workflow: discovery (list_tables), schema inspection (describe_table), querying (execute_query), and connection validation (test_connection). No obvious gaps exist for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo issues