SJ RedM MCP Server

SJ RedM MCP Server

A unified development tool for RedM that provides access to RDR3 discoveries, framework documentation (VORP/RSGCore), native functions across 86+ namespaces, and database operations with smart context-aware loading.

Category
访问服务器

README

SJ RedM MCP Server

A unified "Swiss Army knife" MCP (Model Context Protocol) server for RedM development that combines RDR3 discoveries, framework documentation (VORP/RSGCore), native functions, and database operations into one powerful tool.

Features

🔍 RDR3 Discoveries Integration

  • Search the comprehensive RDR3 discoveries GitHub repository
  • Access game assets, textures, ped models, controls, scenarios, and animations
  • Get Lua code examples for specific topics
  • Browse repository structure and read files directly

📚 Framework Documentation

  • VORP Framework: Complete documentation including core, characters, inventory, menu, metabolism, and more
  • RSGCore Framework: Client/server events and functions documentation
  • oxmysql: Database operations and query documentation
  • Smart context loading - mention "vorp" or "rsg" to auto-load relevant docs

Native Functions Database

  • 86+ namespaces covering all RDR3 game systems
  • 221+ documentation files with comprehensive native details
  • Search natives by name or functionality
  • Get detailed parameter information and usage examples
  • Prefer direct calls over hashes with hash comments for Lua scripting

🧠 Smart Context Loading

  • Automatically detects framework mentions and loads relevant documentation
  • Context-aware suggestions based on your queries
  • Intelligent module activation for optimal performance

Installation

Prerequisites

  • Node.js 16.0.0 or higher
  • Claude Desktop application OR Claude Code CLI

Quick Setup

  1. Navigate to the directory:

    cd "/path/to/sj-redm-mcp"
    
  2. Install dependencies:

    npm install
    
  3. Choose your setup method:

Option A: Claude Code CLI Setup (Recommended)

  1. Add the MCP server:

    claude mcp add sj-redm-mcp node "/absolute/path/to/sj-redm-mcp/index.js"
    
  2. Set GitHub token (optional but recommended):

    claude mcp add-json sj-redm-mcp '{
      "command": "node",
      "args": ["/absolute/path/to/sj-redm-mcp/index.js"],
      "env": {
        "GITHUB_TOKEN": "your-github-token-here"
      }
    }'
    
  3. Verify the server is configured:

    claude mcp list
    

Alternative: Project-level configuration

The repository includes a .mcp.json file for project-level configuration. When working in this directory, Claude Code CLI will automatically detect and use the MCP server.

Option B: Claude Desktop Setup

  1. Configure Claude Desktop:

    Add the following to your Claude Desktop configuration file:

    Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    {
      "mcpServers": {
        "sj-redm-mcp": {
          "command": "node",
          "args": ["/absolute/path/to/sj-redm-mcp/index.js"],
          "env": {
            "GITHUB_TOKEN": "your-github-token-here"
          }
        }
      }
    }
    

    Note: GitHub token is optional but recommended for higher API rate limits.

  2. Restart Claude Desktop

Available Tools

RDR3 Discoveries Tools

  • redm-search-discoveries: Search the RDR3 discoveries repository
  • redm-read-discovery-file: Read specific files from the repository
  • redm-list-discovery-dirs: List directory contents
  • redm-get-lua-examples: Find Lua code examples by topic

Framework Documentation Tools

  • redm-search-framework-docs: Search VORP and RSGCore documentation
  • redm-get-vorp-docs: Get all VORP framework documentation
  • redm-get-rsgcore-docs: Get all RSGCore framework documentation
  • redm-get-oxmysql-docs: Get database operation documentation

Native Functions Tools

  • redm-search-natives: Search for native functions by name
  • redm-get-native-details: Get detailed native function information
  • redm-list-native-namespaces: List all available namespaces
  • redm-browse-namespace: Browse natives within a specific namespace

Smart Tools

  • redm-get-smart-context: Get intelligent context based on your query

Usage Examples

Framework Development

"How do I create a character in VORP?"
→ Automatically loads VORP docs + oxmysql docs
"Show me RSGCore server events for player management"
→ Loads RSGCore documentation with server events

