mcp-db-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Server host | 0.0.0.0 |
| PORT | No | Server port | 8000 |
| DB_HOST | No | Database host | localhost |
| DB_NAME | No | Database name | postgres |
| DB_PORT | No | Database port | 5432 |
| DB_USER | No | Database username | postgres |
| LLM_MODEL | No | Model name for the configured LLM provider. | |
| DB_PASSWORD | No | Database password | postgres |
| LLM_API_KEY | No | API key for the LLM provider. Can be used as an alternative to ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENROUTER_API_KEY. | |
| DATABASE_URL | No | Full database connection URL (e.g., postgresql+asyncpg://user:password@host:5432/dbname, mysql+aiomysql://user:password@host:3306/dbname) | postgresql+asyncpg://postgres:postgres@localhost:5432/postgres |
| LLM_BASE_URL | No | Base URL for Ollama (or compatible) endpoint. | http://localhost:11434 |
| LLM_PROVIDER | No | LLM provider to use for natural language to SQL conversion: anthropic, openai, openrouter, or ollama. If unset, uses rule-based fallback. | |
| OPENAI_API_KEY | No | OpenAI API key (alternative to LLM_API_KEY for OpenAI). | |
| ANTHROPIC_API_KEY | No | Anthropic API key (alternative to LLM_API_KEY for Anthropic). | |
| OPENROUTER_API_KEY | No | OpenRouter API key (alternative to LLM_API_KEY for OpenRouter). | |
| ALLOW_WRITE_OPERATIONS | No | Set to 'true' to enable potentially destructive write tools (execute_unsafe_sql, create_table, insert_data, update_data, delete_data). | false |
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
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessNo issues