Labsco
iamvillain logo

SJ RedM MCP Server

โ˜… 6

from iamvillain

A versatile MCP server for RedM development, providing access to RDR3 discoveries, framework documentation, native functions, and database operations.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

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

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

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

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