NestDaddy

X4CodeSense

io.github.chemodun/x4-script-mcp · v0.5.0

X4: Foundations scripts: checks, schema elements, expression types, scripts, cues and texts.

Connect Runs on your machine

Terminal
claude mcp add x4-script-mcp -e X4_GAME=<X4_GAME> -e X4_UNPACKED=<X4_UNPACKED> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "x4-script-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X4_GAME": "<X4_GAME>",
        "X4_UNPACKED": "<X4_UNPACKED>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "x4-script-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X4_GAME": "<X4_GAME>",
        "X4_UNPACKED": "<X4_UNPACKED>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "x4-script-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X4_GAME": "<X4_GAME>",
        "X4_UNPACKED": "<X4_UNPACKED>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
X4_GAME
Optional
The installed game, the folder of X4.exe; its files are read from the catalogs.
X4_UNPACKED
Optional
The extracted game files, the folder holding libraries, md and aiscripts; used instead of X4_GAME.

Details

Package[email protected] (NPM, stdio)
First published24 Oct 2026
Last updated24 Oct 2026
Registry nameio.github.chemodun/x4-script-mcp

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.