RimSageSAFE
An MCP server that enables searching and browsing of RimWorld source code.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://modelcontextprotocol.io/introduction) [](https://bun.com/) [](https://github.com/BurntSushi/ripgrep)
An MCP server that provides RimWorld source code search and browsing capabilities.
Available Tools
The server provides these tools:
search_source- Search RimWorld source coderead_file- Read specific fileslist_directory- List directory contentssearch_defs- Search through RimWorld Defsget_def_details- Get raw or merged RimWorld Def XMLread_csharp_symbol- Read a C# type or method definition
Quick Start
The easiest way to use RimSage is through the online service:
https://mcp.rimsage.com/mcp
You can find the integration methods for different Agent clients in the wiki.
Self-Hosted
RimSage also supports stdio transport for local deployment.
- Install dependencies
- Clone the repository
git clone https://github.com/realloon/RimSage.git
- Install package dependencies
bun install
- 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
You'll need local RimWorld files and a decompiled C# project, which is allowed under the RimWorld EULA.
- Add this MCP server
You can find the integration methods for different Agent clients in the wiki.
Most Agent clients support mcp.json configuration:
{
"mcpServers": {
"rimsage": {
"command": "bun",
"args": ["run", "/path/to/this/repo"]
}
}
}Replace `/path/to/this/rep
04f6e88d5c4eOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add rimsage -- npx -y [email protected]
{
"mcpServers": {
"rimsage": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (6)
6 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_def_details | read | |
list_directory | read | |
read_csharp_symbol | read | |
read_file | read | |
search_defs | read | |
search_source | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (6)
export const root = join(import.meta.dir, '../../')
import { rebuildCsharpIndex } from '../../src/scripts/index-csharp'import type { DefsRow } from '../../src/types'import { rebuildDefsIndex } from '../../src/scripts/index-defs'import { getDefDetails } from '../../src/tools/get-def-details'@modelcontextprotocol/server, fast-xml-builder, fast-xml-parser, zod, @types/bun, typescript
Gates applied: no_behavioural_pass.
04f6e88d5c4efull audit observations/trust-audit/mcp-server/realloon__rimsage.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 04f6e88d5c4e | SAFE | B | 89 | first audit |
Questions
What is the RimSage MCP server?
An MCP server that enables searching and browsing of RimWorld source code.
What tools does RimSage expose?
6 in total: 6 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is RimSage safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does RimSage need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (04f6e88d5c4e), read on 2026-10-07. The repository is watched and re-audited when it changes.