SaravananJaichandar/world-model-mcp
by Various
A production-ready MCP server that builds a world model for codebases, preventing hallucinations, repeated mistakes, and regressions in Claude Code.
MCP
SaravananJaichandar/world-model-mcp
Added 7 June 2026
Overview
An MCP server that builds a persistent world model of a codebase to reduce hallucinations, repeat mistakes, and regressions when working with Claude Code. It runs in Python and provides structured context to improve the consistency of AI-generated code suggestions.
Best for
Best for
Developers using Claude Code who need more reliable, context-aware code generation
Use cases
- Integrating with Claude Code to maintain accurate context across sessions
- Preventing repeated coding errors by tracking past mistakes in the codebase
- Avoiding regressions by ensuring new code aligns with existing patterns and constraints
How to use
Install
pip install -U world-model-mcp && world-model demo Tools exposed
query_factrecord_eventvalidate_changeget_constraintsrecord_correctionget_related_bugsseed_projectingest_pr_reviewsWORLD_MODEL_AUDIT_LOGWORLD_MODEL_DB_PATHWORLD_MODEL_TELEMETRYANTHROPIC_API_KEY
Tested with
Claude Desktop, Claude Code, Cursor, Windsurf, Cline, Continue, VS Code
Example client config
WORLD_MODEL_AUDIT_LOG=on\nWORLD_MODEL_VERIFICATION_BACKEND=openai-compatible Notes
An MCP server that builds a persistent world model of a codebase to reduce hallucinations, repeat mistakes, and regressions when working with Claude Code. It runs in Python and provides structured context to improve the consistency of AI-generated code suggestions.
4 stars on GitHub. Last updated 2026-06-05. Licensed MIT.
Use cases
- Integrating with Claude Code to maintain accurate context across sessions
- Preventing repeated coding errors by tracking past mistakes in the codebase
- Avoiding regressions by ensuring new code aligns with existing patterns and constraints
Pros
- Reduces LLM hallucinations by grounding responses in a live codebase model
- Production-ready design suitable for ongoing development workflows
- Explicitly targets common pain points like error repetition and regressions
Cons
- Tightly coupled to Claude Code, limiting broader LLM tool compatibility
- Requires a running MCP server and Claude Code setup, adding infrastructure overhead
- Stars count suggests a young or niche repository with limited community validation
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Reduces LLM hallucinations by grounding responses in a live codebase model
- Production-ready design suitable for ongoing development workflows
- Explicitly targets common pain points like error repetition and regressions
Cons
- Tightly coupled to Claude Code, limiting broader LLM tool compatibility
- Requires a running MCP server and Claude Code setup, adding infrastructure overhead
- Stars count suggests a young or niche repository with limited community validation
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
oraios/serena
Various
A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
repowise-dev/repowise
Various
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