Game Asset Research

"Find texture information for horse models"
→ Uses RDR3 discoveries for asset research
"Get animation examples for ped interactions"
→ Searches discoveries repo for animation scripts

Native Function Development

"How do I use SET_PED_COMPONENT_VARIATION native?"
→ Returns detailed native info with parameters and Lua example
"Search for vehicle-related natives in VEHICLE namespace"
→ Lists relevant vehicle natives with usage details

Database Operations

"How do I insert player data into database?"
→ Includes oxmysql documentation automatically

Smart Context Features

The MCP server intelligently loads relevant documentation based on your queries:

  • VORP mentions: Auto-loads complete VORP docs + oxmysql docs
  • RSG/RSGCore mentions: Auto-loads complete RSGCore docs + oxmysql docs
  • Asset research terms (texture, ped, animation, etc.): Prioritizes RDR3 discoveries
  • Native/scripting terms: Activates native function database
  • Database terms: Includes oxmysql documentation

Documentation Structure

sj-redm-mcp/
├── docs/
│   ├── vorp/                    # VORP framework documentation
│   │   ├── vorp_core_docs.md
│   │   ├── vorp_characters_docs.md
│   │   ├── vorp_inventory_docs.md
│   │   └── ...
│   ├── rsgcore/                 # RSGCore framework documentation
│   │   ├── rsgcore_client_events.md
│   │   ├── rsgcore_server_events.md
│   │   └── ...
│   ├── natives/                 # RDR3 native functions (86+ namespaces)
│   │   ├── ENTITY/
│   │   ├── PLAYER/
│   │   ├── VEHICLE/
│   │   └── ...
│   └── oxmysql_documentation.md # Database operations
├── cache/                       # Performance cache
├── package.json
├── index.js                     # Main MCP server
└── README.md

Native Function Features

  • Direct Call Preference: Uses function names instead of hashes
  • Hash Comments: Includes hash values as comments for reference
  • Parameter Details: Complete parameter information and types
  • Lua Examples: Working code examples for each native
  • 86+ Namespaces: Complete coverage of all RDR3 systems

Example native output:

-- Set ped component variation
Ped.SetPedComponentVariation(ped, componentId, drawableId, textureId, paletteId) -- 0x262B14F48D29DE80

Troubleshooting

Common Issues

  1. "Module not found" errors

    • Ensure you ran npm install in the correct directory
    • Check that Node.js version is 16.0.0 or higher
  2. GitHub API rate limiting

    • Add a GitHub token to your configuration for higher limits
    • Public repositories have lower rate limits without authentication
  3. Claude Desktop not recognizing server

    • Verify the absolute path in your configuration
    • Ensure JSON syntax is valid in claude_desktop_config.json
    • Restart Claude Desktop after configuration changes
  4. Claude Code CLI not recognizing server

    • Run claude mcp list to verify the server is configured
    • Check that the absolute path in your configuration is correct
    • If using project-level config, ensure you're in the correct directory
    • Run claude mcp remove sj-redm-mcp and re-add if needed
  5. Documentation not loading

    • Check that all documentation files are in the docs/ directory
    • Verify file permissions allow reading

Performance Tips

  • The server uses intelligent caching for better performance
  • Native function index is built on first use and cached
  • Framework documentation is cached after first load
  • Use specific namespace searches for faster native function lookups

Contributing

This MCP server combines functionality from multiple sources:

  • RDR3 Discoveries - Game research and documentation
  • VORP Framework - RedM framework documentation
  • RSGCore Framework - Alternative RedM framework
  • RDR3 Natives Database - Comprehensive native function documentation

License

MIT License - Feel free to use and modify for your RedM development needs.

Support

For issues or questions:

  1. Check the troubleshooting section above
  2. Verify your Claude Desktop configuration
  3. Ensure all dependencies are properly installed
  4. Test individual tools using the available commands

Changelog

v1.0.0

  • Initial unified release
  • Combined 3 separate MCPs into one
  • Added smart context loading
  • Implemented consistent tool naming with "redm-" prefix
  • Single installation process
  • Comprehensive documentation coverage

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选