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 |
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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shutterfly2011/database-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server