Skip to main content
Glama
0PValencia

db-introspector-mcp

by 0PValencia
README.md
# @0pvalencia/db-introspector-mcp

MCP introspector PostgreSQL (tablas, FKs, DOT ER).

## Cursor / Claude / VS Code

### Local (recomendado si clonas el repo)

```json
{
  "mcpServers": {
    "db-introspector": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/db-introspector-mcp/dist/cli.js"]
    }
  }
}
```

Tras clonar: `npm install && npm run build`.

### npx (sin clonar)

```json
{
  "mcpServers": {
    "db-introspector": {
      "command": "npx",
      "args": ["-y", "@0pvalencia/db-introspector-mcp"]
    }
  }
}
```

> Si abres este repo en Cursor y usas `npx`, hace falta `npm install && npm run build` para que el bin local exista. Sin eso, `npx` falla con `db-introspector-mcp: not found` y el MCP se queda cargando.

## Install / run

```bash
npx -y @0pvalencia/db-introspector-mcp
```

## Local

```bash
npm install
npm run build
npm start
```

## Tools

- `list_tables` / `describe_table` / `list_foreign_keys`
- `schema_summary`
- `er_dot` → pasar a diagram-studio-mcp (`engine=graphviz`)

Requiere `DATABASE_URL`.

Requiere `DATABASE_URL`.

## License

MIT

TDQS

B3.1/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: listing tables, describing a table's columns, listing foreign keys, generating an ER diagram in DOT format, and providing a schema summary. There is no overlap or ambiguity between them.

Naming Consistency4/5

Most tools follow a verb_noun pattern (list_tables, describe_table, list_foreign_keys), while er_dot and schema_summary use noun phrases. The style is still consistent (lowercase with underscores) and the deviations are minor and understandable.

Tool Count5/5

Five tools is a well-scoped count for a database introspector. Each tool covers a specific aspect of schema discovery and diagram generation without unnecessary bloat or missing essentials.

Completeness4/5

The tool set covers core introspection needs: tables, columns, foreign keys, ER diagram generation, and a summary. Minor gaps like indexes or views are missing, but the current surface is sufficient for typical schema exploration and diagram workflows.

Maintenance

ActivitySlowing
ResponsivenessNo issues