Enterprise DNA Enterprise DNA
M MCP Servers Developer low

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

#ai-coding #claude-code #context-graphs #knowledge-graph #mcp-server #python #typescript

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

Tools exposed

  • world-model doctor
  • prove_entry_inclusion
  • get_audit_log_head

Tested with

Claude Code, Cursor, Codex, pi, OpenClaw, Hermes Agent, Continue, GitHub Copilot Chat

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
Free 27-page guide

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.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks