Rimcp Hybrid
R

Rimcp Hybrid

A hybrid retrieval and navigation tool for RimWorld source code and XML definitions, combining lexical, semantic, and graph structures, supporting AI assistant calls
2.5 points
6.7K

What is RiMCP_hybrid?

RiMCP_hybrid is an intelligent code assistant specifically designed for RimWorld game Mod developers. It can understand your natural language queries, quickly find relevant C# code and XML definition files, and display the dependency relationships between the code. Whether you want to understand how a certain game mechanism is implemented or find the code location of a specific function, this tool can save you a lot of search time.

How to use RiMCP_hybrid?

Using RiMCP_hybrid is very simple: First, build the code index, then start the service, and finally query through an AI assistant (such as Claude Desktop or VS Code Copilot). You can ask questions in natural language, such as 'How is weapon damage calculated?', and the tool will return relevant code snippets and file locations.

Applicable scenarios

This tool is particularly suitable for the following scenarios: 1. New Mod developers learning the RimWorld source code structure 2. Senior developers who need to quickly locate the code of specific functions 3. Researchers who want to understand the implementation principles of game mechanisms 4. Project maintainers who need to analyze code dependency relationships

Main Features

Intelligent Hybrid Search
Combining semantic understanding and keyword matching, you can search for code using natural language. First, quickly filter relevant results, and then use an AI model to precisely locate the most relevant content.
Code Dependency Analysis
Automatically analyze the call relationships between C# code and XML definitions. You can view 'who uses this class' or 'which other components this class depends on'.
Precise Source Code Location
After finding the code, you can directly view the complete source code snippet, including detailed information such as line numbers and file paths, which is convenient for direct copying or jumping.
Multi - platform Support
Supports Windows, Linux, and macOS systems, providing PowerShell and Shell scripts for users of different operating systems to use conveniently.
Remote Embedding API Support
In addition to local models, it also supports remote embedding APIs such as OpenAI. You can choose different AI model services according to your needs.
Advantages
Intelligently understand natural language queries without the need to precisely remember code names
Combine semantic and keyword searches to improve search accuracy
Complete dependency relationship analysis to help understand the code structure
Open - source and free, following the MIT license, allowing free modification and use
Active community support and continuous updates
Limitations
It takes a long time to build the index for the first use (about 30 - 60 minutes)
Requires a certain amount of disk space to store index files (about 1 - 2GB)
Dependency relationship analysis may return too many results in some complex situations
Requires basic command - line operation knowledge for initial setup

How to Use

Prepare Game Files
Copy game files from your RimWorld installation directory: 1. Def data: Copy from 'C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Data' 2. C# source code: Export the source code using tools such as ILSpy or dnSpy Place the files in the RimWorldData folder in the project root directory
Set Up Python Environment
Run the script to set up a Python virtual environment and download the necessary AI models:
Build the Project
Build the project using.NET:
Build Code Index
This is the most important step, which will analyze all code files and create a search index:
Start the Service
Start two services: the embedding server and the MCP server
Configure AI Assistant
Configure the MCP server connection in VS Code or Claude Desktop

Usage Examples

Learn the Implementation of the Weapon System
You want to understand how weapon damage is calculated in RimWorld but don't know where to start looking for the code.
Modify the Behavior of Doors
You want to add new functions to doors and need to first understand the existing implementation of doors.
Find All Food - related Definitions
You want to create a food - related Mod and need to understand what food definitions there are in the game.

Frequently Asked Questions

Why is it necessary to build an index? How long does this process take?
What kind of computer configuration do I need?
What should I do if the search returns no results?
How to update to a new version of the game?
Can it be used commercially or modified?

Related Resources

Project GitHub Repository
Get the latest code, submit issues, and view update logs
.NET 8.0 Download
Download the.NET runtime and SDK required to run the project
Python Official Website
Download the Python programming language for running AI model services
RimWorld Mod Making Tutorial
Learn the basic knowledge of RimWorld Mod development
MCP Protocol Documentation
Understand the technical details of the Model Context Protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "rimworld-code-rag": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "c:/path/to/RiMCP_hybrid/src/RimWorldCodeRag.McpServer"
      ],
      "env": {
        "RIMWORLD_INDEX_ROOT": "c:/path/to/RiMCP_hybrid/index",
        "EMBEDDING_SERVER_URL": "http://127.0.0.1:5000"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
6.7K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
7.2K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
7.7K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
12.7K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
10.5K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
9.9K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
10.5K
5 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
18.0K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.4K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
52.6K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
22.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
50.0K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
35.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase