Skip to main content
Glama
stucchi

db-mcp-server

by stucchi

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_URLNoMongoDB connection URL (e.g., mongodb://...). Required for MongoDB.
DB_HOSTNoDatabase host (MySQL/PostgreSQL).localhost
DB_MODENoDatabase access mode.read-only
DB_PATHNoPath to SQLite database file. Required for SQLite.
DB_PORTNoDatabase port (MySQL/PostgreSQL).3306 for MySQL, 5432 for PostgreSQL
DB_TYPENoDatabase type. Must be 'mysql', 'postgresql', 'mongodb', or 'sqlite'.
DB_USERNoDatabase user (MySQL/PostgreSQL).root for MySQL, postgres for PostgreSQL
SSH_KEYNoPath to SSH private key (e.g., ~/.ssh/id_rsa).
SSH_HOSTNoSSH bastion host. Activates SSH tunnel (not supported for MongoDB).
SSH_PORTNoSSH port.22
SSH_USERNoSSH username. Defaults to current OS user.
DB_DATABASENoDatabase name.
DB_PASSWORDNoDatabase password (required for MySQL and PostgreSQL).
SSH_PASSWORDNoSSH password (used if no key provided).

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
queryA

Execute a read-only query on the SQLite database. Only SELECT, SHOW, DESCRIBE, EXPLAIN, WITH are allowed on read-only databases.

executeB

Execute a write query on the SQLite database. Only works if the database is configured with mode='read-write'.

describeA

Describe the structure of a SQLite table (PRAGMA table_info).

list_tablesA

List all tables in the SQLite database.

statusA

Show connection info: type, host, database, mode, status.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clear and distinct purpose: describe for table structure, execute for write queries, list_tables for listing tables, query for read queries, and status for connection info. No overlap.

Naming Consistency5/5

All tool names are lowercase, use verbs or verb phrases consistently, and follow a simple pattern (e.g., describe, list_tables). No mixing of conventions.

Tool Count5/5

With 5 tools, the server provides a focused yet complete set for basic SQLite database operations: schema inspection, read/write queries, and status checks. The count feels appropriate for its scope.

Completeness4/5

The tool set covers essential CRUD operations via generic query and execute tools, but lacks specialized tools for common DDL operations like creating tables. This gap is minor given the generic SQL approach.

Maintenance

ActivityInactive
ResponsivenessNo issues