Codex logo

Codex

by @ghostpaw

Stores source-backed agent beliefs in SQLite with search, review, revision, and privacy controls.

Install Codex

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ghostpaw-codex": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/codex",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ghostpaw-codex -- npx -y @ghostpaw/codex mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 8 tools correctly ().

Overview

@ghostpaw/codex gives agents a local SQLite memory store for claims that carry sources, certainty, evidence, decay, and revision history. It runs as a stdio MCP server and exposes seven tools for finding, reviewing, inspecting, recording, revising, retiring, and separating beliefs. Reach for it when agents need persistent memory that can be corrected and audited instead of appended blindly. npm and library use require Node.js 24+, while release binaries include their runtime.

Use cases

  • Search stored beliefs before generating an answer
  • Record claims with sources and provenance
  • Review stale or weakly supported knowledge
  • Correct or merge outdated beliefs
  • Delete beliefs for privacy or cleanup

Key features

  • SQLite-backed local belief storage
  • FTS5 BM25 and character-trigram search
  • Source, certainty, evidence, and provenance tracking
  • Revision history with confirm, correct, defer, forget, and merge actions
  • Belief dashboards, lineage, and related-item inspection
  • MCP, CLI, TypeScript library, and Agent Skill interfaces

Tools8

What Codex lets your agent do. Expand a tool for its parameters.

Verified live~2.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 24d

What it can do

From the 8 tools this server returned when we ran it; 8 declare their own safety hints.

Can delete or modify data · 2Makes changes · 5Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age250 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @ghostpaw/codex (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads2.5kPackage downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.

How Codex works

What @ghostpaw/codex does

@ghostpaw/codex manages agent memory as beliefs rather than undifferentiated notes. Each belief can include a claim, source, category, provenance, certainty, evidence counts, decay information, and a history of revisions. The local database uses SQLite, and the package has no runtime dependencies.

The project can be used as an MCP server, TypeScript library, command-line tool, or Agent Skill. These interfaces are generated around the same seven operations, so an agent can search existing knowledge before saving a new claim and can update an existing belief when information changes.

This makes the server suitable for local, evidence-backed memory in workflows where stale or weakly supported facts need visibility. It also supports deliberate cleanup, including permanent deletion and recording that two similar beliefs are intentionally different.

How it works

The MCP entry point is ghostpaw-codex mcp for an installed binary or npx -y @ghostpaw/codex mcp in an npm-based environment. Clients communicate with it over stdio. Beliefs are stored in a SQLite database, using ~/.ghostpaw/codex.db by default unless a database path is supplied through configuration or the command line.

Search combines SQLite FTS5 BM25 ranking with character-trigram similarity. This supports lexical recall while also identifying close textual matches. Review and inspection operations expose the condition of stored knowledge, including flags, trends, status information, belief metrics, related items, and lineage.

Setup and configuration

The npm package and library require Node.js 24 or newer:

Terminal
npm install -g @ghostpaw/codex
npx -y @ghostpaw/codex mcp

A release binary can also be installed for Linux, macOS, or Windows. The binary distribution includes its Node.js runtime. MCP clients configured for command-based servers can start ghostpaw-codex mcp; clients using npm can invoke the equivalent npx command.

Set GHOSTPAW_CODEX_DB to an absolute database path, or pass --db <path>, to choose a different location. In sandboxed OpenAI Codex CLI sessions, the database and its SQLite sidecar files must be inside a writable directory. The database can instead be made accessible by adding its parent directory to the sandbox writable roots.

Tools and capabilities

  • search_codex finds existing beliefs using full-text ranking and trigram similarity.
  • review_codex reports memory dashboards such as flags, status, trends, and logs.
  • inspect_codex_item returns a belief with its metrics, lineage, and nearby beliefs.
  • remember_belief records a claim together with source, category, and provenance.
  • revise_belief confirms, corrects, defers, forgets, or merges a belief.
  • retire_belief permanently deletes a belief for privacy or cleanup.
  • dismiss_proximity marks two similar beliefs as intentionally distinct.

Limitations and notes

The server is local and file-backed, so database placement matters in restricted environments. SQLite may need access to -wal and -shm files alongside the main database. Linux release binaries require glibc 2.28 or newer; npm usage is the documented option for Alpine systems. Release installers verify downloaded archives against SHA256SUMS, and optional attestation verification is available through GHOSTPAW_VERIFY=attestation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Codex

@ghostpaw/codex is an MCP server that connects agents to a local SQLite belief store. Its main tools search, review, inspect, remember, revise, retire, and separate beliefs, allowing agents to retain source-backed claims, examine their status, correct outdated information, and remove records when needed.

Install it with npm or use a release binary. Run `npm install -g @ghostpaw/codex`, then start `npx -y @ghostpaw/codex mcp`; alternatively install the platform binary and configure the client to run `ghostpaw-codex mcp`. npm and library usage require Node.js 24 or newer.

Set `GHOSTPAW_CODEX_DB` to an absolute path or pass `--db <path>`. Without either setting, beliefs are stored in `~/.ghostpaw/codex.db`. In sandboxed environments, keep the database and its SQLite sidecar files under a writable directory.

Yes. Cursor can start it as a stdio MCP server using `ghostpaw-codex mcp` in its MCP configuration. The same command-based setup applies to Claude Desktop and project `.mcp.json` configurations.

It combines SQLite FTS5 BM25 lexical ranking with character-trigram similarity. The `search_codex` tool uses both methods to recall matching beliefs and identify close textual similarities.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCodex AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ghostpaw-codex?style=directory)](https://allmcps.com/mcp/ghostpaw-codex)
HTML Embed
<a href="https://allmcps.com/mcp/ghostpaw-codex"><img src="https://allmcps.com/api/badge/ghostpaw-codex?style=directory" alt="Codex on AllMCPs" /></a>