Skip to main content
Glama
Fashad-Ahmed

Universal Database MCP Server

by Fashad-Ahmed

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DRYRUNNoEnable dry-run mode (queries are not executed)false
MYSQL_URINoMySQL connection URI (e.g., mysql://user:pass@host:3306/db)
DUCKDB_PATHNoPath to DuckDB database file or :memory:
SQLITE_PATHNoPath to SQLite database file
POSTGRES_URINoPostgreSQL connection URI (e.g., postgresql://user:pass@host:5432/db)
QUERY_TIMEOUTNoQuery timeout in seconds30
ENABLE_LOGGINGNoEnable query logging to stderrtrue
MYSQL_READONLYNoSet to false to allow writestrue
RATE_LIMIT_RPMNoRate limit in requests per minute60
DUCKDB_READONLYNoSet to false to allow writestrue
MAX_RESULT_ROWSNoMaximum number of rows returned in a query result1000
SQLITE_READONLYNoSet to false to allow writestrue
ALLOW_DESTRUCTIVENoSet to true to allow INSERT/UPDATE/DELETE/DROPfalse
POSTGRES_READONLYNoSet to false to allow writes (not recommended)true
WHITELISTED_TABLESNoComma-separated list of table names that queries can access (optional)

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": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
queryA

Execute a SQL query against the database.

Supports parameterized queries for injection safety. In read-only mode, destructive operations (INSERT, UPDATE, DELETE, DROP, etc.) are blocked.

schemaA

Get database schema information: tables, columns, types, and constraints.

explainA

Get query execution plan without running the query.

healthA

Check database connection health and get server version info.

query_historyA

Get recent query execution history (most recent first).

snapshot_schemaA

Take a snapshot of the current database schema for later drift detection.

schema_diffA

Compare the current schema against the last snapshot taken with snapshot_schema.

list_databasesA

List all configured databases and their connection status.

Returns: JSON with list of databases including key, type, database name, and connection status.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 8 tools

Disambiguation4/5

Each tool targets a distinct operation: schema introspection, query execution, plan explanation, health checking, history, schema snapshot/diff, and database listing. The schema-related trio (schema, snapshot_schema, schema_diff) and health/list_databases have adjacent concerns, but descriptions clarify boundaries.

Naming Consistency3/5

Tool names mix styles: noun-only (schema, health), verb-only (query, explain), and snake_case compounds (query_history, snapshot_schema, schema_diff, list_databases). All are readable and lowercase, but there is no consistent verb_noun pattern.

Tool Count5/5

Eight tools is well-scoped for a universal database server, covering introspection, execution, planning, health, history, and schema drift. Each tool earns its place without redundancy.

Completeness4/5

The set covers schema reading, arbitrary SQL execution, query plans, health checks, history, and schema drift detection, which covers most database workflows. Missing dedicated transaction control or database administration tools, though query can handle many of those operations.

Maintenance

ActivityInactive
ResponsivenessNo issues