Persistent 3D/2D spatial world model for AI agents with entity tracking and simulation.
The io.github.putervision/world-model-mcp server provides a persistent 3D/2D spatial world model for AI agents. It focuses on entity tracking and simulation, enabling agents to maintain and reason about spatial context over time.
๐ ๏ธ Key Features
Persistent 3D/2D spatial world model
Entity tracking
Simulation
๐ Use Cases
Maintaining spatial context for AI agents in 3D and 2D environments
Tracking entities over time for agent reasoning
Simulating changes in a spatial world model
โก Developer Benefits
A shared spatial world model interface centered on persistence, tracking, and simulation
โ ๏ธ Limitations
Available information does not specify supported protocols, tool names, or configuration details.
@putervision/world-model-mcp is a zero-infrastructure, deterministic Model Context Protocol (MCP) server that maintains a persistent 3D/2D spatial world model for AI agents. It bridges perception (@putervision/vision-memory-mcp) and reasoning/action (@putervision/state-memory-mcp) with durable entity tracking, object permanence with confidence decay, movement simulation with AABB collision avoidance, expected view frustum projection, and Playwright 3D game automation.
# 1. Install globally
npm install -g @putervision/world-model-mcp
# 2. Navigate to your project directorycd your-project
# 3. Initialize world-model-mcp# Creates .world-model-mcp/, updates .gitignore, registers project,# and scaffolds IDE instructions and MCP configs for Cursor, Claude, VS Code, Windsurf, etc.
world-model-mcp init
# Done! Restart your IDE or Agent Manager to activate.
Alternative Options
bash
# Run directly via binary (after global install)
world-model-mcp run
# Launch interactive 3D WebGL Scene Visualizer
world-model-mcp view
# Display database metrics and permanence confidence stats
world-model-mcp stats
๐ Key Highlights
๐ Deterministic 3D/2D Spatial Memory: Zero LLM in the loop for spatial indexing; deterministic SQLite WAL queries with FTS5 search and 3D Euclidean proximity radius lookups.
โณ Object Permanence & Decay: Entities remain in persistent memory even when out of view, with configurable exponential confidence decay ($C = C_0 \cdot e^{-\lambda t}$) and status lifecycles (active โ hidden โ lost).
๐ Collision & Movement Simulation: Predicts entity displacement trajectories, detects AABB obstacle collisions, and computes obstacle-avoiding navigation waypoints before actions execute.
๐ฎ Playwright Game Automation: Generates timed WASD / Arrow keyboard hold sequences (KeyW for 450ms, ArrowLeft for 290ms) and 3Dโ2D coordinate screen projections.
๐ค Multi-Agent Spatial Blackboard: Topic-based coordination with TTL, mutex locks, and collision intent alerts across parallel subagents.
๐ก๏ธ Spatial Spec-Driven Development (Spatial SDD): Physical design contract baseline registration, live verification (clearance, bounds, containment), and cryptographic SHA-256 evidence bundles.
๐จ Interactive 3D WebGL Visualizer: Browser-based Three.js 3D viewport rendering active entities, orientation axes, frustum cones, and topological links (world-model-mcp view).
๐ 100% Local & Private: All spatial entities, relations, and history stay inside .world-model-mcp/ in your workspace.
# Run full unit, integration, and geometry stress test suite across 47 test files (206 tests)
npm test# Run multi-Node matrix test suite across Node.js 18, 20, and 22
npm run test:matrix
# Run 3D geometry, projection, and Playwright game loop tests
npm run test:3d
Local Storage Guarantee: All spatial coordinates, bounding volumes, and entity history remain 100% local in your workspace. No telemetry or project data is ever transmitted.
Trademarks & Non-Affiliation: Product names (Cursor, Claude Code, Gemini, Windsurf, VS Code, GitHub, SQLite, Three.js, Playwright) are property of their respective owners and used solely for compatibility identification.