{"id":31389153,"url":"https://github.com/abdelilahou/dbmcp","last_synced_at":"2026-04-11T14:02:41.729Z","repository":{"id":316661241,"uuid":"1064007202","full_name":"AbdelilahOu/DBMcp","owner":"AbdelilahOu","description":"The only Database MCP you need, supports multiple connections","archived":false,"fork":false,"pushed_at":"2026-03-26T14:52:26.000Z","size":6062,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T05:51:58.827Z","etag":null,"topics":["database","golang","mcp","mcp-server","mysql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbdelilahOu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T12:14:34.000Z","updated_at":"2026-03-26T14:52:58.000Z","dependencies_parsed_at":"2025-09-26T00:30:22.220Z","dependency_job_id":"0cd27cc0-ad97-4e19-89b1-4f70cbaea1b0","html_url":"https://github.com/AbdelilahOu/DBMcp","commit_stats":null,"previous_names":["abdelilahou/dbmcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbdelilahOu/DBMcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FDBMcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FDBMcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FDBMcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FDBMcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdelilahOu","download_url":"https://codeload.github.com/AbdelilahOu/DBMcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FDBMcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","golang","mcp","mcp-server","mysql","postgresql"],"created_at":"2025-09-28T23:59:13.091Z","updated_at":"2026-04-11T14:02:41.712Z","avatar_url":"https://github.com/AbdelilahOu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database MCP Server\n\nA Model Context Protocol (MCP) server that provides comprehensive database connectivity and query capabilities for Claude and other AI assistants. This server enables seamless interaction with databases through a standardized interface, supporting multiple database types and connection management.\n\n## What is this project?\n\nThis MCP server bridges the gap between AI assistants and database systems, allowing Claude to:\n\n- **Connect to multiple databases** - PostgreSQL, MySQL, and other SQL databases\n- **Execute queries safely** - With built-in validation and optional read-only modes\n- **Explore database schemas** - Inspect tables, columns, indexes, and relationships\n- **Analyze data** - Get table statistics and query performance insights\n- **Manage connections** - Switch between different database environments seamlessly\n\n## Key Features\n\n- **Multi-Database Support** - Connect to PostgreSQL, MySQL, and other SQL databases\n- **Security First** - Read-only mode, query validation, and secure credential handling\n- **Rich Schema Inspection** - Detailed table descriptions, column metadata, and index information\n- **Performance Analysis** - Query execution plans and table statistics\n- **Flexible Connection Management** - Named connections with easy switching\n- **AI-Optimized** - Designed specifically for AI assistant workflows\n\n## Tool Loading Modes\n\nUse `settings.advanced` in `connections.json` to control how many tools are registered:\n\n- `true` (default): load every tool listed below.\n- `false`: load only the core set most projects need — `list_connections`, `switch_connection`, `test_connection`, `get_db_info`, `list_tables`, `describe_table` (columns/indexes), `select_query`, and `execute_query`.\n\nExample settings block:\n\n```json\n\"settings\": {\n  \"query_timeout\": \"30s\",\n  \"max_connections\": 10,\n  \"connection_lifetime\": \"5m\",\n  \"advanced\": false\n}\n```\n\n## Available Tools\n\nThe server provides comprehensive database interaction capabilities through **28 specialized tools**:\n\n### Connection Management\n- `list_connections` - View all configured database connections\n- `switch_connection` - Change active database connection during sessions\n- `test_connection` - Verify database connectivity before operations\n\n### Database Discovery \u0026 Metadata\n- `get_db_info` - Access general database information and statistics\n- `list_tables` - Browse all available tables with metadata\n- `describe_table` - Get detailed table structure, columns, and indexes\n- `analyze_table` - Retrieve table statistics and performance metrics\n\n### Query Execution\n- `select_query` - Execute SELECT queries and retrieve data\n- `execute_query` - Execute data modification (INSERT, UPDATE, DELETE) and DDL statements\n- `show_query` - Execute SHOW commands for database settings\n\n### Foreign Keys \u0026 Relationships\n- `list_foreign_keys` - List all foreign key constraints with referenced tables and actions\n- `get_table_relationships` - Get incoming and outgoing relationships for a table\n\n### Views\n- `list_views` - List all views (separate from tables)\n- `get_view_definition` - Get SQL definition of a specific view\n- `list_materialized_views` - List materialized views (PostgreSQL only)\n\n### Sequences (PostgreSQL)\n- `list_sequences` - List all sequences in the database\n- `get_sequence_info` - Get detailed sequence information (current value, increment, etc.)\n\n### Triggers\n- `list_triggers` - List all triggers with events and timing information\n- `get_trigger_definition` - Get complete trigger SQL definition\n\n### Functions \u0026 Stored Procedures\n- `list_functions` - List all user-defined functions and stored procedures\n- `get_function_definition` - Get complete function source code\n\n### Enums (PostgreSQL)\n- `list_enums` - List all enum types in the database\n- `get_enum_values` - Get all possible values for a specific enum type\n\n### Column Search\n- `find_column` - Search for columns by name across all tables (supports partial matching)\n\n### Constraints\n- `list_constraints` - List all constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK)\n\n### Utilities\n- `generate_id` - Generate unique identifiers (UUID v1-v7, CUID, CUID2)\n\n## Use Cases\n\nThis MCP server is perfect for:\n\n- **Database Administration** - Schema exploration and maintenance tasks\n- **Data Analysis** - Querying and analyzing data with AI assistance\n- **Development Support** - Understanding database structures and relationships\n- **Performance Tuning** - Analyzing query plans and optimizing database performance\n- **Documentation** - Generating database documentation and schemas\n- **Migration Planning** - Understanding existing database structures\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelilahou%2Fdbmcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdelilahou%2Fdbmcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelilahou%2Fdbmcp/lists"}