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

@mindflight/ghostcrab-personal-mcp

v0.6.5

Published

SQLite-backed MCP memory server (MindBrain + Zig backend), part of the MindBrain ecosystem.

Readme

GhostCrab official website | mindBrain official website

GhostCrab Personal MCP

Current release: @mindflight/[email protected] · MindBrain backend 1.8.0 · MCP tool surface 2026-07-10

The MCP interface to mindBrain — SQLite edition

This is the personal, local distribution of GhostCrab MCP. It runs on SQLite, installs inside your project in seconds, and requires zero infrastructure.

Looking for the team or enterprise version? GhostCrab Pro runs on PostgreSQL and is built for multi-tenant, multi-agent deployments. → mindflight-orchestrator/ghostcrab-pro-mcp


What is mindBrain?

mindBrain is a structured knowledge engine for AI agents. Instead of storing memory as text blobs or vector embeddings, mindBrain gives agents a queryable, multi-dimensional knowledge base built around three primitives:

  • Facets — filter, aggregate, and track state across entities
  • Graph — map dependencies and traverse relationships across multiple hops
  • Projections — snapshot working context so agents resume exactly where they stopped

mindBrain runs on SQLite in this personal distribution, and on PostgreSQL in the Pro/Enterprise distribution. You can also store embeddings and enable a BM25 search. It offers a full solution but powered by a deterministic engine that enables agents to navigate quickly on the content before searching for it.

What is GhostCrab MCP?

GhostCrab MCP is the agent-facing interface to mindBrain. It exposes mindBrain through the full ghostcrab_* tools/list catalog (memory, graph, workspace, ontology, loadout, artifact, and maintenance workflows), with a curated subset flagged as recommended defaults. Use gcp tools verify for the current generated counts. Any MCP-compatible agent (Cursor, Claude Code, Codex, OpenClaw, and others) can query structured knowledge, update durable memory, and navigate relationships natively, without custom integration code.

GhostCrab MCP does not own the data. mindBrain does. GhostCrab MCP is the door.

New here? Start with What is GhostCrab? — then jump to Install.


What is GhostCrab?

Most AI agent setups persist memory as text blobs or vector embeddings. That works for "find something similar." It breaks down when an agent needs to:

  • Filter hundreds of entities by multiple criteria simultaneously
  • Understand that Entity A blocks Entity B which depends on Entity C (multi-hop reasoning)
  • Pick up a complex task mid-workflow without re-reading everything from scratch

GhostCrab solves all three through three interlocking primitives:

| Primitive | What it does | Example | | --------------- | -------------------------------------------------- | ------------------------------------------------------------------ | | Facets | Filter, aggregate, and track state across entities | "Show all compliance items flagged this week, grouped by severity" | | Graph | Map dependencies and traverse relationships | "What does this feature block, two levels deep?" | | Projections | Snapshot working context so agents can resume | "What was I doing in this workspace yesterday?" |

These work together inside mindBrain. There is no flat document pile — the data has structure your agents can reason against.

How GhostCrab+mindBrain compares to alternatives

(See the /docs/comparisons/ folder for 10 detailed side-by-side breakdowns.)

The short version:

  • vs. vector stores (Pinecone, Weaviate, Chroma): Those answer "what is similar to X?" GhostCrab answers "what matches these filters, has these relationships, and was last touched in this state?" Complementary tools, not substitutes.
  • vs. plain memory tools (mem0, basic MCP memory servers): Those store and retrieve text. GhostCrab stores structured ontologies with typed relationships and multi-dimensional queries into mindBrain.
  • vs. graph databases (Neo4j, FalkorDB): Full graph DBs are powerful but heavy. GhostCrab embeds a graph model directly in SQLite via mindBrain — zero infrastructure, same project directory, MCP-native. In the Pro version it manages 4.3 billion objects per table.

Architecture in 60 seconds

Your IDE / Agent
      │  MCP stdio
      ▼
GhostCrab MCP Server (Node.js)
  ghostcrab_* tools — validates requests, routes to backend
      │  HTTP
      ▼
mindBrain Backend (Zig)
  Listens on :8091 — owns the SQLite file, schema bootstrap, workspace logic
      │
      ▼
~/.ghostcrab/databases/ghostcrab.sqlite   ← your structured knowledge base

The MCP server never touches the SQLite file directly. mindBrain owns it. This separation means you can run multiple agent clients pointing at the same backend.


Install

Prerequisites

  • Node.js 20+
  • Network access (to pull the platform-specific native binary on first install)

Step 1 — Install the package

From your project directory:

npm install @mindflight/ghostcrab-personal-mcp@latest

Or globally if you prefer:

npm install -g @mindflight/ghostcrab-personal-mcp@latest

(@latest tracks the same tag once npmjs has propagated the release.)

pnpm users: pnpm 10+ blocks postinstall scripts by default. Run this once:

pnpm add --allow-build=@mindflight/ghostcrab-personal-mcp @mindflight/ghostcrab-personal-mcp@latest

After install, postinstall creates a ./data/ directory, copies .env.example.env if no .env exists, and adds symlinks to key docs at your project root.

Run the commands below from that same project directory (or from the folder created by the beta zip’s install-beta.mjs). Do not run them from the GhostCrab git clone unless you are developing the package — bare npx gcp there can trigger npm reify errors (SIGTERM). Use the explicit form below, or node bin/gcp.mjs … as a contributor.

Step 2 — Verify the CLI works

npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain up --help

Then a quick smoke check (stops itself after 8 seconds):

timeout 8 npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain up

You should see mindBrain start and a SQLite path printed. If this fails, fix it before wiring your IDE — the IDE just runs this same command.

If you see spawn gcp ENOENT, run:

npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup cursor --force

Step 3 — Wire your IDE or agent

Run the setup command for your environment:

# Cursor
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup cursor --force

# Claude Code
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup claude

# Codex
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup codex

# Generic MCP client / portable agent skills
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup generic

This registers the MCP server, installs the GhostCrab skill bundle + MCP permission presets for that host, and removes stale legacy ghostcrab entries for Cursor. generic prints MCP JSON/TOML snippets and installs portable .agents/skills.

Setup installs three things: MCP registration, IDE skills + permissions, and the ~/.ghostcrab/bin PATH shim. Skills and permissions are applied even when MCP registration fails (the command warns and exits non-zero so CI still notices). Verify skills with the log line Installed IDE skill bundle (…) — MCP alone is not enough.

Claude Code: install the claude CLI on PATH before setup (npm install -g @anthropic-ai/claude-code). Prefer setup without --force on first install; use manual claude mcp remove if you need to replace an existing entry.

Skills only (no MCP registration — repair after a partial install, or refresh skills without touching mcp.json / claude mcp add):

npx gcp brain setup_skills claude
npx gcp brain setup_skills cursor --force   # overwrite existing skill files

After setup completes, open a new terminal so ~/.ghostcrab/bin/gcp is on your PATH — then bare gcp … works for day-to-day use.

More detail: INSTALL.md and installations/gcp-brain-setup.md (gcp brain setup --help, gcp brain setup_skills --help).

Step 4 — Start using it

Your agent client starts GhostCrab automatically via:

gcp brain up    # or: gcp up | gcp start | legacy gcp serve

This launches mindBrain, resolves the SQLite file (default ~/.ghostcrab/databases/ghostcrab.sqlite when no project-local ./data/ghostcrab.sqlite applies), and holds stdio open for MCP traffic. You do not need to run this manually — your MCP host handles it. Stop the backend with gcp brain down (or gcp down) when running database-backed CLI imports.


UPGRADE

After updating to a new GhostCrab release, run the upgrade helper to migrate all detected SQLite databases (including old versions and sidecar files):

npx gcp brain upgrade

v0.6.0 database break: v0.6.0 makes answer artifacts workspace-owned. Older Personal SQLite databases may need a one-time preparation step before upgrade if they contain legacy analysis_plan rows with workspace_id = NULL. Test on a copy first and follow the special v0.6 migration runbook.

To target a specific database:

npx gcp brain upgrade --db /path/to/ghostcrab.sqlite

The upgrade stops running GhostCrab processes, backs up each database under ~/.ghostcrab/backups/, starts the native MindBrain backend once per database to apply schema changes, then prints a report. Look for lines such as:

  db: /path/to/ghostcrab.sqlite
    migration: applied | up-to-date | failed
    migrations applied this run (N):
      + 2026-06-03-…
    schema migrations on disk: N migrations
      - …

migration: up-to-date means no pending MindBrain schema migrations were left to apply. --dry-run lists what would run without writing backups or starting the backend.

Schema evolution: new tables are created automatically on startup (CREATE IF NOT EXISTS). Destructive or complex changes run as tracked migrations in mindbrain_schema_migrations. Upgrading an older database adds missing tables but does not yet add missing columns on tables that already existed — run upgrade before importing a backup from an older export if the target DB predates the release.

Useful options:

  • --default uses ~/.ghostcrab/databases/ghostcrab.sqlite
  • --dry-run shows what would be migrated, without writes
  • --no-kill-mcp skips stopping running GhostCrab processes
  • --skip-config-cleanup skips MCP config file refresh (use when upgrading a client DB that is not your primary IDE database)

You can also force package resolution:

npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain upgrade

Restore a backup onto an upgraded database

Backups are logical JSON bundles (kind: ghostcrab_backup_bundle), not raw SQLite dumps. To import an export from an older GhostCrab version onto a database at the current release:

# 1. Stop MCP / backend on the target DB
gcp brain down --db /path/to/ghostcrab.sqlite

# 2. Apply schema + MindBrain migrations
gcp brain upgrade --db /path/to/ghostcrab.sqlite --skip-config-cleanup

# 3. Preflight import (no writes)
gcp brain load ./my_ws.backup.json --db /path/to/ghostcrab.sqlite --dry-run

# 4. Import and rebuild derived indexes
gcp brain load ./my_ws.backup.json --db /path/to/ghostcrab.sqlite --reindex all

# If the bundle workspace already exists and should be replaced:
gcp brain load ./my_ws.backup.json --db /path/to/ghostcrab.sqlite --overwrite --confirm --reindex all

Use --skip-config-cleanup on step 2 when the SQLite file belongs to a project-specific database rather than your default IDE install.

Since 0.6.5, gcp load preflights bundles against the workspace-strict schema: legacy exports whose mindbrain_answer_artifacts rows carry workspace_id: null are backfilled when --workspace <id> is passed, otherwise the load fails fast and names the offending artifacts instead of a bare engine error.

Load the immeuble demo bundle

The canonical immeuble demo dataset ships with @mindflight/mindbrain-personal-studio (examples/immeuble/bundle/immeuble.bundle.json there; run pnpm load:demo from the Studio). To load any demo/backup bundle directly with this package, always pass --workspace immeuble:

gcp load path/to/immeuble.bundle.json --workspace immeuble --reindex all
# or, from a GhostCrab package checkout:
pnpm run demo:load

Note: there is no pnpm load demo shorthand — the script name is demo:load in this package and load:demo in the Studio.


Supported environments

| Environment | Setup command | Skills only | Reference | | ------------------------------------------ | -------------------------------- | -------------------------------- | -------------------------------------------------------------------- | | Cursor | gcp brain setup cursor --force | gcp brain setup_skills cursor | installations/gcp-brain-setup.md | | Claude Code | gcp brain setup claude | gcp brain setup_skills claude | installations/gcp-brain-setup.md | | Codex | gcp brain setup codex | gcp brain setup_skills codex | installations/gcp-brain-setup.md | | OpenClaw, Gemini CLI, Hermes-style, custom | gcp brain setup generic | gcp brain setup_skills generic | installations/ | | mindBot (orchestration) | — | — | ghostcrab-skills/ |


CLI — bulk import and reference

MCP is the ontology, memory, graph, and query surface (ghostcrab_search, ghostcrab_remember, ghostcrab_ontology_import, …). High-throughput tabular/document import still runs through gcp brain wrappers around the native MindBrain engine — not MCP streaming. Stop MCP / ghostcrab-backend before database-backed CLI import commands (or pass --force).

Discover commands

gcp --help
gcp brain --help
gcp brain docs --list
gcp brain docs structured    # full tabular runbook (Markdown)
gcp brain docs document      # full document runbook (Markdown)
gcp brain docs import        # both runbooks
gcp brain structured-import --help
gcp brain document --help
gcp brain ontology --help

Import pipelines

| Pipeline | CLI | Full runbook (installed package) | | --------------------------------------------- | --------------------------------------------------------------- | -------------------------------- | | Ontology (LinkML YAML, OWL/RDF N-Triples) | ghostcrab_ontology_import (MCP) or gcp brain ontology (CLI) | docs/explanation/ontology/ | | Tabular (CSV, JSON, YAML, XLSX, TOON) | gcp brain structured-import | gcp brain docs structured | | Documents (PDF, HTML, MD corpus) | gcp brain document | gcp brain docs document |

