# Cocaxcode Database MCP server

Source: https://glimind.com/server/mcp-registry%2Fio.github.cocaxcode%2Fdatabase-mcp
Registry id: `mcp-registry/io.github.cocaxcode/database-mcp`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "cocaxcode-database-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/database-mcp"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add cocaxcode-database-mcp-server -- npx -y @cocaxcode/database-mcp
```

## Tools (13)

- `add_scope`: Add a directory scope to a group
- `create_connection`: Create a new database connection in a group
- `create_group`: Create a new connection group
- `describe_table`: Show columns, foreign keys, and indexes for a table
- `dump_database`: Dump the database structure and/or data to a SQL file
- `list_connections`: List all connections in the current group
- `query`: Execute a SQL query with automatic LIMIT and pre-mutation snapshot
- `query_history`: Show query history for the current connection
- `restore_database`: Restore a database from a SQL dump file
- `rollback`: Undo the last mutation using reverse SQL
- `set_default_connection`: Set the default connection for a group
- `show_tables`: List all tables in the current database
- `switch_connection`: Switch the active connection for the current session

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
