A MCP server that provides RimWorld source code search and browsing capabilities.
- Install dependencies:
bun install- Add this MCP server:
# Claude Code
claude mcp add --transport stdio rimworld-source -- bun run /path/to/this/repo
# Gemini CLI
gemini mcp add rimworld-source bun run /path/to/this/repoReplace /path/to/this/repo with the actual path to this repository on your system.
- Build Defs index
bun run indexOnce configured, the server provides four tools:
search_rimworld_source- Search through RimWorld source coderead_rimworld_file- Read specific files with paginationlist_directory- List directory contents with paginationget_def_details- Get resolved RimWorld Def data by defNamesearch_defs- Search through RimWorld Defs
# Run production server
bun run start