L'Atlas / MCP servers / Dwarf Fortress (DFHack)
MCP server

Dwarf Fortress (DFHack)

io.github.alexanderolvera/dfhack-mcp

MCP server Not tested

Get a review See pricing

MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools

Technical sheet

Author
alexanderolvera (registry namespace)
Repository
github.com/alexanderolvera/dfhack-mcp
Site
github.com/alexanderolvera/dfhack-mcp#readme
Version
1.4.1
Transport
stdio
Authentication
None (declared in the registry)
Packages
dfhack-mcp 1.4.1 npm stdio
Tools
—
Categories
AI, agents and memory
Last updated
26 Jul 2026
Published
26 Jul 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded. Latest test not successful: the badge only says “listed”.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.alexanderolvera/dfhack-mcp.svg?lang=en)](https://latlas.dev/en/mcp/io.github.alexanderolvera/dfhack-mcp)
HTML
<a href="https://latlas.dev/en/mcp/io.github.alexanderolvera/dfhack-mcp"><img src="https://latlas.dev/badge/fiche/io.github.alexanderolvera/dfhack-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

No remote address published: this server runs locally, so we do not test it.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport not listeddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Local launch of package dfhack-mcp (npm). Formats taken from each client’s documentation.

Claude Code
claude mcp add-json dfhack-mcp '{"command":"npx","args":["-y","[email protected]"]}'
Claude (claude.ai, Claude Desktop, Cowork)claude_desktop_config.json (macOS : ~/Library/Application Support/Claude/ ; Windows : %APPDATA%\Claude\ ; Linux : ~/.config/Claude/)
{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "dfhack-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "dfhack-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","[email protected]"],
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.dfhack-mcp]
command = "npx"
args = ["-y","[email protected]"]

Declared environment variables

NameRequiredDescription
DFHACK_HOSTnoHost running DFHack's remote RPC server. Defaults to 127.0.0.1.
DFHACK_PORTnoPort for DFHack's remote RPC server. Defaults to 5000.
DFHACK_MCP_ACTUATORSnoSet to any value to expose the write tools. Unset, the server is read-only.

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Dwarf Fortress (DFHack) · L’Atlas

Markdown
[Dwarf Fortress (DFHack) — L’Atlas](https://latlas.dev/en/mcp/io.github.alexanderolvera/dfhack-mcp)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.