MCP server
FiveM MCP
Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control…
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.6.0
- Listing updated
- 4 days ago
About FiveM MCP
FiveM MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control, mcpb bridge.
Install
Run in a terminal
claude mcp add fivem-mcp --env FIVEM_RCON_PASSWORD='<FIVEM_RCON_PASSWORD>' --env FIVEM_MCPB_TOKEN='<FIVEM_MCPB_TOKEN>' -- npx -y fivem-mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"fivem-mcp": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_RCON_PASSWORD": "<FIVEM_RCON_PASSWORD>",
"FIVEM_MCPB_TOKEN": "<FIVEM_MCPB_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"fivem-mcp": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_RCON_PASSWORD": "<FIVEM_RCON_PASSWORD>",
"FIVEM_MCPB_TOKEN": "<FIVEM_MCPB_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"fivem-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_RCON_PASSWORD": "<FIVEM_RCON_PASSWORD>",
"FIVEM_MCPB_TOKEN": "<FIVEM_MCPB_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"fivem-mcp": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_RCON_PASSWORD": "<FIVEM_RCON_PASSWORD>",
"FIVEM_MCPB_TOKEN": "<FIVEM_MCPB_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"fivem-mcp": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_RCON_PASSWORD": "<FIVEM_RCON_PASSWORD>",
"FIVEM_MCPB_TOKEN": "<FIVEM_MCPB_TOKEN>"
}
}
}
}Configuration
FIVEM_HOSTMachine running the FiveM client (DevCon host). Default 127.0.0.1FIVEM_CLIENT_DEVCON_PORTOverride the client devcon port (default: try 29200 then 29300)FIVEM_RCON_ADDRESSFXServer game host:port for RCON/getinfo. Default <FIVEM_HOST>:30120FIVEM_RCON_PASSWORDMatches rcon_password in server.cfg; required for server_command and the bridgeFIVEM_SERVER_LOGPath to FXServer's redirected stdout (server.log); enables server-side read_console/wait_for_console (optional fallback transport for pre-0.5 bridges)FIVEM_MCPB_TOKENMatches mcpb_token on the server when the bridge resource is configured with oneFIVEM_EXECUTABLEPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exeFIVEM_CONSOLE_CAPACITYClient console lines kept in the ring buffer. Default 5000FIVEM_QUIET_MSConsider client command output complete after this quiet period. Default 400FIVEM_COMMAND_TIMEOUT_MSDefault max wait for client_command output. Default 5000FIVEM_MCP_DEBUGSet to 1 to trace devcon frames and RCON round-trips on stderr
Pricing
Open source
FiveM MCP FAQ
Is FiveM MCP free?
Yes. FiveM MCP is open source, so you can use and self-host it for free.
How do I add FiveM MCP to Claude Code?
Run this command in your terminal: claude mcp add fivem-mcp --env FIVEM_RCON_PASSWORD='<FIVEM_RCON_PASSWORD>' --env FIVEM_MCPB_TOKEN='<FIVEM_MCPB_TOKEN>' -- npx -y fivem-mcp-server