MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools
registry version 1.4.1
npm
npx -y dfhack-mcpnpm
npx -y dfhack-mcp@1.4.1
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp"
]
}
}
}{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp@1.4.1"
]
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add dfhack-mcp -- npx -y dfhack-mcp
claude mcp add dfhack-mcp -- npx -y dfhack-mcp@1.4.1
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp"
]
}
}
}{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp@1.4.1"
]
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp"
]
}
}
}{
"servers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp@1.4.1"
]
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp"
]
}
}
}{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"dfhack-mcp@1.4.1"
]
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
DFHACK_HOST — Host running DFHack's remote RPC server. Defaults to 127.0.0.1.DFHACK_PORT — Port for DFHack's remote RPC server. Defaults to 5000.DFHACK_MCP_ACTUATORS — Set to any value to expose the write tools. Unset, the server is read-only.⭐ 2 stars · 最近更新于 80 天前 · ISC license
dfhack mcp An MCP server that gives an AI agent a live window into your Dwarf Fortress fort — a co pilot and early warning advisor, not an autopilot. Point Claude (or any MCP client) at it and ask "how's my fort doing?" — it reads happiness, threats, stocks, jobs, health, and defenses straight from…
Summary from the project README — github.com/alexanderolvera/dfhack-mcp
Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
dfhack mcp An MCP server that gives an AI agent a live window into your Dwarf Fortress fort — a co pilot and early warning advisor, not an autopilot. Point Claude (or any MCP client) at it and ask "how's my fort doing?" — it reads happiness, threats, stocks, jobs, health, and defenses straight from
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/alexanderolvera/dfhack-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/dfhack-mcp/)
HTML
<a href="https://mcpnav.net/server/dfhack-mcp/"><img src="https://mcpnav.net/badge/dfhack-mcp.svg" alt="Listed on MCPNav" height="20"></a>