# World Model MCP

> World Model MCP is an open-source MCP server. Temporal knowledge graph for codebases with constraint enforcement at the edit boundary. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/saravananjaichandar/world-model-mcp
- **MCP Registry name:** io.github.SaravananJaichandar/world-model-mcp
- **Listing updated:** 2026-11-13

## About

Temporal knowledge graph for codebases with constraint enforcement at the edit boundary.

## Install

### Claude Code (Terminal)

```sh
claude mcp add world-model-mcp --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- uvx world-model-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "world-model-mcp": {
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "world-model-mcp": {
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "world-model-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "world-model-mcp": {
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "world-model-mcp": {
      "command": "uvx",
      "args": [
        "world-model-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is World Model MCP free?

Yes. World Model MCP is open source, so you can use and self-host it for free.

### How do I add World Model MCP to Claude Code?

Run this command in your terminal: claude mcp add world-model-mcp --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- uvx world-model-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/world-model-mcp-2