Typical tabular order: register-semanticsapply (or Phase D: ddl-proposeddl-executeload-wsapply with mapping data_plane=ws) → reindex --scope all.

Document flow (thin slice): document-normalizedocument-ingestqualification-vocab-list → optional document-profile / document-qualify. See gcp brain docs document for no-LLM and LLM paths.

For ontology source files, use ghostcrab_ontology_import from MCP when the agent owns the workflow. Use gcp brain ontology compile|import|export for operator scripts, dry-run artefacts, or offline maintenance. Do not import LinkML with ghostcrab_remember, ghostcrab_upsert, ghostcrab_learn, ghostcrab_schema_register, or ghostcrab_graph_gap_rules_import; those write memory, graph instances, agent schemas, or diagnostics rules rather than native ontology_* tables.

After import, agents query via MCP (ghostcrab_search, ghostcrab_graph_search, ghostcrab_graph_reindex, …).

In-package reference files

  • docs/reference/gcp-commands.md — JTBD command table
  • docs/setup/structured-import.md — tabular operator guide
  • docs/setup/document-import.md — document operator guide
  • docs/architecture/universal_methodology.md — facets → projections → import → reports

Backup / ontology (same SQLite file). For cross-version restore, see Restore a backup onto an upgraded database under UPGRADE.

npx gcp brain backup --workspace-id my_ws --output ./my_ws.backup.json
npx gcp brain ontology import --workspace-id my_ws --ontology-id my_ws::owl --input ./ontology.nt --materialize-graph
npx gcp brain load ./my_ws.backup.json --dry-run
npx gcp brain load ./my_ws.backup.json --db /path/to/ghostcrab.sqlite --reindex all
npx gcp brain load ./my_ws.backup.json --db /path/to/ghostcrab.sqlite --overwrite --confirm --reindex all

Model compatibility

GhostCrab works with any model your client exposes. Reliability varies by how well the model follows mindBrain conventions (intake questions, structured projections, graph usage).

| Tier | Models | Behavior | | -------------------- | ------------------------------------------------- | ------------------------------------------------------------- | | 1 — Full | Composer 2 Fast, Kimi 2.5, Sonnet 4.5+, Opus 4.5+ | Consistent onboarding, graph, and projection adherence | | 2 — With caveats | Haiku 4.5 | Good first turn; may drop graph or projections in later turns | | 3 — Partial | Gemini 2.5 Flash | Weak template adherence; data quality degrades |

Use Tier 1 models for first workspace setup or fuzzy onboarding. Lighter models work fine for narrow, well-scoped tasks once conventions are established.


MCP tool surface

The MCP tools/list surface exposes the full catalog (72 tools in v0.6.0) so every tool is directly callable on any MCP client (Cursor, Codex, Claude Code, generic). 13 tools are flagged as recommended defaults (status, search/count, combined search, remember/upsert, schema get/list/inspect, pack/project, modeling guidance, tool discovery); the other 59 are extended (workspace, graph, loadout, DDL, quality, ontology, and more). Inspect counts and metadata through:

gcp tools list
gcp tools verify
gcp --info

Agents can also discover extended tools at runtime with ghostcrab_tool_search.

| Group | Examples | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Recommended defaults | ghostcrab_status, ghostcrab_search, ghostcrab_count, ghostcrab_combined_search, ghostcrab_remember, ghostcrab_upsert, ghostcrab_schema_get, ghostcrab_schema_list, ghostcrab_schema_inspect, ghostcrab_pack, ghostcrab_project, ghostcrab_modeling_guidance, ghostcrab_tool_search | | Facets / Search (extended) | ghostcrab_csearch, ghostcrab_facet_catalog, ghostcrab_facet_register, ghostcrab_collection_facet_search, ghostcrab_entity_chunks | | Graph (extended) | ghostcrab_graph_search, ghostcrab_graph_subgraph, ghostcrab_graph_path, ghostcrab_traverse, ghostcrab_graph_reindex, ghostcrab_graph_gap_rules_import, ghostcrab_graph_rule_evaluations_run, ghostcrab_graph_rule_evaluations, ghostcrab_graph_rule_events, ghostcrab_learn | | Projections / Artifacts (extended) | ghostcrab_projection_get, ghostcrab_projections_list, ghostcrab_artifact_get, ghostcrab_live_refresh | | Schema / Workspace (extended) | ghostcrab_schema_register, ghostcrab_schema_sync_preview, ghostcrab_workspace_list, ghostcrab_workspace_create, ghostcrab_workspace_use, ghostcrab_workspace_reset, ghostcrab_ddl_propose | | Loadout / Ontology / Quality (extended) | ghostcrab_loadout_apply, ghostcrab_onboarding_schemas, ghostcrab_ontology_import, ghostcrab_quality_convergence_run, ghostcrab_coverage |

