Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NAKAMA_HOSTNoHost for both APIs.127.0.0.1
NAKAMA_PORTNoClient API port.7350
NAKAMA_USE_SSLNoUse https instead of http.false
NAKAMA_SERVER_KEYNoServer key for client authenticate endpoints.defaultkey
NAKAMA_TIMEOUT_MSNoPer-request timeout.15000
NAKAMA_CONSOLE_PORTNoConsole API port.7351
NAKAMA_CONSOLE_PASSWORDNoConsole admin password.password
NAKAMA_CONSOLE_USERNAMENoConsole admin user.admin

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
nakama_search_actionsA

Search the Nakama API catalog (179 operations: 87 client, 92 console) by natural-language intent and get matching action IDs, HTTP method/path, summaries, and parameter schemas. Use this to discover the action_id you then pass to nakama_execute_action. Results include resolved request-body field schemas when available. Examples: 'list players', 'write storage object', 'leaderboard records', 'ban account', 'active matches'.

nakama_execute_actionA

Execute any Nakama operation by its action_id (from nakama_search_actions). Provide path_params, query_params, and/or body as needed. Auth is handled automatically: console actions auto-login with configured admin credentials; client actions use the player session from nakama_authenticate; authenticate endpoints use the server key. For calling server RPCs prefer nakama_call_rpc (it encodes the payload correctly).

nakama_authenticateA

Establish a player session for the client API (:7350). Required before calling other client/player endpoints. Supports device, custom, or email auth. The session token is held in memory for subsequent calls.

nakama_call_rpcA

Invoke a registered runtime RPC function by id over the client API. Pass payload as a JSON object or string; it is encoded as the gateway expects. Provide http_key to call an RPC without a player session; otherwise authenticate first with nakama_authenticate.

nakama_console_list_accountsA

List/search player accounts via the console API. Optional filter by user ID or username.

nakama_console_get_accountA

Fetch a single player account (profile, wallet, devices, linked logins) by user ID via the console API.

nakama_console_list_storageA

List storage objects via the console API, optionally filtered by collection, key, and/or owner user ID.

nakama_console_get_statusA

Return Nakama node status and lightweight service metrics (CPU, memory, latency, presences) via the console API.

nakama_write_storage_objectA

Write or update a single storage object as the authenticated player (call nakama_authenticate first). Pass value as an object or JSON string. Use version '*' to require the object not already exist.

nakama_write_leaderboard_recordA

Submit a score to a leaderboard as the authenticated player (call nakama_authenticate first).

nakama_send_notificationB

Send an in-app notification to a player via the console API. Use a positive app-defined code (<=0 is reserved).

nakama_ban_accountB

Ban a player account by user ID via the console API.

nakama_unban_accountA

Remove a ban from a player account by user ID via the console API.

nakama_healthcheckA

Probe both APIs: the client /healthcheck endpoint and a console status call (which also verifies admin login). Returns a per-surface reachability report. Use this first when calls are failing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mlger/nakama-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server