Dwarf Fortress (DFHack) for Cursor
io.github.alexanderolvera/dfhack-mcp
MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools
client:Cursor
transport:stdio
runtime:npm
Install Dwarf Fortress (DFHack) in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"dfhack-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dfhack-mcp"
],
"env": {
"DFHACK_HOST": "<DFHACK_HOST>",
"DFHACK_PORT": "<DFHACK_PORT>",
"DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs