Skip to main content
Glama
MCP Database Server

MCP Database Server

by RifkyR3

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOWED_DATABASESNoComma-separated list of database IDs to expose (e.g., 'app_db,store_db'). If set, only these databases are accessible; others are blocked. Alternative to the --databases CLI argument.
MCP_DB_CONFIG_PATHYesPath to the connections.json configuration file containing database credentials and settings.

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
}

Tools

Functions exposed to the LLM to take actions

NameDescription
db_list_connectionsA

List all registered main connections, their configured sub-connections (databases), and active connection pool status

db_discover_databasesB

Query the database server to discover all databases existing on a main connection host

db_sync_databasesB

Crawl database list from one or all main connection hosts and automatically update sub-connections in connections.json

db_list_tablesA

List all tables and views in a target database. Provide either connectionId (sub-connection alias or "mainId:db") or mainId + database

db_describe_tableB

Get schema structure of a table (columns, data types, nullability, primary key constraints).

db_execute_queryB

Execute a SQL query against any database. Connection can be specified via connectionId (sub-connection alias or "mainId:db") or mainId + database

db_test_connectionB

Test connectivity to a main connection or a specific database

db_register_main_connectionB

Dynamically add or update a main database connection configuration at runtime

db_register_sub_connectionB

Dynamically register a sub-connection (database alias) under an existing main connection

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct purposes (list, describe, execute, test, register). Minor overlap exists between db_discover_databases and db_sync_databases (both surface databases from a host) and between db_register_sub_connection and db_sync_databases (both create sub-connections), but descriptions clarify that one is read-only and the other persists config.

Naming Consistency5/5

Every tool uses the same db_ prefix followed by a verb_noun pattern (db_list_tables, db_register_main_connection, db_execute_query). No mixed conventions, casing, or verb styles.

Tool Count5/5

Nine tools is a well-scoped set for a database server spanning connection management, discovery, schema inspection, and querying. Each tool maps to a distinct operational need with no filler.

Completeness4/5

The surface covers the full workflow from discovery and registration through schema inspection and query execution. The main gap is lifecycle teardown: there is no unregister/remove connection tool, so agents cannot delete or disable a connection once registered.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues