defcon-mcp-server
LET AI PLAY GLOBAL THERMONUCLEAR WAR. This is an MCP Server for Introversion Software's 2007 game DEFCON.
Install / Use
claude mcp add jorisvddonk -- npx -y github:jorisvddonk/defcon-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
OtherSupported Platforms
Tags
Our assessment of defcon-mcp-server
defcon-mcp-server scores 58/100 on our quality scale, 278th of 290 Other skills we index.
Its MCP Server is 4.7 KB long, well organised into 8 sections and no code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 17 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 68/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
defcon-mcp-server compared with similar skills
All 4 of these similar skills score higher than defcon-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| defcon-mcp-server (this skill)by jorisvddonk | 58 | 3 | 17mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.4k | 1d ago | MCP Server |
Frequently asked questions
- How do I install defcon-mcp-server?
- Run
claude mcp add jorisvddonk -- npx -y github:jorisvddonk/defcon-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does defcon-mcp-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is defcon-mcp-server safe to use?
- It declares no license and scores 68/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is defcon-mcp-server still maintained?
- The repository was last updated about 17 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubDEFCON MCP Server
This is a Model Context Protocol (MCP) server for Introversion Software's 2007 game DEFCON, which allows your favourite AI tool to play GLOBAL THERMONUCLEAR WAR.

(work in progress; not all commands are available yet!)
Setting up
- Install DEFCON. Make sure to start it once to load your CD key.
- Download the DEFCON AI API and extract v1.57 to your DEFCON installation folder. You may want to rename the AI API .exe to
DEFCON_ai.exe. - Download LUABOT and extract it to
<defcon installation folder>/AI; rename the folder so that you have<defcon installation folder>/AI/luabot/luabot.dll. - Git clone this repository into the
luabotfolder. - The MCP server writes to an input text file, which the Lua bot reads. The lua bot then writes to an output text file which is read by the MCP server. You will have to set the file paths yourself; they're hardcoded to write to
R:\input.txtandR:\output.txtby default, but you can supplyinputfileand/oroutputfileCLI arguments to Defcon to override tis. A RAMDisk is recommended if you can set one up. - Install dependencies with
npm ciin this repository folder. - Start the game via
.\Defcon_ai.exe host nowan nolan nowlan luabot="AI\luabot\main.lua" numplayers=2 territory=0 debug inputfile="D://input.txt" outputfile="D://output.txt". SelectAI/luabot/luabot.dllas the "external bot", and then add an internal AI player as well. The game should start automatically; if it doesn't just ready up to start! - Configure your MCP-enabled LLM interface to start the MCP server via
node mcp-server.mjs(for stdio transport) ornode mcp-server.mjs --http(for HTTP transport). You can pass--inputfile="D://input.txt"and--outputfile="D://output.txt"or similar to set the location of input/output text files. - Watch the carnage unfold!
Architecture
The DEFCON MCP Server uses a multi-layered architecture to enable AI-powered gameplay:
- Game Layer: DEFCON game running with the AI API extension
- Lua Bridge: A Lua bot (
main.lua) that interfaces with the game through the DEFCON AI API - File I/O Layer: Communication between the Lua bot and MCP server via text files
input.txt: Commands from MCP server to the gameoutput.txt: Game state information from the game to the MCP server
- MCP Server Layer: Node.js server (
mcp-server.mjs) implementing the Model Context Protocol- Provides standardized tools, resources, and prompts for LLM interaction
- Supports both stdio and HTTP transport methods
- LLM Integration Layer: Your AI tool connects to the MCP server to analyze game state and issue commands
Data Flow
- The Lua bot reads the game state and writes it to
output.txt - The MCP server reads
output.txtto get the current game state - The LLM analyzes the game state and decides on actions
- The MCP server writes commands to
input.txt - The Lua bot reads
input.txtand executes commands in the game
Command Correlation
The system uses correlation IDs to track command execution:
- Each command sent to the game includes a unique ID
- Command results are tagged with the same ID
- This allows the MCP server to verify if commands were executed successfully
Available MCP Tools
The MCP server provides the following tools:
debug-log: Send a debug message to the game logsend-chat: Send a chat message to opponentsplace-structure: Place a structure (RadarStation, Silo, or AirBase) at specified coordinatesplace-fleet: Place a fleet of ships at specified coordinatesmove-fleet: Move a fleet to specified coordinateswhiteboard-draw: Draw a line on the whiteboardwhiteboard-clear: Clear all lines from the whiteboardlaunch-nuke: Launch a nuclear missile from a silo to target coordinatesset-silo-defensive: Set a silo to defensive modeget-command-results: Retrieve results of previously executed commandsget-game-state: Get the latest game state informationgenerate-ai-response: Generate an AI response based on the current game state
Available MCP Resources
The MCP server provides the following resources:
defcon://game-state: Get the current game statedefcon://level: Get the current DEFCON level
Available MCP Prompts
The MCP server provides the following prompts:
analyze-game-state: Analyze the current game state and suggest optimal movessuggest-structure-placement: Suggest optimal locations for structure placementsuggest-nuke-targets: Suggest optimal targets for nuclear strikes
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.7kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
