RimSage

realloon/RimSage

3.4

If you are the rightful owner of RimSage and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A Model Context Protocol (MCP) server that provides RimWorld source code search and browsing capabilities.

Tools
3
Resources
0
Prompts
0

RimWorld Source MCP Server

bun ripgrep

A MCP server that provides RimWorld source code search and browsing capabilities.

Get started

  1. Install dependencies:
bun install
  1. Build index
bun run src/scripts/import-defs /path/to/your/rimworld/root/path
bun run src/scripts/import-csharp /path/to/decompiled/source/root/path
bun run build
  1. 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/repo

mcp.json

{
  "mcpServers": {
    "rimworld-source": {
      "command": "bun",
      "args": ["run", "/path/to/this/repo"]
    }
  }
}

Replace /path/to/this/repo with the actual path to this repository on your system.

Available Tools

Once configured, the server provides four tools:

  • search_rimworld_source - Search through RimWorld source code
  • read_rimworld_file - Read specific files with pagination
  • list_directory - List directory contents with pagination
  • get_def_details - Get resolved RimWorld Def data by defName
  • search_defs - Search through RimWorld Defs
  • read_csharp_type - Read the C# class/struct/interface definition

Requirements

Development

bun run start