World Model MCP logo

World Model MCP

by SaravananJaichandar

Local MCP memory and audit server for coding agents, with codebase facts, change validation, bug risk, and signed event history.

Install World Model MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "saravananjaichandar-world-model-mcp": {
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio saravananjaichandar-world-model-mcp -- uvx world-model-mcp

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx world-model-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

SaravananJaichandar/world-model-mcp gives coding agents persistent memory for codebase decisions, corrections, reviews, and change history through a local SQLite knowledge graph. Its MCP tools can ingest projects, retrieve facts with provenance, connect bugs to files, learn constraints, and validate proposed edits before they are applied. An optional local audit chain hash-links events and seals epochs with hybrid Ed25519 and SPHINCS+ signatures for offline verification. Reach for it when an agent needs cross-session project context, review-derived safeguards, or regression-risk signals without sending the knowledge graph to a hosted service.

Use cases

  • Seed an existing repository into persistent agent memory
  • Validate proposed edits against learned project constraints
  • Record corrections that should reappear in later sessions
  • Find related bugs and file-level regression risk
  • Turn pull-request review comments into reusable constraints

Key features

  • Local SQLite knowledge graph with FTS5
  • Fact provenance, confidence, and source tracking
  • PreToolUse constraint validation for edits
  • Bug-to-file links with risk scores
  • Optional hybrid-signed offline audit chain
  • Support for seven programming languages

Tools8

What World Model MCP lets your agent do. Expand a tool for its parameters.

Self-reported~153 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.

15/17 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · world-model-mcp (PyPI)

Adoption & maintenance

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

GitHub stars25Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed8Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How World Model MCP works

What SaravananJaichandar/world-model-mcp does

SaravananJaichandar/world-model-mcp provides persistent project memory for AI coding agents. It stores codebase knowledge in local SQLite databases and exposes that knowledge through MCP, allowing an agent to query facts, record events, preserve user corrections, and apply learned rules during editing.

The project also supports an optional signed audit trail. Events can be arranged into a hash-linked chain and closed epochs can be signed with a hybrid Ed25519 and SPHINCS+ scheme. The resulting records are designed for offline verification, so an audit can be checked without relying on a running hosted service or an account.

How it works

A project can be seeded into the knowledge graph, after which the agent can query stored facts and their provenance, confidence, and source. Pull requests can contribute review comments that become constraints. As the agent records decisions, corrections, test-related events, or other supported event types, later queries can surface that context again.

Change validation operates at the proposed-edit boundary. The agent submits a change for checking, and the server compares it with constraints associated with the relevant entity or file pattern. Results include violations and suggestions. Related-bug queries return bugs touching requested files along with a per-file risk score, which can help focus review before a change lands.

The implementation uses nine SQLite databases with FTS5 support. It is intended to run locally and supports projects using Python, TypeScript, JavaScript, Solidity, Go, Rust, and Java.

Setup and configuration

Install the package with pip:

Terminal
pip install -U world-model-mcp

The package requires Python 3.11 or newer. A quick local demonstration is available through:

bash
world-model demo

The demo creates sample signed decisions, verifies the resulting epoch, modifies one byte to demonstrate an invalid verification result, and then restores the data. It writes a receipt JSON file in the working directory and prints a browser-verification URL. The core package is MIT licensed and runs locally.

Tools and capabilities

The exposed MCP tools include:

  • query_fact: Retrieve a fact with its provenance, confidence, and source.
  • record_event: Append an event to the audit chain using a fixed event-type enum.
  • validate_change: Check a proposed code change and return constraint violations and suggestions.
  • get_constraints: Find constraints matching an entity or file pattern.
  • record_correction: Save a user correction for later relevant queries.
  • get_related_bugs: Find bugs associated with files and return per-file risk scores.
  • seed_project: Bulk-ingest an existing codebase.
  • ingest_pr_reviews: Convert recent pull-request review comments into constraints.

A PreToolUse hook can enforce learned constraints at the edit boundary. The server is compatible with MCP-capable clients; documented coding-agent integrations include Claude Code, Cursor, Codex, Continue, Cline, Windsurf, GitHub Copilot Chat, pi, OpenClaw, and Hermes Agent.

Limitations and notes

The audit signatures use the SPHINCS+ round 3.1 byte format rather than the later FIPS 205 SLH-DSA format, so verification should use the package’s etch-verify implementation. The hosted etch.systems service is a separate managed option; the open-source package is the local implementation and offline reference verifier. The available event types are restricted to a fixed enumeration, and constraint enforcement depends on the project knowledge and review data that have been ingested.

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 World Model MCP

SaravananJaichandar/world-model-mcp is an MCP server that connects coding agents to a local SQLite knowledge graph for codebase memory and audit history. Its main tools query facts, record events and corrections, seed projects, ingest PR reviews, retrieve constraints and related bugs, and validate proposed code changes.

Install it with `pip install -U world-model-mcp`. Python 3.11 or newer is required. After installation, run `world-model demo` to exercise the local signed-audit demonstration and produce a verification receipt.

Yes, Cursor is one of the documented AI coding clients. The server exposes standard MCP tools, and the project lists Cursor among its supported integrations alongside Claude Code, Codex, Continue, Cline, and Windsurf.

It validates proposed changes with the `validate_change` tool. The tool checks the proposal against learned constraints and returns violations with suggestions. Constraints can be retrieved by entity or file pattern, and pull-request review comments can be ingested as additional constraints.

Yes, its optional audit trail is designed for offline verification. Events are hash-chained and epochs use hybrid Ed25519 and SPHINCS+ signatures. The package includes the `etch-verify` verifier, and `world-model demo` creates a receipt and demonstrates tamper detection locally.

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 PreviewWorld Model MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/saravananjaichandar-world-model-mcp?style=directory)](https://allmcps.com/mcp/saravananjaichandar-world-model-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/saravananjaichandar-world-model-mcp"><img src="https://allmcps.com/api/badge/saravananjaichandar-world-model-mcp?style=directory" alt="World Model MCP on AllMCPs" /></a>