Back to MCP Servers
🧩

Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control, mcpb bridge.

To add FiveM MCP to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 11 environment variables, listed below.

AIDevTools

Install

npx -y fivem-mcp-server@0.6.0

Environment variables

FIVEM_HOSTSet in your MCP config
FIVEM_CLIENT_DEVCON_PORTSet in your MCP config
FIVEM_RCON_ADDRESSSet in your MCP config
FIVEM_RCON_PASSWORDSet in your MCP config
FIVEM_SERVER_LOGSet in your MCP config
FIVEM_MCPB_TOKENSet in your MCP config
FIVEM_EXECUTABLESet in your MCP config
FIVEM_CONSOLE_CAPACITYSet in your MCP config
FIVEM_QUIET_MSSet in your MCP config
FIVEM_COMMAND_TIMEOUT_MSSet in your MCP config
FIVEM_MCP_DEBUGSet in your MCP config

Install with your client

Terminal
claude mcp add fivem --env FIVEM_HOST=<YOUR_FIVEM_HOST> --env FIVEM_CLIENT_DEVCON_PORT=<YOUR_FIVEM_CLIENT_DEVCON_PORT> --env FIVEM_RCON_ADDRESS=<YOUR_FIVEM_RCON_ADDRESS> --env FIVEM_RCON_PASSWORD=<YOUR_FIVEM_RCON_PASSWORD> --env FIVEM_SERVER_LOG=<YOUR_FIVEM_SERVER_LOG> --env FIVEM_MCPB_TOKEN=<YOUR_FIVEM_MCPB_TOKEN> --env FIVEM_EXECUTABLE=<YOUR_FIVEM_EXECUTABLE> --env FIVEM_CONSOLE_CAPACITY=<YOUR_FIVEM_CONSOLE_CAPACITY> --env FIVEM_QUIET_MS=<YOUR_FIVEM_QUIET_MS> --env FIVEM_COMMAND_TIMEOUT_MS=<YOUR_FIVEM_COMMAND_TIMEOUT_MS> --env FIVEM_MCP_DEBUG=<YOUR_FIVEM_MCP_DEBUG> -- npx -y fivem-mcp-server@0.6.0

Run this in a terminal to add the server to Claude Code.

What this does

FiveM MCP exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server needs the following environment variables to be set before it can run:

FIVEM_HOST
FIVEM_CLIENT_DEVCON_PORT
FIVEM_RCON_ADDRESS
FIVEM_RCON_PASSWORD
FIVEM_SERVER_LOG
FIVEM_MCPB_TOKEN
FIVEM_EXECUTABLE
FIVEM_CONSOLE_CAPACITY
FIVEM_QUIET_MS
FIVEM_COMMAND_TIMEOUT_MS
FIVEM_MCP_DEBUG

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install FiveM MCP?

Run the Claude Code command in the install section to add FiveM MCP to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with FiveM MCP?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to FiveM MCP as well.

Does FiveM MCP need an API key?

Yes. Before it can run, set these environment variables: FIVEM_HOST, FIVEM_CLIENT_DEVCON_PORT, FIVEM_RCON_ADDRESS, FIVEM_RCON_PASSWORD, FIVEM_SERVER_LOG, FIVEM_MCPB_TOKEN, FIVEM_EXECUTABLE, FIVEM_CONSOLE_CAPACITY, FIVEM_QUIET_MS, FIVEM_COMMAND_TIMEOUT_MS, FIVEM_MCP_DEBUG. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-ziyacivan-fivem-mcp)](https://clauderules.net/mcp/io-github-ziyacivan-fivem-mcp)
HTML
<a href="https://clauderules.net/mcp/io-github-ziyacivan-fivem-mcp" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-ziyacivan-fivem-mcp" alt="Listed on clauderules.net" /></a>