原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Doom MCP

作者:gunnargrosch版本 0.1.3i★ –i在你的电脑上运行
注册名称io.github.gunnargrosch/doom-mcp

安装

概览

作者提供的说明(英文原文)

Play DOOM via MCP - works with Claude Code, Cursor, and any MCP client

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "doom": {
      "command": "npx",
      "args": [
        "-y",
        "doom-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add doom -- npx -y doom-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "doom": {
      "command": "npx",
      "args": [
        "-y",
        "doom-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "doom": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "doom-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 gunnargrosch 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 4929 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 4929 个服务器的 7% 更新
  • 基础检查结果等于或优于此分类中其他 4929 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Doom MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.3)于8个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

作者:github广泛使用★ 3.4万5天前更新

电脑或云端

Desktop Commander

MCP server for terminal commands, file operations, and process management

作者:wonderwhy-er广泛使用↓ 71万/周★ 1万17天前更新

在你的电脑上运行

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare正在增长★ 444614个月前更新

在云端运行✓ mcp.cloudflare.com

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

DOOM via MCP

Can it run DOOM? Yes - your AI coding assistant can run DOOM.

Play DOOM in Claude Code, Cursor, or any MCP-compatible client. The AI sees the game, fights demons, navigates levels, and reports what's happening - or you direct it move by move.

> Let's play DOOM!

Starting E1M1 on medium difficulty...

HP:100 Armor:0 | Pistol (key:2) | Ammo: 50b 0s 0r 0c | Kills:0 | E1M1 No enemies in sight. Exploring the corridor ahead.

Go forward and find some enemies

Sprinting down the hallway... I can see an opening ahead.

HP:100 Armor:0 | Pistol (key:2) | Ammo: 50b 0s 0r 0c | Kills:0 | E1M1 ENEMIES IN SIGHT (aim for angle~0 then fire): Imp (HP:60) to your left (turn_left ~9) nearby

There's an Imp to the left! Turning to face it...

Shoot it!

Aimed and firing!

HP:100 Armor:0 | Pistol (key:2) | Ammo: 47b 0s 0r 0c | Kills:0 | E1M1 ENEMIES IN SIGHT (aim for angle~0 then fire): Imp (HP:15) AHEAD close

Hit! The Imp is wounded (HP:15). One more burst should finish it.

HP:95 Armor:0 | Pistol (key:2) | Ammo: 44b 0s 0r 0c | Kills:1 | E1M1 ITEMS: Stimpack (+10 HP) slightly to your right (turn_right ~4) point-blank (~3 ticks fwd+run to reach) 1 kill! Want to see a screenshot?

Read the blog post for the full story.


Table of Contents

  • How It Works
  • Quick Start
  • Play Modes
  • Tools Reference
  • Configuration
  • FAQ
  • Architecture
  • Development
  • Credits
  • License

How It Works

A Rust MCP server embeds the real DOOM engine (doomgeneric) directly via FFI. No emulation, no child processes. Each tool call advances the game by a number of ticks and returns:

  1. Game state - HP, armor, ammo, kills, position, current weapon
  2. Enemy intel - visible enemies with human-readable direction, distance, and HP
  3. Nearby items - health, ammo, armor, weapons within pickup range
  4. Doors and switches - interactable linedefs detected within range
  5. Frame image - small PNG thumbnail for the AI's vision

The AI uses this information to navigate, fight, and explore. You can direct it or let it play autonomously.

graph LR

A[MCP Client] -->|doom_start| B[doom-mcp binary] A -->|doom_action| B A -->|doom_screenshot| B B -->|FFI| C[doomgeneric C engine] C -->|frame buffer| B B -->|game state + PNG| A


Quick Start

1. Register with your MCP client

Claude Code:

claude mcp add doom --scope user -- npx -y doom-mcp

Cursor, Windsurf, or any MCP client - add to .mcp.json:

{

"mcpServers": { "doom": { "type": "stdio", "command": "npx", "args": ["-y", "doom-mcp"] } } }

2. Play

Open a new session and say:

"Let's play DOOM"

The AI will ask which mode you want, start the game on E1M1, and begin playing.


Play Modes

ModeHow it worksBest for
You directYou give commands ("go forward", "open that door", "shoot the imp"). The AI executes one action at a time and describes what happens.Immersive guided play
AI autonomousThe AI makes all decisions - movement, combat, exploration. You watch and intervene if needed.Watching the AI play

Tools Reference

doom_start

Start or restart DOOM. Safe to call at any time — if a game is already running it restarts cleanly without needing a new session.

ParameterTypeDefaultDescription
skillint (1-5)3Difficulty: 1=baby, 2=easy, 3=medium, 4=hard, 5=nightmare
episodeint (1-4)1Episode number
mapint (1-9)1Map number
doom_action

Advance the game. All listed actions are held simultaneously for the tick duration.

ParameterTypeRequiredDescription
actionsstringyesComma-separated: forward, backward, turn_left, turn_right, strafe_left, strafe_right, fire, use, run, 1-7
ticksint (1-105)noGame ticks to advance. Default 7. At 35 ticks/sec: 7 ~ 0.2s, 35 ~ 1s

Gameplay notes:

  • fire holds the trigger for the full duration. Pistol auto-fires every ~10 ticks.
  • Turn and fire should be separate actions (turning while firing wastes ammo).
  • use opens doors and activates switches.
  • Weapon keys: 1=fists, 2=pistol, 3=shotgun, 4=chaingun, 5=rocket launcher, 6=plasma, 7=BFG.
doom_screenshot

Save a full-resolution 320x200 screenshot to the system temp directory and open it in the default image viewer. Does not advance the game (beyond a brief pause for the frame to settle).


Configuration

Environment VariableDescription
DOOM_WAD_PATHPath to a custom IWAD file (e.g., your own DOOM.WAD or DOOM2.WAD)
DOOM_MCP_DEBUGSet to 1 to enable debug logging to doom-mcp.log in the system temp directory

The bundled Freedoom WAD works out of the box, but the original DOOM shareware WAD has better levels and sprites. To use it:

  1. Download DOOM1.WAD from doomworld.com/classicdoom/info/shareware.php (legal, free)
  2. Set DOOM_WAD_PATH in your MCP config:
{

"mcpServers": { "doom": { "type": "stdio", "command": "npx", "args": ["-y", "doom-mcp"], "env": { "DOOM_WAD_PATH": "/path/to/DOOM1.WAD" } } } }

If you own DOOM or DOOM 2, you can use those WADs the same way. To use any custom WAD:

{

"mcpServers": { "doom": { "type": "stdio", "command": "npx", "args": ["-y", "doom-mcp"], "env": { "DOOM_WAD_PATH": "/path/to/DOOM.WAD" } } } }


FAQ

Does this work on Windows? Yes. The npm package includes a Windows x64 binary. Register it the same way as on macOS/Linux.

Can I use my own DOOM WAD (DOOM.WAD, DOOM2.WAD)? Yes. Set DOOM_WAD_PATH in your MCP config. The shareware DOOM1.WAD is free to download from doomworld.com and has much better levels than the bundled Freedoom. See the Configuration section for details.

How much does this cost in API tokens? Each doom_action call returns ~1-2KB of text (game state + enemy info) plus a ~6KB PNG thumbnail. That's roughly 1,500-2,500 tokens per action. A typical gameplay session of 50 actions uses about 75,000-125,000 tokens.

Can the AI actually play DOOM well? It can navigate levels, find enemies, aim, and fight. It gets about 5-10 kills per session on E1M1 at medium difficulty. It struggles with enemies behind partial cover and navigating complex door sequences. It improves when you direct it.

Can I play a specific level? Yes. Pass episode and map parameters to doom_start. For example, episode 1 map 3 would be episode:1, map:3.

What happens when I die? The engine reports HP:0 and offers a screenshot of the death screen. Currently there's no restart within a session - start a new conversation to play again.

Does this support multiplayer? Not yet. DOOM's multiplayer protocol could theoretically support multi-agent play, but it's not implemented.

Is the AI cheating? Can it see through walls? No. Enemy detection uses DOOM's native line-of-sight check (P_CheckSight). The AI only sees enemies that would be visible on screen. Items are detected by proximity but the AI still has to walk over them to pick them up.


Architecture

src/main.rs         MCP JSON-RPC server over stdio

src/doom.rs Engine FFI wrapper: init, tick, frame capture, state extraction src/renderer.rs PNG rendering (216-color palette thumbnails for MCP, full RGB for screenshots) src/paths.rs WAD file discovery across platforms src/log.rs Debug logging to file build.rs Compiles doomgeneric C sources via cc crate (whitelist approach) csrc/platform.c DG_ callbacks, virtual time, key injection, enemy/item/door detection

The binary links the doomgeneric C engine at compile time. At runtime it is a single process with no subprocess spawning. Frames are read from a shared screen buffer and key inputs are injected through FFI.

Virtual time - The engine's clock is decoupled from wall time. Each doomgeneric_Tick() advances exactly one game tic (1/35th of a second), regardless of real elapsed time. This makes gameplay deterministic and prevents ticks from being skipped.

Enemy and item detection - The server iterates the engine's internal object list (thinker_t chain) to find nearby enemies and pickable items. Line-of-sight checks use Doom's native P_CheckSight(). Only visible enemies are reported to prevent "wallhack" cheating.


Development

Requires: Rust toolchain, GCC, Make, Git, curl, unzip.

git clone https://github.com/gunnargrosch/doom-mcp.git

cd doom-mcp bash scripts/setup.sh # clones engines, downloads Freedoom WAD cargo build --release # compiles everything into a single binary cargo test # runs unit + integration tests

Register the local build for testing:

claude mcp add doom --scope user -- ./target/release/doom-mcp

Enable debug logging:

claude mcp add doom --scope user -e DOOM_MCP_DEBUG=1 -- ./target/release/doom-mcp

tail -f /tmp/doom-mcp.log # Linux/macOS (Windows: %TEMP%\doom-mcp.log)

npm Package

Build the npm package locally:

bash scripts/build-npm.sh   # copies binary + WAD into npm/

cd npm && npm pack # creates doom-mcp-0.1.2.tgz

Publish (requires npm account + NPM_TOKEN for CI):

cd npm && npm publish

Credits


Changelog

See CHANGELOG.md for a detailed list of changes.

License

MIT for the MCP server code in this repository.

doomgeneric is GPL-2.0 licensed and is cloned at build time (not vendored). The Freedoom WAD is distributed under a BSD-style license.

问 PopNx