Full references: docs/reference/mcp-tools.md and docs/reference/operator-catalog.md.


For AI agents handling installation

This section is written for autonomous agents executing setup tasks, not for human readers.

Canonical install sequence

# 1. Install package (local preferred over global)
npm install @mindflight/ghostcrab-personal-mcp@latest

# 2. Authorize native binary if prompted
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp authorize

# 3. Smoke-check the backend (expect SQLite path + MCP ready on stdout)
timeout 8 npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain up

# 4. Register MCP entry for your host
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup <cursor|claude|codex|generic> --force

# 5. Confirm entry written
npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain up --help

Environment variables (.env)

.env is created from .env.example during postinstall. Key overrides:

| Variable | Default | Purpose | | ------------------------ | ----------------------------------------- | ------------------------------- | | GHOSTCRAB_SQLITE_PATH | ~/.ghostcrab/databases/ghostcrab.sqlite | SQLite file location | | GHOSTCRAB_BACKEND_ADDR | :8091 | mindBrain HTTP listen address | | MCP_TELEMETRY | 1 | Set to 0 to disable telemetry |

Error recovery

| Error | Cause | Fix | | ------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | spawn gcp ENOENT | Stale or relative-path mcp.json entry | npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup <host> --force | | MCP registered but skills missing | Partial setup (MCP failed before decoupling fix, or manual MCP edit) | npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup_skills <host> — installs skills + permissions without touching MCP | | npm error could not determine executable | Missing postinstall run | npx -y --package=@mindflight/ghostcrab-personal-mcp@latest gcp brain setup <host> --force | | npm error process terminated / SIGTERM on npx gcp | Bare npx gcp from git clone, npm link, or stale node_modules | Use the explicit --package=@mindflight/ghostcrab-personal-mcp@latest form above; run gcp path doctor; reinstall global from registry (npm uninstall -g @mindflight/ghostcrab-personal-mcp && npm install -g @mindflight/ghostcrab-personal-mcp@latest) | | Ignored build scripts (pnpm) | pnpm 10+ security default | pnpm add --allow-build=@mindflight/ghostcrab-personal-mcp @mindflight/ghostcrab-personal-mcp@latest | | Native binary missing | Platform prebuild not pulled | Add tarball from local build or beta zip — see INSTALL.md |

Native binary

postinstall installs a platform-specific optional dependency automatically (linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64, win32-arm64). If the platform package is absent, mindBrain will not start — add the tarball manually per INSTALL.md.

Telemetry

Enabled by default. Sends anonymous pings to https://telemetry.ghostcrab.be/v1/ping. No prompts, no DB payloads. Disable with MCP_TELEMETRY=0 or --no-telemetry. Policy: https://telemetry.ghostcrab.be.

Submodule note (contributors only)

MindBrain ships as a Git submodule at vendor/mindbrain (1.8.0 series, pinned to a Zig 0.16 compatibility hotfix on top of v1.8.0 in v0.6.5 — check git submodule status for the exact pin). Clone with:

git clone --recurse-submodules https://github.com/mindflight-orchestrator/ghostcrab-personal-mcp.git
cd ghostcrab-personal-mcp
pnpm install && pnpm run build
node bin/gcp.mjs brain up

Upstream: github.com/mindflight-orchestrator/mindbrain. Consumer install: INSTALL.md.


Going further

  • INSTALL.md — Beta zip, Git install, document import, gcp brain document
  • docs/setup/gcp-client-setup.md — Full CLI reference
  • installations/ — Agent setup templates
  • docs/dev/INTERNALS.md — Repository layout, packaging, Docker dev stack

A starter Kit

To start a full project to create your first ontology, you could add this starter kit skills :

https://github.com/mindflight-orchestrator/starter-kit-ghostcrab-perso