saravananjaichandar avatar

World Model Mcp

saravananjaichandar/world-model-mcp

A temporal knowledge graph that sits between your coding agent and your codebase to enforce constraints and prevent regressions. It validates API references before the agent calls them, learns from your corrections across sessions, and re-injects top constraints after context window compaction. The 26 MCP tools cover constraint management, contradiction resolution with confidence weighting, and compaction audit logs. Runs over stdio or HTTP, works with Claude Code, Cursor, and pi. The setup command auto-seeds the graph from your existing code, and the AGENTS.md reader pulls conventions from declarative markdown files alongside the SQLite store. Reach for this when you want long-term memory that survives context resets and stops your agent from repeating the same hallucinated function calls.

GitHub stars
24
tools
8
auth
Secret needed
transport
STDIO
env vars
4
last updated
Jul 24, 2026

Tools

8 tools

Public tool metadata for what this MCP can expose to an agent.

query_factFetch a stored fact with provenance + confidence + source

Fetch a stored fact with provenance + confidence + source

No parameter schema in public metadata yet.

record_eventAppend an event to the audit chain (`event_type` from a fixed enum)

Append an event to the audit chain (`event_type` from a fixed enum)

No parameter schema in public metadata yet.

validate_changeCheck a code-change proposal against learned constraints, returns violations + suggestions

Check a code-change proposal against learned constraints, returns violations + suggestions

No parameter schema in public metadata yet.

get_constraintsList all constraints matching an entity or file pattern

List all constraints matching an entity or file pattern

No parameter schema in public metadata yet.

record_correctionStore a user correction so it re-surfaces on next relevant query

Store a user correction so it re-surfaces on next relevant query

No parameter schema in public metadata yet.

get_related_bugsFetch bugs touching the given files + a per-file risk score

Fetch bugs touching the given files + a per-file risk score

No parameter schema in public metadata yet.

seed_projectBulk-ingest an existing codebase into the knowledge graph

Bulk-ingest an existing codebase into the knowledge graph

No parameter schema in public metadata yet.

ingest_pr_reviewsTurn recent PR review comments into constraints

Turn recent PR review comments into constraints

No parameter schema in public metadata yet.

Sponsors

Configuration

WORLD_MODEL_DB_PATHdefault: ./.claude/world-model/

Database location

ANTHROPIC_API_KEYsecret

Optional - enables LLM-powered entity extraction

WORLD_MODEL_EXTRACTION_MODELdefault: claude-3-haiku-20240307

Model for entity extraction

WORLD_MODEL_REASONING_MODELdefault: claude-3-5-sonnet-20241022

Model for complex reasoning

Readme

World Model MCP

Persistent memory + optional signed audit for AI coding agents.

world-model-mcp is persistent memory plus a post-quantum-signed, offline-verifiable audit trail for AI coding agents (FIPS 205 hybrid Ed25519 + SLH-DSA), MIT-licensed and fully local.

world-model-mcp ships a local SQLite knowledge graph your agent queries every turn: hallucinations become verifiable, corrections stick across sessions, and regressions get caught before they land. Flip on the audit chain and every event is signed with FIPS 205 hybrid Ed25519 + SLH-DSA, verifiable offline forever. MIT-licensed, runs entirely local, works with 10+ AI coding agents including Claude Code, Cursor, Codex, Continue, Cline, Windsurf, GitHub Copilot Chat, pi, OpenClaw, and Hermes Agent.


View the full README on GitHub

Details

Repository
github.com/saravananjaichandar/world-model-mcp
Categories
Documents & Knowledge, Automation & Workflows
Package
world-model-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Related Documents & Knowledge MCP servers

View all
1swih avatarMistral Mcpswih/mistral-mcpMistral MCP server: extract invoices and documents from text, Markdown or OCR into typed JSON.15stars
2xchucx avatarAgent Memoryxchucx/agent-memoryGit-native project memory for AI coding agents: Markdown source of truth, reviewable, secret-safe.15stars
3jackdark425 avatarAigroup Mdtoword Mcpjackdark425/aigroup-mdtoword-mcp本地 Markdown 到 Word 文档转换工具,支持最新 MCP 协议特性、完整的页眉页脚页码功能、增强的表格功能、数据导入和数学公式支持,修复本地相对路径图片嵌入问题12stars
4serkan-ozal avatarDriflyte Mcp Serverserkan-ozal/driflyte-mcp-serverDriflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.10stars
5simonsysun avatarSeekLinksimonsysun/seeklinkLocal read-only semantic search for Markdown vaults through MCP.10stars
6izzzzzi avatarCodeWiki MCP — AI-generated docs for GitHub reposizzzzzi/codewiki-mcpMCP server for codewiki.google: search repos, fetch wiki docs, ask questions9stars