npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

3d-db-mcp-zq

v0.1.4

Published

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

Readme

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