Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

3d-db-mcp-zq

MCP server for 3d-db — visualize your database in 3D from Claude, Cursor, Windsurf, or any MCP client

Published24 Apr 2026
Direct dependencies8
Transitive dependenciesNot calculated

README

Current package documentation

3d-db MCP Server

Lets AI tools (Claude Desktop, Claude Code, Cursor, Windsurf, VS Code with GitHub Copilot/Cline/Continue) visualize your database schema in 3D — automatically, on command.

You do not need to clone any repository or run a dev server. The visualizer is bundled inside this package. The only requirement is Node.js.


Requirements

  • Node.js 18 or later — check with node --version. Download from nodejs.org if needed.
  • One of: Claude Desktop, Claude Code, Cursor, Windsurf, or VS Code (with GitHub Copilot, Cline, or Continue).
  • Your AI tool already connected to your database. This tool handles visualization only — it does not connect to your database directly.

Setup

Run this once in your terminal:

npx --yes --package 3d-db-mcp-zq db-viz-mcp setup

This detects which AI tools you have installed and configures them automatically. No config files to edit.

Then restart your AI tool and ask it:

"Load my database schema into the 3D visualizer"

A browser window opens with your schema in 3D.


VS Code (GitHub Copilot, Cline, Continue)

VS Code MCP config is project-scoped. Add .vscode/mcp.json to your project:

{
  "servers": {
    "3d-db": {
      "type": "stdio",
      "command": "npx",
      "args": ["--yes", "--package", "3d-db-mcp-zq", "db-viz-mcp"]
    }
  }
}

What your AI can do

load_schema

Loads your database schema into the 3D visualizer. Accepts JSON or SQL DDL.

Example prompt:

"Load my database schema into the 3D visualizer"

highlight_query

Highlights a SQL query — dims unrelated tables, draws the join path.

Example prompt:

"Show me how this query touches the database"

get_schema

Reads the current schema back from the visualizer, including tables, relationships, row counts, and optimization tips.

Example prompt:

"What does my schema look like right now? Any issues?"


How it works

The setup command patches your AI tool's config file to add:

{
  "command": "npx",
  "args": ["--yes", "--package", "3d-db-mcp-zq", "db-viz-mcp"]
}

When your AI tool starts a session, it runs this command automatically. The server:

  1. Picks an available port (starting at 4242)
  2. Generates a one-time session token
  3. Opens your browser at http://localhost:<port>?token=<token>
  4. Serves the 3D visualizer as a local web page
  5. Listens for tool calls from your AI

The server shuts down automatically when your AI session ends.


Security

  • Runs on localhost only — never exposed to the network
  • A random token is generated each session — no other tab or process can connect
  • No database credentials are stored or proxied — your AI tool handles the database connection
  • The server shuts down automatically when your AI tool session ends

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ws
Environment
{
  "local_name": "ws",
  "alias": false,
  "peer_metadata": null
}
^8.18.0runtime
open
Environment
{
  "local_name": "open",
  "alias": false,
  "peer_metadata": null
}
^10.1.0runtime
@modelcontextprotocol/sdk
Environment
{
  "local_name": "@modelcontextprotocol/sdk",
  "alias": false,
  "peer_metadata": null
}
^1.12.0runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.0development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
@types/ws
Environment
{
  "local_name": "@types/ws",
  "alias": false,
  "peer_metadata": null
}
^8.5.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.6.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5f82e8ce59a05dbf4dcdf618f6b535c8e8beb0af",
  "tarball": "https://registry.npmjs.org/3d-db-mcp-zq/-/3d-db-mcp-zq-0.1.0.tgz",
  "fileCount": 19,
  "integrity": "sha512-XUrdo9xrpS1PMClGSOBc5J2UaF0qE4dDLnDoWX3LG+eqHu8U9JErHp+W5+zaIGEhMToAu+4thyOtqQpVVI5C9Q==",
  "signatures": [
    {
      "sig": "MEYCIQDB/9W4ZAuZxAxM0ACgKTQ4gXwSLFi/haIe35ORhaRaZAIhALG1zRWP2tJhOlD/elRp4CBqKnDR5TJVK8mBflVRpFxu",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 4152157
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:30d9e25af96bbf3e8424ac68de52fc676628a834b8def73b2d66027c62efa67a

Other collected versions

0.1.424 Apr0.1.324 Apr0.1.224 Apr0.1.124 AprView all collected versions →