FiveM MCP for VS Code
io.github.ziyacivan/fivem-mcp
Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control, mcpb bridge.
client:VS Code
transport:stdio
runtime:npm
Install FiveM MCP in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "fivem-host",
"description": "FIVEM_HOST",
"password": true
},
{
"type": "promptString",
"id": "fivem-client-devcon-port",
"description": "FIVEM_CLIENT_DEVCON_PORT",
"password": true
},
{
"type": "promptString",
"id": "fivem-rcon-address",
"description": "FIVEM_RCON_ADDRESS",
"password": true
},
{
"type": "promptString",
"id": "fivem-rcon-password",
"description": "FIVEM_RCON_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "fivem-server-log",
"description": "FIVEM_SERVER_LOG",
"password": true
},
{
"type": "promptString",
"id": "fivem-mcpb-token",
"description": "FIVEM_MCPB_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fivem-executable",
"description": "FIVEM_EXECUTABLE",
"password": true
},
{
"type": "promptString",
"id": "fivem-console-capacity",
"description": "FIVEM_CONSOLE_CAPACITY",
"password": true
},
{
"type": "promptString",
"id": "fivem-quiet-ms",
"description": "FIVEM_QUIET_MS",
"password": true
},
{
"type": "promptString",
"id": "fivem-command-timeout-ms",
"description": "FIVEM_COMMAND_TIMEOUT_MS",
"password": true
},
{
"type": "promptString",
"id": "fivem-mcp-debug",
"description": "FIVEM_MCP_DEBUG",
"password": true
}
],
"servers": {
"fivem-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_HOST": "${input:fivem-host}",
"FIVEM_CLIENT_DEVCON_PORT": "${input:fivem-client-devcon-port}",
"FIVEM_RCON_ADDRESS": "${input:fivem-rcon-address}",
"FIVEM_RCON_PASSWORD": "${input:fivem-rcon-password}",
"FIVEM_SERVER_LOG": "${input:fivem-server-log}",
"FIVEM_MCPB_TOKEN": "${input:fivem-mcpb-token}",
"FIVEM_EXECUTABLE": "${input:fivem-executable}",
"FIVEM_CONSOLE_CAPACITY": "${input:fivem-console-capacity}",
"FIVEM_QUIET_MS": "${input:fivem-quiet-ms}",
"FIVEM_COMMAND_TIMEOUT_MS": "${input:fivem-command-timeout-ms}",
"FIVEM_MCP_DEBUG": "${input:fivem-mcp-debug}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs