ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้วต้นแบบ · อัปเดตทุก 30 นาที
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว

FiveM MCP

โดย ziyacivanรุ่น 0.6.0i★ 20iรันบนเครื่อง
ชื่อใน registryio.github.ziyacivan/fivem-mcp

วิธีติดตั้ง

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ ติดตั้งในเครื่อง
  • บัญชีหรือคีย์ ต้องมี FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN
  • หมวด อื่น ๆ
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control, mcpb bridge.

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 3/3 · ทำงานบนเครื่องคุณ · ✓ ตรวจคำสั่งแล้ว 14 พ.ย. 2569

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. สมัครและสร้างคีย์ของ FiveM MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. เปิดไฟล์ตั้งค่าของแอป Claude บนคอม

    SettingsDeveloperEdit Config

  4. วางค่าตั้งนี้แล้วบันทึกไฟล์

    {
      "mcpServers": {
        "fivem": {
          "command": "npx",
          "args": [
            "-y",
            "fivem-mcp-server"
          ],
          "env": {
            "FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
            "FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ"
          }
        }
      }
    }

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. ปิดแอป Claude แล้วเปิดใหม่

  6. ลองเลย

    ใช้ FiveM MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ FiveM MCP หรือมีชื่อเครื่องมือของ FiveM MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ค่าตั้งเพิ่มเติม 9 ช่อง (ไม่ต้องกรอกก็ใช้ได้)

คำสั่งด้านบนใช้ได้เลยโดยไม่ต้องใส่ค่าเหล่านี้ ถ้าอยากปรับค่อยเพิ่มเองตามคำอธิบายของผู้ทำ

  • FIVEM_HOST เครื่องที่รัน FiveM client (DevCon host) ค่าเริ่มต้นคือ 127.0.0.1
    ดูต้นฉบับภาษาอังกฤษMachine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT แทนที่พอร์ต devcon ของไคลเอนต์ (ค่าเริ่มต้น: ลอง 29200 แล้วจึง 29300)
    ดูต้นฉบับภาษาอังกฤษOverride the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS โฮสต์:พอร์ตของ FXServer เกมสำหรับ RCON/getinfo ค่าเริ่มต้น :30120
    ดูต้นฉบับภาษาอังกฤษFXServer game host:port for RCON/getinfo. Default :30120
  • FIVEM_SERVER_LOG พาธไปยัง stdout ที่ถูกเปลี่ยนเส้นทางของ FXServer (server.log) ใช้เปิดใช้งาน read_console/wait_for_console ฝั่งเซิร์ฟเวอร์ (ทางเลือกสำรองสำหรับ bridge รุ่นก่อน 0.5, ไม่บังคับ)
    ดูต้นฉบับภาษาอังกฤษ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_EXECUTABLE พาธไปยัง FiveM.exe สำหรับเครื่องมือเปิดโปรแกรม ค่าเริ่มต้นคือ %LOCALAPPDATA%\FiveM\FiveM.exe
    ดูต้นฉบับภาษาอังกฤษPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY จำนวนบรรทัดคอนโซลฝั่งไคลเอนต์ที่เก็บไว้ในริงบัฟเฟอร์ ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษClient console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS ถือว่าผลลัพธ์ของคำสั่ง client เสร็จสมบูรณ์หลังจากช่วงเงียบนี้ ค่าเริ่มต้นคือ 400
    ดูต้นฉบับภาษาอังกฤษConsider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS เวลารอสูงสุดเริ่มต้นสำหรับผลลัพธ์ของ client_command ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษDefault max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG ตั้งเป็น 1 เพื่อติดตามเฟรม devcon และรอบการทำงานของ RCON ไปยัง stderr
    ดูต้นฉบับภาษาอังกฤษSet to 1 to trace devcon frames and RCON round-trips on stderr

คำอธิบายแปลอัตโนมัติ ชื่อตัวแปรคงตามต้นฉบับ ถ้าไม่แน่ใจให้ดูต้นฉบับ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ FiveM MCP ไม่ได้

FiveM MCP ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ FiveM MCP ได้

  • ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
  • ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)

ข · ตัวอื่นในหมวด อื่น ๆ ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. สมัครและสร้างคีย์ของ FiveM MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  4. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --scope user fivem --env FIVEM_RCON_PASSWORD='ใส่ค่าของคุณ' --env FIVEM_MCPB_TOKEN='ใส่ค่าของคุณ' -- npx -y fivem-mcp-server

    แก้ “ใส่ค่าของคุณ” เป็นคีย์ของคุณก่อนกด Enter

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น FiveM MCP ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  6. ลองเลย

    ใช้ FiveM MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ FiveM MCP หรือมีชื่อเครื่องมือของ FiveM MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ค่าตั้งเพิ่มเติม 9 ช่อง (ไม่ต้องกรอกก็ใช้ได้)

คำสั่งด้านบนใช้ได้เลยโดยไม่ต้องใส่ค่าเหล่านี้ ถ้าอยากปรับค่อยเพิ่มเองตามคำอธิบายของผู้ทำ

  • FIVEM_HOST เครื่องที่รัน FiveM client (DevCon host) ค่าเริ่มต้นคือ 127.0.0.1
    ดูต้นฉบับภาษาอังกฤษMachine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT แทนที่พอร์ต devcon ของไคลเอนต์ (ค่าเริ่มต้น: ลอง 29200 แล้วจึง 29300)
    ดูต้นฉบับภาษาอังกฤษOverride the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS โฮสต์:พอร์ตของ FXServer เกมสำหรับ RCON/getinfo ค่าเริ่มต้น :30120
    ดูต้นฉบับภาษาอังกฤษFXServer game host:port for RCON/getinfo. Default :30120
  • FIVEM_SERVER_LOG พาธไปยัง stdout ที่ถูกเปลี่ยนเส้นทางของ FXServer (server.log) ใช้เปิดใช้งาน read_console/wait_for_console ฝั่งเซิร์ฟเวอร์ (ทางเลือกสำรองสำหรับ bridge รุ่นก่อน 0.5, ไม่บังคับ)
    ดูต้นฉบับภาษาอังกฤษ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_EXECUTABLE พาธไปยัง FiveM.exe สำหรับเครื่องมือเปิดโปรแกรม ค่าเริ่มต้นคือ %LOCALAPPDATA%\FiveM\FiveM.exe
    ดูต้นฉบับภาษาอังกฤษPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY จำนวนบรรทัดคอนโซลฝั่งไคลเอนต์ที่เก็บไว้ในริงบัฟเฟอร์ ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษClient console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS ถือว่าผลลัพธ์ของคำสั่ง client เสร็จสมบูรณ์หลังจากช่วงเงียบนี้ ค่าเริ่มต้นคือ 400
    ดูต้นฉบับภาษาอังกฤษConsider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS เวลารอสูงสุดเริ่มต้นสำหรับผลลัพธ์ของ client_command ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษDefault max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG ตั้งเป็น 1 เพื่อติดตามเฟรม devcon และรอบการทำงานของ RCON ไปยัง stderr
    ดูต้นฉบับภาษาอังกฤษSet to 1 to trace devcon frames and RCON round-trips on stderr

คำอธิบายแปลอัตโนมัติ ชื่อตัวแปรคงตามต้นฉบับ ถ้าไม่แน่ใจให้ดูต้นฉบับ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. สมัครและสร้างคีย์ของ FiveM MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  4. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ FiveM MCP ช่อง FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. เปิดแชตของ AI ใน Cursor โหมด Agent

  6. ลองเลย

    ใช้ FiveM MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ FiveM MCP หรือมีชื่อเครื่องมือของ FiveM MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ค่าตั้งเพิ่มเติม 9 ช่อง (ไม่ต้องกรอกก็ใช้ได้)

คำสั่งด้านบนใช้ได้เลยโดยไม่ต้องใส่ค่าเหล่านี้ ถ้าอยากปรับค่อยเพิ่มเองตามคำอธิบายของผู้ทำ

  • FIVEM_HOST เครื่องที่รัน FiveM client (DevCon host) ค่าเริ่มต้นคือ 127.0.0.1
    ดูต้นฉบับภาษาอังกฤษMachine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT แทนที่พอร์ต devcon ของไคลเอนต์ (ค่าเริ่มต้น: ลอง 29200 แล้วจึง 29300)
    ดูต้นฉบับภาษาอังกฤษOverride the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS โฮสต์:พอร์ตของ FXServer เกมสำหรับ RCON/getinfo ค่าเริ่มต้น :30120
    ดูต้นฉบับภาษาอังกฤษFXServer game host:port for RCON/getinfo. Default :30120
  • FIVEM_SERVER_LOG พาธไปยัง stdout ที่ถูกเปลี่ยนเส้นทางของ FXServer (server.log) ใช้เปิดใช้งาน read_console/wait_for_console ฝั่งเซิร์ฟเวอร์ (ทางเลือกสำรองสำหรับ bridge รุ่นก่อน 0.5, ไม่บังคับ)
    ดูต้นฉบับภาษาอังกฤษ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_EXECUTABLE พาธไปยัง FiveM.exe สำหรับเครื่องมือเปิดโปรแกรม ค่าเริ่มต้นคือ %LOCALAPPDATA%\FiveM\FiveM.exe
    ดูต้นฉบับภาษาอังกฤษPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY จำนวนบรรทัดคอนโซลฝั่งไคลเอนต์ที่เก็บไว้ในริงบัฟเฟอร์ ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษClient console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS ถือว่าผลลัพธ์ของคำสั่ง client เสร็จสมบูรณ์หลังจากช่วงเงียบนี้ ค่าเริ่มต้นคือ 400
    ดูต้นฉบับภาษาอังกฤษConsider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS เวลารอสูงสุดเริ่มต้นสำหรับผลลัพธ์ของ client_command ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษDefault max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG ตั้งเป็น 1 เพื่อติดตามเฟรม devcon และรอบการทำงานของ RCON ไปยัง stderr
    ดูต้นฉบับภาษาอังกฤษSet to 1 to trace devcon frames and RCON round-trips on stderr

คำอธิบายแปลอัตโนมัติ ชื่อตัวแปรคงตามต้นฉบับ ถ้าไม่แน่ใจให้ดูต้นฉบับ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ FiveM MCP (สร้างที่เว็บของผู้ทำ) · ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. สมัครและสร้างคีย์ของ FiveM MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  4. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ FiveM MCP ช่อง FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. เปิดแชตของ AI ใน VS Code โหมด Agent

  6. ลองเลย

    ใช้ FiveM MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ FiveM MCP หรือมีชื่อเครื่องมือของ FiveM MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ค่าตั้งเพิ่มเติม 9 ช่อง (ไม่ต้องกรอกก็ใช้ได้)

คำสั่งด้านบนใช้ได้เลยโดยไม่ต้องใส่ค่าเหล่านี้ ถ้าอยากปรับค่อยเพิ่มเองตามคำอธิบายของผู้ทำ

  • FIVEM_HOST เครื่องที่รัน FiveM client (DevCon host) ค่าเริ่มต้นคือ 127.0.0.1
    ดูต้นฉบับภาษาอังกฤษMachine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT แทนที่พอร์ต devcon ของไคลเอนต์ (ค่าเริ่มต้น: ลอง 29200 แล้วจึง 29300)
    ดูต้นฉบับภาษาอังกฤษOverride the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS โฮสต์:พอร์ตของ FXServer เกมสำหรับ RCON/getinfo ค่าเริ่มต้น :30120
    ดูต้นฉบับภาษาอังกฤษFXServer game host:port for RCON/getinfo. Default :30120
  • FIVEM_SERVER_LOG พาธไปยัง stdout ที่ถูกเปลี่ยนเส้นทางของ FXServer (server.log) ใช้เปิดใช้งาน read_console/wait_for_console ฝั่งเซิร์ฟเวอร์ (ทางเลือกสำรองสำหรับ bridge รุ่นก่อน 0.5, ไม่บังคับ)
    ดูต้นฉบับภาษาอังกฤษ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_EXECUTABLE พาธไปยัง FiveM.exe สำหรับเครื่องมือเปิดโปรแกรม ค่าเริ่มต้นคือ %LOCALAPPDATA%\FiveM\FiveM.exe
    ดูต้นฉบับภาษาอังกฤษPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY จำนวนบรรทัดคอนโซลฝั่งไคลเอนต์ที่เก็บไว้ในริงบัฟเฟอร์ ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษClient console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS ถือว่าผลลัพธ์ของคำสั่ง client เสร็จสมบูรณ์หลังจากช่วงเงียบนี้ ค่าเริ่มต้นคือ 400
    ดูต้นฉบับภาษาอังกฤษConsider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS เวลารอสูงสุดเริ่มต้นสำหรับผลลัพธ์ของ client_command ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษDefault max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG ตั้งเป็น 1 เพื่อติดตามเฟรม devcon และรอบการทำงานของ RCON ไปยัง stderr
    ดูต้นฉบับภาษาอังกฤษSet to 1 to trace devcon frames and RCON round-trips on stderr

คำอธิบายแปลอัตโนมัติ ชื่อตัวแปรคงตามต้นฉบับ ถ้าไม่แน่ใจให้ดูต้นฉบับ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ FiveM MCP อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ติดตั้งในเครื่อง

Claude Code

claude mcp add --scope user fivem --env FIVEM_RCON_PASSWORD='ใส่ค่าของคุณ' --env FIVEM_MCPB_TOKEN='ใส่ค่าของคุณ' -- npx -y fivem-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "fivem": {
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "env": {
        "FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
        "FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "fivem": {
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "env": {
        "FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
        "FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "fivem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fivem-mcp-server"
      ],
      "env": {
        "FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
        "FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ"
      }
    }
  }
}

ค่าที่ต้องใส่เอง

  • FIVEM_HOST env
    เครื่องที่รัน FiveM client (DevCon host) ค่าเริ่มต้นคือ 127.0.0.1
    ดูต้นฉบับภาษาอังกฤษMachine running the FiveM client (DevCon host). Default 127.0.0.1
  • FIVEM_CLIENT_DEVCON_PORT env
    แทนที่พอร์ต devcon ของไคลเอนต์ (ค่าเริ่มต้น: ลอง 29200 แล้วจึง 29300)
    ดูต้นฉบับภาษาอังกฤษOverride the client devcon port (default: try 29200 then 29300)
  • FIVEM_RCON_ADDRESS env
    โฮสต์:พอร์ตของ FXServer เกมสำหรับ RCON/getinfo ค่าเริ่มต้น :30120
    ดูต้นฉบับภาษาอังกฤษFXServer game host:port for RCON/getinfo. Default :30120
  • FIVEM_RCON_PASSWORD ความลับ จำเป็น env
    ต้องตรงกับ rcon_password ใน server.cfg จำเป็นสำหรับ server_command และ bridge
    ดูต้นฉบับภาษาอังกฤษMatches rcon_password in server.cfg; required for server_command and the bridge
  • FIVEM_SERVER_LOG env
    พาธไปยัง stdout ที่ถูกเปลี่ยนเส้นทางของ FXServer (server.log) ใช้เปิดใช้งาน read_console/wait_for_console ฝั่งเซิร์ฟเวอร์ (ทางเลือกสำรองสำหรับ bridge รุ่นก่อน 0.5, ไม่บังคับ)
    ดูต้นฉบับภาษาอังกฤษ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 ความลับ จำเป็น env
    ตรงกับ mcpb_token บนเซิร์ฟเวอร์เมื่อ bridge resource ถูกตั้งค่าด้วยหนึ่งค่า
    ดูต้นฉบับภาษาอังกฤษMatches mcpb_token on the server when the bridge resource is configured with one
  • FIVEM_EXECUTABLE env
    พาธไปยัง FiveM.exe สำหรับเครื่องมือเปิดโปรแกรม ค่าเริ่มต้นคือ %LOCALAPPDATA%\FiveM\FiveM.exe
    ดูต้นฉบับภาษาอังกฤษPath to FiveM.exe for the launch tool. Default %LOCALAPPDATA%\FiveM\FiveM.exe
  • FIVEM_CONSOLE_CAPACITY env
    จำนวนบรรทัดคอนโซลฝั่งไคลเอนต์ที่เก็บไว้ในริงบัฟเฟอร์ ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษClient console lines kept in the ring buffer. Default 5000
  • FIVEM_QUIET_MS env
    ถือว่าผลลัพธ์ของคำสั่ง client เสร็จสมบูรณ์หลังจากช่วงเงียบนี้ ค่าเริ่มต้นคือ 400
    ดูต้นฉบับภาษาอังกฤษConsider client command output complete after this quiet period. Default 400
  • FIVEM_COMMAND_TIMEOUT_MS env
    เวลารอสูงสุดเริ่มต้นสำหรับผลลัพธ์ของ client_command ค่าเริ่มต้นคือ 5000
    ดูต้นฉบับภาษาอังกฤษDefault max wait for client_command output. Default 5000
  • FIVEM_MCP_DEBUG env
    ตั้งเป็น 1 เพื่อติดตามเฟรม devcon และรอบการทำงานของ RCON ไปยัง stderr
    ดูต้นฉบับภาษาอังกฤษSet to 1 to trace devcon frames and RCON round-trips on stderr

คำอธิบายแปลอัตโนมัติ ชื่อตัวแปรคงตามต้นฉบับ ถ้าไม่แน่ใจให้ดูต้นฉบับ

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
118/สัปดาห์
การเชื่อมต่อ
รันบนเครื่อง
รุ่นล่าสุดi
0.6.0
หมวดi
อื่น ๆ
ส่งเข้า registryi
4 ก.ย. 2569
แก้โค้ดล่าสุดi
2 ต.ค. 2569
ผู้ทำ
ziyacivan
แพ็กเกจ
npm: fivem-mcp-server
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 14 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ziyacivan ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด 43 วันที่ผ่านมา

  • ✓ ผ่าน

    มีสัญญาอนุญาต (license)

    ใช้ MIT

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 97% ของอีก 19795 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 29% ของอีก 19795 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 19795 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

FiveM MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 43 วันที่ผ่านมา และส่งรุ่นล่าสุด (0.6.0) เข้า registry 2 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี World Monitor, Claude Flow, Windmill

ตัวอื่นในหมวดเดียวกัน

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

World Monitor

ข่าวกรองโลกแบบเรียลไทม์: ความขัดแย้ง ตลาด พลังงาน การค้า การขนส่ง และไซเบอร์

โดย koala73ใช้กันมาก★ 90.6Kอัปเดต วันนี้

รันบนคลาวด์✓ เจ้าของบริการ · worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

โดย ruvnetใช้กันมาก↓ 13.5K/สัปดาห์★ 81.7Kอัปเดต 14 เดือนที่ผ่านมา

รันบนเครื่อง

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

โดย windmill-labsใช้กันมาก★ 18.6Kอัปเดต เมื่อวานซืน

รันบนคลาวด์

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo