Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

FiveM MCP

von ziyacivanVersion 0.6.0i★ –iLäuft auf deinem Computer
Name in der Registryio.github.ziyacivan/fivem-mcp

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

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

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Sonstiges
  • Das musst du eintragen: FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: 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

Als geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "fivem": {
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "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"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add fivem --env FIVEM_HOST=your-value --env FIVEM_CLIENT_DEVCON_PORT=your-value --env FIVEM_RCON_ADDRESS=your-value --env FIVEM_RCON_PASSWORD=your-value --env FIVEM_SERVER_LOG=your-value --env FIVEM_MCPB_TOKEN=your-value --env FIVEM_EXECUTABLE=your-value --env FIVEM_CONSOLE_CAPACITY=your-value --env FIVEM_QUIET_MS=your-value --env FIVEM_COMMAND_TIMEOUT_MS=your-value --env FIVEM_MCP_DEBUG=your-value -- npx -y fivem-mcp-server

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "fivem": {
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "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"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "fivem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "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"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

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

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto ziyacivan bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Sonstigesi

  • Mehr Sterne als 0 % der anderen 32589 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 33 % der anderen 32589 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 32589 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist FiveM MCP sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.6.0) kam vor 2 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Spec Driven Development, Remote Desktop Commander, Detailing Manager

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Spec Driven Development

von formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

Läuft auf deinem Computer★ 440MITAktualisiert vor 14 Monaten
Installieren

Remote Desktop Commander

von desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

Läuft in der Cloud★ 211Aktualisiert gestern
Installieren

Detailing Manager

von RadoslavMoshev

Connect your auto detailing studio's tasks, cars, clients and revenue to Claude or ChatGPT.

Läuft auf deinem ComputerAktualisiert heute
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

fivem-mcp

An MCP (Model Context Protocol) server that lets AI agents — Claude, Qwen, or anything that speaks MCP — build, run and live-test FiveM servers from the same machine.

It is the missing test layer for the "did it actually work in-game?" question: the agent can run real console commands, watch both the server log and the *live F8 console of a running FiveM client*, wait for specific output, and react — without you touching the keyboard.

agent (Claude / Qwen / …)

│ MCP over stdio ▼ fivem-mcp-server ──► UDP RCON / getinfo ──► FXServer (game port, e.g. 30120) ──► TCP devcon (29200/29300) ──► FiveM Legacy client F8 console ──► tail ─────────────────────► FXServer's redirected stdout log

Status

v0.5 drives the whole loop: server console (RCON), client F8 console (devcon), the game window (launch, focus, screenshot, keyboard/mouse) and an in-game bridge (mcpb) for natives, exports and NUI callbacks — plus ready-made test prompts. Tools answer with structured content, carry MCP annotations, and stop as soon as the client cancels. All of it live-verified against a real FXServer + FiveM Legacy client (see docs/plan.md and scripts/live-*.mjs).

Where it is published

ChannelAddress
npmfivem-mcp-server — npx -y fivem-mcp-server
MCP Registryio.github.ziyacivan/fivem-mcp (registry.modelcontextprotocol.io)
Source releasesGitHub Releases, tagged vX.Y.Z

The repository's GitHub Packages sidebar is deliberately empty: the artifact lives on npmjs.com, not GitHub Packages — the latter would force a scoped @ziyacivan/ package name and a second registry for no benefit.

Requirements

  • Node 22+ (Windows, macOS or Linux for the server side; the client devcon works wherever the FiveM client runs — this tool must run on that machine for the client_* tools since devcon binds to localhost by default).
  • A running FXServer you administer (rcon_password set for server_command).
  • The Legacy FiveM client for the client-console tools (Enhanced removed the client devcon ports; see docs/protocol.md).
  • The keyboard/mouse/screenshot tools are Windows-only and run on the machine with the game. On other platforms every tool except those is served normally.

Install

Published on npm — no clone needed. Add it to Claude Code in one line:

claude mcp add fivem -s user \

-e FIVEM_RCON_PASSWORD=your-rcon-password \ -e FIVEM_SERVER_LOG=C:\FXServer\my-data\server.log \ -- npx -y fivem-mcp-server

(-s user = available in every project; drop it for a per-project entry. Verify with claude mcp get fivem — status should read ✓ Connected. Remove with claude mcp remove fivem -s user.)

For a shared project config, put .mcp.json in the repo root and commit it — Claude Code asks to approve it on first open, and env values can be interpolated from your local .env-less shell via ${VAR} expansion:

{

"mcpServers": { "fivem": { "command": "npx", "args": ["-y", "fivem-mcp-server"], "env": { "FIVEM_RCON_PASSWORD": "${FIVEM_RCON_PASSWORD}", "FIVEM_SERVER_LOG": "${FIVEM_SERVER_LOG}" } } } }

For Claude Desktop (or any client with JSON config), add to claude_desktop_config.json:

{

"mcpServers": { "fivem": { "command": "npx", "args": ["-y", "fivem-mcp-server"], "env": { "FIVEM_RCON_PASSWORD": "your-rcon-password" } } } }

The server is also listed in the MCP Registry as io.github.ziyacivan/fivem-mcp. Building from source (development):

git clone https://github.com/ziyacivan/fivem-mcp

cd fivem-mcp && pnpm install && pnpm build claude mcp add fivem -- node ./dist/index.js # points at your working copy

Configuration (environment)

VariableDefaultMeaning
FIVEM_HOST127.0.0.1Machine running the FiveM client (devcon host)
FIVEM_EXECUTABLE%LOCALAPPDATA%\FiveM\FiveM.exeFiveM.exe for the launch tool
FIVEM_CLIENT_DEVCON_PORT29200 then 29300Override the client devcon port
FIVEM_RCON_ADDRESSFIVEM_HOST:30120FXServer game port (UDP RCON + getinfo)
FIVEM_RCON_PASSWORD—Matches rcon_password in server.cfg; needed by server_command
FIVEM_SERVER_LOG—Path to FXServer's redirected stdout; enables server-side read_console / wait_for_console. Not needed by the bridge since v0.5 (results poll in-band) — it is the pre-0.5 fallback transport
FIVEM_MCPB_TOKEN—Matches mcpb_token on the server; sent with every bridge request
FIVEM_CONSOLE_CAPACITY5000Client console lines kept in the ring buffer
FIVEM_QUIET_MS400Consider command output done after this quiet period
FIVEM_COMMAND_TIMEOUT_MS5000Default max wait for client_command output
FIVEM_MCP_DEBUG—1 traces devcon frames and RCON round-trips on stderr

Tools

ToolWhat it does
statusConnection state: RCON, log file, client devcon. Call first.
server_infogetinfo over UDP — hostname, players, max clients, protocol, game build. No credentials needed.
server_commandAny server console command over UDP RCON; returns the captured output.
client_commandTypes into the F8 console of a running Legacy client over devcon (nothing steals focus). This is the local console command layer — connect, quit, tooling; RegisterCommand chat commands are a different system (use server_command, which runs with console privileges, or the input/bridge tools). Returns the console lines it printed.
read_consoleRecent lines: client = live devcon stream (with afterSeq paging), server = tail of FIVEM_SERVER_LOG. Filter by channel/contains/pattern.
wait_for_consoleBlock until a line matching a regex appears — your assertion primitive.
list_commandsEvery command the client console knows (devcon handshake).
launchStart FiveM, optionally straight into host:port (default: the configured server).
quit_gameGraceful quit over devcon; force kills the FiveM process tree.
window_statusGame window existence, title, pid, rect, foreground state.
focus_window / restore_focusBring the game forward / give focus back to your window. Input tools focus automatically.
screenshotPNG of the game window (PrintWindow, screen-BitBlt fallback). Downscaled — default 900, optional crop rect. Every shot costs transcript tokens all session: prefer text probes, shoot small.
press_key / hold_key / release_keyReal scan-code input — GTA's DirectInput ignores VK-only injection. Held keys are released if the process dies.
type_textLiteral Unicode events — the channel the F8 console and chat NUI read.
mouse_move / click / scrollRelative moves drive the camera; absolute coordinates position the cursor for NUI.
waitPause between actions (loading screens, walk cycles).
read_client_logThe newest CitizenFX_log_*.log from the FiveM install.
bridgeInvoke the mcpb bridge resource: ping, players, poll, call_export, trigger_event (server half) and ping, position, teleport, freeze, call_native, send_nui, nui_callback (client half). op is validated against the chosen target.

Prompts

Two workflows are shipped as MCP prompts, distilled from the live-verified loops:

  • `test_resource(resource, expectations?)` — clean restart → console error scan → client-half scan → in-game scenario (keys, screenshot, bridge state) → evidence-backed PASS/FAIL report where anything unverifiable is said so out loud.
  • `smoke_check` — one fast sweep: connections, which server, error tails on both sides, window + screenshot, persisted client log. OK/WARN/DOWN per line.

The bridge resource (bridge/)

Client-side testing (natives, NUI callbacks, position) is outside what devcon and RCON can reach — the small companion resource closes that gap and ships in this repo.

# on the dev server

cp -r bridge/ /resources/mcpb # or a junction

server.cfg:

ensure mcpb

setr mcpb_enabled true

setr mcpb_token

setr mcpb_event_allowlist my:event,other:event # trigger_event may fire only these

setr mcpb_export_allowlist myres:*,other:method # optional; empty = any export

setr mcpb_native_allowlist SetEntityHealth,GetGameTimer # optional; empty = any native

setr mcpb_client_timeout_ms 8000 # a silent client fails fast

setr mcpb_verbose true # echo requests to both consoles

and point this server at it with FIVEM_MCPB_TOKEN. Then:

bridge { target: "client", src: 1, op: "position" }

bridge { target: "server", op: "call_export", args: "{\"resource\":\"myres\",\"method\":\"money\",\"args\":[1]}" }

Client results come back through an in-band queue polled over RCON (~100 ms granularity since v0.5 — no log file needed; pre-0.5 resources still fall back to the log tail).

Dev servers only. mcpb_enabled defaults to false, the command is accepted only from the console/RCON (never from a player), and the token is checked when set — but call_native is exactly as safe as the console it runs behind. Keep RCON and this bridge off anything you care about; see SECURITY.md. The full wire contract: docs/protocol.md §4.

Typical loop (what an agent does)

  1. server_command: "ensure my-resource"
  2. wait_for_console: target=server, pattern="Started resource my-resource|Error"
  3. client_command: "connect localhost:30120" drives the join itself, then read_console: target=client catches client-side console output that never reaches the server log.

Security notes — read before exposing anything

  • The client devcon socket has no authentication. Anyone who can reach it can run local console commands in that game client (connect, quit, ...). FiveM binds it to 127.0.0.1 unless the client is started with -devcon (then 0.0.0.0); this tool assumes the loopback default and never needs more. Do not tunnel it.
  • RCON is the server's admin root. Keep rcon_password strong; FIVEM_RCON_PASSWORD lives in your MCP config — protect that file the same way.
  • FXServer itself has no server-side devcon socket on current builds (verified 2026-09-02), which is why the server half is RCON + log tail.
  • Treat server_command as giving the agent root on your box the moment it can exec anything; run it only against development servers.

Development

pnpm test        # vitest: fake devcon/rcon servers, byte-level SendInput/PNG checks, bridge contract, docs drift

pnpm typecheck pnpm check # biome pnpm build # -> dist/ pnpm run ci # all of the above (plain pnpm ci is a pnpm builtin and errors)

Releasing: move the Unreleased changelog notes under the new version heading, then pnpm version (bumps and syncs server.json + the bridge manifest, and tags), npm publish from your machine (prepublishOnly runs the full gate), and git push --follow-tags. The Release workflow then re-runs the gate, creates the GitHub Release from CHANGELOG.md, and registers the version with the MCP Reg

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen