MCP Server for RimWorld Source

RimSage RimWorld Source MCP Server

Give AI the ability to search and read RimWorld source.

Why RimSage

LLMs often use outdated, incorrect, or even fabricated APIs.

RimSage provides real source access and retrieval tools to maximize API reliability.

Factual APIs

Query real C# and XML so your agent references APIs that actually exist.

Context Efficiency

Pull on demand to cut token usage and improve model performance.

Built for RimWorld

Retrieval optimized for RimWorld's architecture.

Easy to Use

Connect in seconds, available anywhere, start anytime.

Available Tools

Connect in Minutes

Online service is the recommended default for new users.

Online Service (Recommended)

Use the hosted MCP endpoint to start instantly.

https://mcp.rimsage.com/mcp

Integration Commands

Pick your client. For placeholders, use the generic config below.


              claude mcp add rimworld-source --transport http https://mcp.rimsage.com/mcp
            

              gemini mcp add rimworld-source --transport http https://mcp.rimsage.com/mcp
            

              # TODO: replace with TRAE MCP integration command
            
Command placeholder. Use the generic mcp.json config below or replace with your client's official syntax.

              # TODO: replace with Cursor MCP integration command
            
Command placeholder. Use the generic mcp.json config below or replace with your client's official syntax.

              # TODO: replace with Kilo Code MCP integration command
            
Command placeholder. Use the generic mcp.json config below or replace with your client's official syntax.

              # TODO: replace with opencode MCP integration command
            
Command placeholder. Use the generic mcp.json config below or replace with your client's official syntax.

              code --add-mcp "{\"name\":\"rimsage\", \"type\": \"http\", \"url\": \"https://mcp.rimsage.com/mcp\"}"
            

Generic mcp.json

Works with most MCP-compatible clients.

{
  "mcpServers": {
    "rimworld-source": {
      "url": "https://mcp.rimsage.com/mcp"
    }
  }
}

Self-Hosted (Advanced)

For offline use, customization, or local data.

  1. Clone the RimSage repository to your local machine.

    git clone https://github.com/realloon/RimSage.git
  2. Install project dependencies with Bun.

    bun install
  3. Import RimWorld XML Def data from your local game directory.

    bun run src/scripts/import-defs /path/to/your/rimworld/root/path
  4. Import decompiled C# source files for API and type lookup.

    bun run src/scripts/import-csharp /path/to/decompiled/source/root/path
  5. Build the server after data import is complete.

    bun run build

Generic mcp.json

Use this template to register your local self-hosted server.

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