database-mcp
Provides tools for connecting to and managing MySQL databases, including executing queries, inspecting schemas, and tracking query history, with dev/prod access controls and real-time visualization.
Provides tools for connecting to and managing PostgreSQL databases, including executing queries, inspecting schemas, and tracking query history, with dev/prod access controls and real-time visualization.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@fcoder/database-mcp
MCP (Model Context Protocol) server for database management. Connect Claude and other AI agents to your PostgreSQL and MySQL databases with real-time visualization via WebSocket.
Features
Multi-driver support: PostgreSQL, MySQL
Dev/Prod environments: Free access for dev, write authorization required for prod
Real-time WebSocket: Bidirectional communication with frontend for table visualization, query results, and interactive operations
Pre-connection commands: Configure terminal commands (SSH tunnels, kops, etc.) that run before database connection
Up to 3 configurable terminals: Persistent terminal sessions for tunnels and other services
Cross-platform: Linux and Windows support
Local SQLite storage: Connection configs, terminal configs, and query history stored locally
Query history: Track all executed queries with duration and results
Related MCP server: PostgreSQL MCP Server
Installation
npm install @fcoder/database-mcpUsage with Claude
Add to your Claude MCP configuration:
{
"mcpServers": {
"database": {
"command": "npx",
"args": ["@fcoder/database-mcp"]
}
}
}Architecture
Clean Architecture with feature-based organization:
Tools: MCP tool definitions (query, schema, connection, terminal)
UseCases: Business flow orchestration
Domain: Pure business logic and entities
Infrastructure: Database drivers, SQLite, WebSocket, platform abstraction
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your Postgres from ChatGPT or Claude without exposing the database or handing over credentials. Run npx boltschema connect next to your database and it dials out over HTTPS — no inbound firewall rule, no open port, works with localhost and VPC-private databases. Read-only is enforced by a SQL guard, a Postgres READ ONLY transaction, and a scoped role generated for you.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Your AI Agent's Infrastructure Layer. Connect Claude, Copilot, Codex, or ChatGPT to 200+ managed open source services. Start databases, pipelines, and applications through natural language.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.-
- AlicenseNot gradedqualityCmaintenanceEnables secure, AI-driven PostgreSQL database administration, observability, and querying with support for extensions like PostGIS and pgvector, connection pooling, and advanced tool filtering.108 npm12MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to execute SQL queries and introspect PostgreSQL schemas, tables, and indexes with read-only safety by default. Supports optional write operations and works with Claude, LangChain, and other agents via stdio or HTTP transports.-
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to securely interact with PostgreSQL, MySQL, SQLite, and SQL Server databases, featuring read-only mode, query validation, SSH tunneling, and field redaction for production-safe data access.4MIT