MCP directory
FM

FiveM MCP

by github.com/ziyacivan · v0.6.0 · updated Sep 4, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • 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_PASSWORDsecret

    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_TOKENsecret

    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

More MCP servers