Claude over MCP
Claude over MCP
Connecting Claude Code or Claude Desktop to the studio and what Claude can do in a project.
The studio has an MCP server: a set of tools through which Claude works in the project open in the studio. It reads and writes files, starts the server, reads logs and Problems, builds the scene, makes mechanics and adapters, and checks the result in the game. Everything it does shows in Output under the Claude source.
Connecting
On the status bar, click MCP. The window has two buttons:
- Connect to Claude Code: the studio adds its server to Claude Code’s configuration on this computer;
- Connect to Claude Desktop: the same for Claude Desktop. Restart Claude Desktop afterwards.
The Manually part gives a terminal command and an entry for claude_desktop_config.json. They contain this installation’s token: do not send them to anyone.
The MCP server listens only on this computer (127.0.0.1) and requires the token. When the studio is closed, Claude has no access to it.
What Claude can do
| Area | Example tools |
|---|---|
| Files and resources | file_read, file_write, resource_create, resource_restart, resource_install |
| Server and logs | server_start, server_console, log_read, problems_list, test_run |
| Game | game_launch, game_screenshot, player_position, player_teleport, client_exec_lua |
| Scene | scene_add (with relations: on the ground, facing, around), scene_check, model_front |
| Mechanics | mech_catalog, mech_save, mech_try |
| Fitting | caps_list, adapter_new, caps_check |
| Database | db_query, db_snapshot, db_import_dump |
| Knowledge | kb_native_search, kb_docs_search: current natives documentation and docs.fivem.net |
| Production | deploy_run, prod_logs, prod_players (Claude changes production only after you agree) |
Game screenshots, client Lua and the Inspector over MCP are in the Creator plan and above.
Example prompts
Make a resource called workshop: the /repair command repairs the car the player sits in. Check it in the game.
On Legion Square set up a café terrace with four tables and chairs around them. Check the scene and show me screenshots from four sides.
Make an adapter for my_inventory: give an item, take an item and how many the player has. Check it on Player 1.
At the police station counter add a mechanic: police only, [E] Take a vest, a 3 s progress bar, gives the armor item.
Good habits
- Claude works in the project open in the studio. Switching the project in the studio switches its project too.
- Ask it to check in the game (“check it in the game”, “show a screenshot”): Claude has the tools for it and finishes only when the result is right.
- When the project lacks a capability, Claude suggests an adapter for your resource instead of a workaround in code.