Edgegap MCP Server
Connect AI coding agents to Edgegap through our MCP server. Your agent can take a headless server build all the way to players connecting: write or check the Dockerfile, push the image to your private Edgegap registry, deploy an authoritative dedicated server close to players, and read logs when something breaks.
👉 Supported Features
Tip
Using Unity, Unreal Engine, or Godot? Our Unity, Unreal Engine, and Godot guides and plugins remain the fastest path for those engines. The MCP server works alongside them, and on its own for any engine.
Use our MCP server when:
- Containerizing your game server - your agent writes a Dockerfile for your build (or reviews the one you have) against best practices, pushes the image to our private container registry, and removes unused old image tags to reclaim registry capacity.
- Deploying a dedicated server - create and update app versions, review available locations, deploy close to your players, and get server IP with ports to test client connection.
- Building a CI/CD pipeline - test your deployments and teardown from a build system.
- Troubleshooting a game server issue - inspect app versions and deployment status, read container logs and CPU/memory utilization, or reproduce a failed deployment.
- Running client-host and peer-to-peer games - create relay sessions providing NAT punchthrough and avoid connection blocking. Review Orchestration Models and Dedicated Servers or Relays? before deciding.
Warning
Out of scope / not supported by MCP: building Linux server executable; creating, starting or stopping a matchmaker (upload the generated configuration in the dashboard); server browser; lobbies; managed clusters; private fleets; or billing.
Note
If you need help, please reach out to us over Discord. For live games support see our ticketing system.
⚖️ Dedicated Servers or Relays?
Edgegap can host your multiplayer game in two ways. We recommend dedicated servers, and so does our MCP server: your agent will default to a dedicated server and only use a relay when you've chosen a host-client setup.
| Dedicated server (recommended) | Relay | |
|---|---|---|
| What Edgegap runs | Your headless server build, close to players | A traffic forwarder only, no game code |
| Who runs the game | The server | One player's game (the host) |
| Cheating | Much harder, the server has authority | The host can change anything |
| Fairness | Every player connects directly to the server | The host has no latency, everyone else goes through two hops |
| When the host leaves | The match continues | The match ends, unless your game supports host migration |
| Performance limited by | The server's allocated CPU and memory | The host's PC and home internet upload |
| You need | A server build in a container image | Netcode built as a listen server (host-client) |
Note
No server image yet? That's not a reason to choose relays. Your agent can write the Dockerfile for your build with
edgegap_generate_dockerfile. Learn more about relays in Distributed Relay.
🚀 Installation
MCP server installation is very simple:
- Install the MCP server for Popular Agents or with Custom Integration.
- Generate and attach an API token for your agent to use with our MCP server.
Generate (and view) your secret tokens for Edgegap API in Dashboard - User Settings / Tokens.
Add your secret token with each API request as an HTTP header (include the word token):
Authorization: token xxxxxxxx-e458-4592-b607-c2c28afd8b62
Caution
Do not integrate Edgegap API endpoints in game client, as your API token provides unlimited access to your account. See Integration for secure client-facing API endpoints and functions.
Tip
In case your secret tokens are compromised or leaked, delete and re-create them from dashboard.
The token is organization-wide and cannot be scoped to one application. Read DESIGN.md before giving it to an unattended agent.
Popular Agents
Install Edgegap MCP server in your preferred agentic IDE with the Cursor or VS Code buttons at the top of this page, then add your token to the Authorization header.
Claude Code
claude mcp add --transport http edgegap https://mcp.edgegap.dev/mcp \
-H "Authorization: token xxxxxxxx-e458-4592-b607-c2c28afd8b62" --scope user
ChatGPT Codex
Codex reads the token from an environment variable and sends it as Authorization: Bearer <token>, which the hosted endpoint accepts. In ~/.codex/config.toml:
[mcp_servers.edgegap]
url = "https://mcp.edgegap.dev/mcp"
bearer_token_env_var = "EDGEGAP_API_TOKEN"
Then set EDGEGAP_API_TOKEN to your token in the environment Codex starts from.
Claude Desktop and claude.ai
Custom connectors in claude.ai and Claude Desktop cannot send an Authorization header, so the hosted endpoint never receives your token from them: the connector shows as connected, but every tool call fails. Use the Local Server instead.
In Claude Desktop, open Settings → Developer → Edit Config and add the local server to claude_desktop_config.json:
{
"mcpServers": {
"edgegap": {
"command": "npx",
"args": ["-y", "@edgegap/mcp"]
}
}
}
Leave the token out and you're asked for it on first use. claude.ai in the browser can't run a local server, so it can't use Edgegap MCP until the hosted endpoint supports OAuth.
Cursor
The Cursor button at the top of this page installs it; to do it by hand, add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"edgegap": {
"url": "https://mcp.edgegap.dev/mcp",
"headers": { "Authorization": "token xxxxxxxx-e458-4592-b607-c2c28afd8b62" }
}
}
}
VS Code (Copilot agent mode)
The VS Code button at the top of this page installs it; to do it by hand, add this to .vscode/mcp.json (VS Code uses servers, not mcpServers):
{
"servers": {
"edgegap": {
"type": "http",
"url": "https://mcp.edgegap.dev/mcp",
"headers": { "Authorization": "token xxxxxxxx-e458-4592-b607-c2c28afd8b62" }
}
}
}
Windsurf
In ~/.codeium/windsurf/mcp_config.json, run the Local Server, which works in every client that starts MCP servers as commands:
{
"mcpServers": {
"edgegap": {
"command": "npx",
"args": ["-y", "@edgegap/mcp"],
"env": { "EDGEGAP_API_TOKEN": "xxxxxxxx-e458-4592-b607-c2c28afd8b62" }
}
}
}
mcp.json
Most agentic IDEs also support integration by pasting JSON configuration:
{
"mcpServers": {
"Edgegap": {
"type": "http",
"url": "https://mcp.edgegap.dev/mcp",
"headers": {
"Authorization": "token xxxxxxxx-e458-4592-b607-c2c28afd8b62"
}
}
}
}
Custom Integration
Install remote Edgegap MCP server in your agent's virtualized environment (never in your project!):
Node, using the mcp-remote npx package
{
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.edgegap.dev/mcp", "--transport", "http-only"]
}
Python, using the mcp-proxy uvx package
{
"command": "uvx",
"args": ["mcp-proxy", "--transport", "streamablehttp", "https://mcp.edgegap.dev/mcp"]
}
One-Click Install (Claude Desktop)
Download edgegap-mcp.mcpb and open it: Claude Desktop installs the local server as an extension and asks for your API token, which it keeps in the operating system's secure storage. The extension's settings also hold read-only mode, the application allowlist, the max duration ceiling and the deployment cap (the variables below). Each release attaches the bundle, built from that release's code. Any other app that installs MCPB bundles works the same way.
Local Server
To keep your API token on your own machine, run the server locally instead. Leave the token out and your agent asks you for it on first use, holding it in memory only for that session:
{
"mcpServers": {
"Edgegap": {
"command": "npx",
"args": ["-y", "@edgegap/mcp"],
"env": { "EDGEGAP_API_TOKEN": "xxxxxxxx-e458-4592-b607-c2c28afd8b62" }
}
}
}
Needs Node 18+. Pin a version in production (@edgegap/mcp@0.15.6) rather than floating on latest. Registered in the official MCP registry as dev.edgegap/mcp.
The local server can also limit what an agent can do. These variables have no effect on the hosted endpoint at mcp.edgegap.dev:
| Variable | Default | Purpose |
|---|---|---|
EDGEGAP_API_TOKEN |
(prompted) | API token. Optional: omit it and you're asked at first use. The token prefix is added for you. Never pass it as a command-line argument. |
EDGEGAP_READ_ONLY |
0 |
Set to 1 and the tools that change something (marked ● in Tools) are never registered, so the agent cannot be talked into calling them. |
EDGEGAP_APP_ALLOWLIST |
(empty) | Comma-separated application names. Limits what the agent can create and deploy into. Reading (listing apps and versions) is not limited, and neither is touching deployments once running. See DESIGN.md. |
EDGEGAP_MAX_DURATION_MINUTES |
60 |
Ceiling on max_duration the agent may set on a version. edgegap_deploy also refuses a version whose max_duration is above it, or unlimited, unless the agent passes allow_long_running: true after asking you. |
EDGEGAP_MAX_AGENT_DEPLOYMENTS |
5 |
edgegap_deploy refuses while this many deployments tagged edgegap-mcp are running. 0 turns the cap off. |
EDGEGAP_MAX_DEPLOYS_PER_RUN |
20 |
Deploys one server process may send, failed ones included. Restart the server to reset it. 0 turns it off. |
EDGEGAP_STOP_OWN_ONLY |
0 |
Set to 1 and edgegap_stop_deployment only stops deployments tagged edgegap-mcp, so an agent cannot stop servers it did not start. |
EDGEGAP_ENABLE_SKILLS_UPDATE |
0 |
Set to 1 to let edgegap_update_skills run npx skills@1.7.4 update or claude plugin update with apply: true. Without it, it lists those commands for you to run. Hand-copied skills are rewritten from the bundle either way. The updaters get only path, home, temp, locale, proxy and npm settings, never EDGEGAP_* variables or anything named like a token, secret, password or key. |
EDGEGAP_TIMEOUT_MS |
30000 |
Per-request HTTP timeout. |
EDGEGAP_SKILLS_CHECK |
on |
Set to off and the skill tools never read the latest skills version from GitHub. |
Windows
The local server runs on Windows with Node.js 18 or newer, and CI runs the build and the stdio tests on Windows.
- Many Windows MCP clients cannot start
npxdirectly, because it is a.cmdscript. Start it throughcmd /c:"command": "cmd", "args": ["/c", "npx", "-y", "@edgegap/mcp"]. In Claude Code:claude mcp add Edgegap --env EDGEGAP_API_TOKEN=<token> -- cmd /c npx -y @edgegap/mcp. - In PowerShell, type
npx.cmdinstead ofnpxto run it by hand: a new Windows install blocks thenpxPowerShell script ("running scripts is disabled on this system"). - The first start downloads the package and can take a while; later starts are fast.
edgegap_update_skillsfinds skills installed in%USERPROFILE%, the same way as on macOS and Linux.
📚 Skills
The server includes the Edgegap agent skills: tested, step-by-step workflows for getting a multiplayer game online, with templates (Dockerfiles, matchmaker configs, Unity C# and Unreal C++ drop-ins) and known pitfalls. Any agent connected to Edgegap MCP gets them, with no separate install and no token needed, and is told to load the matching skill before working on a game project.
| Skill | For |
|---|---|
edgegap |
Start here for any engine other than Unity or Unreal Engine, or platform questions. Routes to the rest. |
edgegap-unity |
Unity end to end: server build, matchmaker, client, end-to-end test. |
edgegap-ngo |
Unity with Netcode for GameObjects end to end: server start and self-stop, Find Match panel, Boss Room adapter, matchmaker. |
edgegap-fishnet |
Unity with FishNet end to end: headless server, Bayou/WebGL, matchmaker, end-to-end test. |
edgegap-purrnet |
Unity with PurrNet end to end: dedicated server, connect panel, matchmaker, end-to-end test. |
edgegap-fusion |
Unity with Photon Fusion 2 end to end: IL2CPP Linux server, server bound to 0.0.0.0, Edgegap deployment, BR200 kit. |
edgegap-fusion-simplefps |
Photon's Simple FPS sample on Edgegap dedicated servers. |
edgegap-godot |
Godot 4 with a Godot dedicated server: headless export, ENet or WebSocket, matchmaker. |
edgegap-colyseus |
Colyseus servers on Edgegap, direct or through the matchmaker. |
edgegap-nakama |
Nakama as the backend, starting Edgegap servers for its matches. |
edgegap-playfab |
PlayFab Matchmaking with Edgegap servers. |
edgegap-threejs |
Three.js and other browser games with their own Node.js server. |
edgegap-matchmaking |
Matchmaking design for any engine: who owns it, profiles, parties, region selection, backfill, third-party matchmakers. |
edgegap-manus |
Browser games built with Manus: backend matchmaking, Steam sign-in, signed join tokens, Node WebSocket server. |
edgegap-unreal |
Unreal Engine end to end: source engine, Linux server, matchmaker, end-to-end test. |
edgegap-eos-voice |
Voice chat for an Unreal game on Edgegap with EOS Voice: server-side room tokens, match and team rooms. |
edgegap-server-design |
Authoritative server design and the deployment lifecycle. |
edgegap-containerize |
The container contract, Dockerfiles, registries, app versions. |
edgegap-local-testing |
Parity tests on your machine, then one smoke-test deployment. |
edgegap-troubleshoot |
Pull errors, crash loops, out-of-memory, clients that can't connect. |
edgegap-deployments-api |
Backend code that deploys servers: webhooks, cleanup, Nakama, PlayFab, UGS, EOS. |
edgegap-launch |
Launch checklist, rollouts, caching, cost control. |
They're served three ways, so every MCP client can reach them:
- Tools:
edgegap_list_skillsandedgegap_get_skill, which loads a skill'sSKILL.md, or one of its reference documents or templates withfile. - Prompts:
deploy-game-server("Deploy my game server to Edgegap") is the place to start: it finds the engine and netcode, loads the matching skill and walks the golden path, cleanup included. There is also one prompt per skill, named after it. In Claude Code they show up as slash commands, e.g./mcp__edgegap__deploy-game-server. - Resources: each skill's
SKILL.mdis listed, atedgegap-skill://<skill>/SKILL.md; every other file is read through theedgegap-skill://{skill}/{+path}template, e.g.edgegap-skill://edgegap-unity/references/deploy.md.
Each release bundles the skills at the commit pinned in scripts/skills-pin.txt; edgegap_context reports which pack is loaded. edgegap_list_skills also reads the latest pack version from GitHub (one version number, cached for an hour; EDGEGAP_SKILLS_CHECK=off turns it off) and says when a newer one is out, and edgegap_get_skill adds the same note under a skill's header.
Keeping installed skills current. If you also installed the skills in your agent (the Claude Code plugin edgegap@edgegap, npx skills add edgegap/llm-agent-skills, or folders copied into ~/.claude/skills), edgegap_update_skills compares each one with the latest on GitHub. On the local server it finds those installs itself; with apply: true it runs npx skills update (Edgegap skills only) or claude plugin update, and rewrites hand-copied skills from the files bundled in this release, keeping files you added and leaving symlinks and git checkouts alone. It never downloads skill text. The hosted server cannot see your disk: pass the versions you have loaded in installed_versions and it says which are behind and how to update them.
🧰 Tools
Your agent picks the right tool from your request. You don't need to name them, but knowing what's available helps you ask. Tools marked ● change something in your account, accept dry_run, and are hidden when EDGEGAP_READ_ONLY=1.
| Tool | What it does |
|---|---|
edgegap_context |
Shows which API this server talks to, its version, local or hosted, and the guardrails in force. No API call; never shows the token. |
Before Your First Deployment
| Tool | What it does |
|---|---|
edgegap_generate_dockerfile |
Writes a Dockerfile for your server build: your build folder, server binary or start script, ports, and launch arguments, with the right headless flags (Unity -batchmode -nographics, Godot --headless), a non-root user for Unreal, and matching ports. Lists anything it had to assume so your agent can confirm it. Works for Unity, Unreal Engine, Godot, and any other engine. |
edgegap_validate_server_config |
Checks an existing Dockerfile, ports, resources, and image tag before you build. Catches ARM or Windows images (Edgegap runs linux/amd64), Unreal servers running as root, missing Unity -batchmode -nographics, servers bound to localhost, ports that don't match your netcode transport, and the latest tag. |
edgegap_get_registry_credentials ● |
Returns push credentials for your private Edgegap container registry, with the exact docker login, build, and push commands. Edgegap only gives these to the Unity/Unreal plugins' quick-start token; with a regular API token, it tells your agent to ask you for the login from the dashboard's Container Registry page instead. |
edgegap_list_registry_tags |
Confirms your image push landed before you register it. Takes the image name only, e.g. my-game-server: the project comes from your token. |
edgegap_delete_registry_tag ● |
Deletes one tag, and the image it points to, to clean up old builds. One exact tag per call; latest, wildcards and lists are refused. |
Dedicated Servers (Recommended)
| Tool | What it does |
|---|---|
edgegap_list_apps |
Lists your applications. |
edgegap_create_app ● |
Creates an application. |
edgegap_update_app ● |
Turns an application on or off for new deployments. |
| `ed |
