FiveM Development MCP Server
A comprehensive Model Context Protocol (MCP) server for FiveM (GTA5) development, built with Laravel MCP. This server provides AI assistants with powerful tools to help you develop FiveM resources more efficiently.
Installation & Connection
Choose how you want to connect to the FiveM MCP server:
Easy setup! Connect to a hosted MCP server. This is the easiest option and works from anywhere without any local setup.
Claude Desktop Configuration:
Edit your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this configuration (replace with your actual server URL):
{
"mcpServers": {
"fivem": {
"url": "https://your-domain.com/fivem"
}
}
}
VSCode Configuration (Cline Extension):
If using VSCode with the Cline extension, edit your settings:
- Open VSCode Settings (JSON)
- Add to your global or workspace
settings.json
{
"mcp": {
"servers": {
"fivem": {
"url": "https://your-domain.com/fivem"
}
}
}
}
💡 Tip: After configuring Claude Desktop, completely quit and restart the application for changes to take effect.
Available Tools
The FiveM MCP Server provides 30 tools organized by category. These tools allow AI assistants to search documentation, generate code, and lookup framework functions.
FiveM Tools (3)
Search Five M Docs
Search FiveM documentation for specific topics, concepts, or features. Returns relevant documentation URLs and summaries.
Generate Manifest
Generate a fxmanifest.lua file for a FiveM resource with the specified configuration options.
Generate Resource Boilerplate
Generate boilerplate code for a FiveM resource including client, server, config, and manifest files.
Client Tools (10)
Get Native Client Function
Look up GTA5/FiveM client-side native functions by name. Returns function signature, parameters, return type, and usage examples.
Get Event Client Reference
Get information about FiveM client-side events including framework events (ESX, QBCore).
Get Q B Core Client Function
Look up QBCore client-side functions by name. Returns function signature, parameters, return type, and usage examples.
Get Q B Core Client Event Reference
QBCore event reference for client-side events. Includes built-in core events and framework-specific events for client scripts.
Get Inventory Client Function
Look up ox_inventory client functions by name. Returns function signature, parameters, return type, and usage examples for client-side inventory management.
Get Ox Target Client Function
Look up ox_target client functions by name. Returns function signature, parameters, return type, and usage examples for targeting/third-eye interaction system.
Get Ox Fuel Client Function
Look up ox_fuel client functions by name. Returns function signature, parameters, return type, and usage examples for vehicle fuel management.
Get Ox Doorlock Client Function
Look up ox_doorlock client functions by name. Returns function signature, parameters, return type, and usage examples for client-side door management.
Get Prodigy Client Event Reference
prp-bridge event reference for client-side events fired by the Prodigy Studios bridge resource. Includes notifications, sound, callbacks, allowlist, and medical events.
Get Prodigy Client Export
prp-bridge client-side exports reference. Covers the IsAllowlisted allowlist check, the PropPlacer UI, and the Ped Interactions system (AddPedInteraction, RemovePedInteraction).
Server Tools (10)
Get Native Server Function
Look up GTA5/FiveM server-side native functions by name. Returns function signature, parameters, return type, and usage examples.
Get Event Server Reference
Get information about FiveM server-side events including framework events (ESX, QBCore).
Get Q B Core Server Function
Look up QBCore server-side functions and exports by name. Returns function signature, parameters, return type, and usage examples.
Get Q B Core Server Event Reference
QBCore event reference for server-side events. Includes built-in core events and framework-specific events for server scripts.
Get Inventory Server Function
Look up ox_inventory server functions by name. Returns function signature, parameters, return type, and usage examples for server-side inventory management.
Get Ox Fuel Server Function
Look up ox_fuel server functions by name. Returns function signature, parameters, return type, and usage examples for server-side fuel management.
Get Ox Doorlock Server Function
Look up ox_doorlock server functions by name. Returns function signature, parameters, return type, and usage examples for server-side door management.
Get Ox Doorlock Server Event
Look up ox_doorlock server events by name. Returns event signature, parameters, and usage examples for server-side door events.
Get Prodigy Server Event Reference
prp-bridge event reference for server-side events fired by the Prodigy Studios bridge resource. Includes player load/unload, group lifecycle, medical, and UniQueue events.
Get Prodigy Server Export
prp-bridge server-side exports reference. Covers Cooldowns, Allowlist, Groups, UniQueue, Sell Shops, and Cases exports provided by the Prodigy Studios bridge resource.
QBCore Tools (5)
Get Q B Core Shared Data
Look up QBCore shared data structure by name. Returns information about items, jobs, gangs, vehicles, weapons, and utility functions.
Get Q B Core Config
Look up QBCore configuration options and settings. Returns information about core config, player defaults, server settings, and framework options.
Get Q B Core Players
Look up information about the QBCore.Players table structure and how to access player data. Describes player object properties and methods.
Get Q B Core Resource List
Get a complete list of all 58 documented QBCore resources with brief descriptions and categories.
Get Q B Core Resource Reference
Get detailed documentation for a specific QBCore resource. Returns information about configuration, commands, events, callbacks, and usage examples.
MySQL Tools (2)
Get C O X Event Reference
Get information about COX MySQL events and callbacks.
Get C O X Function
Look up COX MySQL functions and methods by name. Returns function signature, parameters, return type, and usage examples.
Available Resources
MCP Resources provide read-only reference documentation that AI assistants can access. Currently available: 4 resources.
1. Code Snippets
Common FiveM code patterns and snippets for quick reference
2. Best Practices
FiveM development best practices and optimization tips
3. Framework Comparison
Comparison of FiveM frameworks: Standalone, ESX, and QBCore
4. Database Queries
FiveM database query examples and common patterns for COX MySQL
Available Prompts
MCP Prompts are pre-built prompt templates for common tasks. Currently available: 5 prompts.
1. Create New Resource
Create a new FiveM resource with framework and language selection
2. Debug Issues
Debug common FiveM issues and errors
3. Optimize Performance
Optimize FiveM script performance
4. Convert Language
Convert code between Lua and JavaScript
5. Add Framework Integration
Add ESX or QBCore framework integration to existing resource
Testing the Server
You can test the MCP server locally using the inspector:
php artisan mcp:inspector fivem
This will open the MCP Inspector in your browser where you can test all the tools interactively.
Development
Adding New Tools
1. Create a new tool class in app/Mcp/Tools/:
<?php
namespace App\Mcp\Tools;
use Illuminate\Contracts\JsonSchema\JsonSchema;
use Laravel\Mcp\Request;
use Laravel\Mcp\Response;
use Laravel\Mcp\Server\Attributes\Description;
use Laravel\Mcp\Server\Tool;
#[Description('Your tool description')]
class YourTool extends Tool
{
public function handle(Request $request): Response
{
// Tool logic here
return Response::text('Result');
}
public function schema(JsonSchema $schema): array
{
return [
'param' => $schema->string()->required(),
];
}
}
2. Register the tool in app/Mcp/Servers/FiveMServer.php:
protected array $tools = [
// ... existing tools
\App\Mcp\Tools\YourTool::class,
];
Code Formatting
Format code with Laravel Pint:
vendor/bin/pint
Supported Frameworks
- Standalone: Basic FiveM resources without framework dependencies
- ESX: ESX Framework (es_extended)
- QBCore: QBCore Framework (qb-core / qbx_core)
- Prodigy Studios (prp-bridge): Unified bridge supporting QBox, QB-Core, ESX, and ND Core with events, exports, UniQueue, groups, allowlists, sell shops, cases, and ped interactions
Scripting Languages
Both Lua and JavaScript are fully supported across all tools and generators.
Resources
- FiveM Documentation
- FiveM Natives Reference
- COX MySQL Documentation - Required for database operations
- QBCore Documentation
- Prodigy Studios Documentation
- Laravel MCP Documentation
- Model Context Protocol
Contributing
Contributions are welcome! Areas for expansion:
- More native functions in the database
- Additional framework support (vRP, etc.)
- More event types
- Advanced code generators
- Database query builders
License
MIT License