Home › Other › FiveM MCP

FiveM MCP

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

TypeScript
★ 12 stars Last pushed 2026-09-18 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 0.6.0)

npx -y [email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "fivem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "FIVEM_HOST": "<YOUR_VALUE>",
        "FIVEM_CLIENT_DEVCON_PORT": "<YOUR_VALUE>",
        "FIVEM_RCON_ADDRESS": "<YOUR_VALUE>",
        "FIVEM_RCON_PASSWORD": "<YOUR_VALUE>",
        "FIVEM_SERVER_LOG": "<YOUR_VALUE>",
        "FIVEM_MCPB_TOKEN": "<YOUR_VALUE>",
        "FIVEM_EXECUTABLE": "<YOUR_VALUE>",
        "FIVEM_CONSOLE_CAPACITY": "<YOUR_VALUE>",
        "FIVEM_QUIET_MS": "<YOUR_VALUE>",
        "FIVEM_COMMAND_TIMEOUT_MS": "<YOUR_VALUE>",
        "FIVEM_MCP_DEBUG": "<YOUR_VALUE>"
      }
    }
  }
}
  • FIVEM_HOST — Machine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT — Override the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS — FXServer game host:port for RCON/getinfo. Default <FIVEM_HOST>:30120
  • FIVEM_RCON_PASSWORD secret — Matches rcon_password in server.cfg; required for server_command and the bridge
  • FIVEM_SERVER_LOG — Path 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_TOKEN secret — Matches mcpb_token on the server when the bridge resource is configured with one
  • FIVEM_EXECUTABLE — Path to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY — Client console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS — Consider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS — Default max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG — Set to 1 to trace devcon frames and RCON round-trips on stderr

Related servers

Data from the Official MCP Registry