MCP keys
An MCP key is a gtmcp_… token for clients that connect without a browser, such as servers, CI jobs and tools that do not support OAuth sign-in. Each key has its own permissions, spending limits and expiration.
Creating a Key
Section titled “Creating a Key”- Open Profile → MCP and select New.
- Give the key a clear name, for example
n8n productionorCursor on my laptop. - Select the permissions, expiration and spending limits.
- Copy the token and save it in a password manager or an environment variable.
Send the token in the Authorization header with every request.
Authorization: Bearer gtmcp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRights
Section titled “Rights”Choose permissions for each section based on what the key needs to do. For example, select Read in Gallery to generate a gallery report.
| Section | Levels | What they allow |
|---|---|---|
| Workflow | None / Read / Write / Full | Read (workflow:read) lists workflows and reads their graphs and run status. Write (workflow:write) creates, edits and deletes workflows, copies templates and uploads files. Full grants both |
| Launch (under Workflow) | Off / On | workflow:execute starts or cancels runs and retries or resets nodes. Starting runs and retrying nodes can charge your balance |
| Creative Lab | None / Read / Full | Read (lab:read) lists models, quotes prices and checks generation status. Full adds lab:generate, which can charge your balance when you generate media |
| Gallery | None / Read / Full | Read (gallery:read) views your generations and collections. Full adds gallery:write to manage them. Gallery operations are free |
| Apps | None / Read / Full | Read (apps:read) lists apps and prices, quotes costs and checks task status. Full adds apps:run, which can charge your balance when you run an app |
New keys default to Full for workflows with Launch off, and Read for Creative Lab. Enable the relevant execution permission to allow paid calls.
An agent sees only the tools its key can call. See the permission identifiers and call whoami to check the active key’s permissions.
Organization access settings may require org:access or org:access:write, depending on the user’s role and the operation. After issuing the key, use whoami to verify its permissions and tools/list to view the available tools.
Key lifetime
Section titled “Key lifetime”Choose a lifetime of 7, 30, 60, 90, or 365 days. The default is 30 days. Site notifications remind you 60, 30, and 7 days before expiry and on the final day. An expired key returns 401 Unauthorized.
To renew a key, select Reissue in its menu. The new token keeps the key’s name, permissions, and limits. The old token stops working immediately. Replace it in your client settings.
Spending limits
Section titled “Spending limits”Select Spending limits in the key menu. Each key has a daily limit (1,000 ₽ by default), an optional monthly limit, and an option to pay from organization balances (off by default). See Billing and limits.
How many keys can I create?
Section titled “How many keys can I create?”Each account can have up to 20 active keys. OAuth connections do not count toward this limit. If you have reached the limit, revoke a key you no longer use before creating a new one.
Revoke a key
Section titled “Revoke a key”Select Revoke in the key menu. Revocation takes effect immediately. Requests using that token return 401. If a token may have been exposed, revoke it immediately and issue a new key.
Security
Section titled “Security”- Store the token like a password, in an environment variable or secret manager. Keep it out of source code and repositories.
- Use a separate key for each client or environment. This helps you identify charges and revoke individual keys.
- Set a daily spending limit on keys that can start generation.
- Send the token only to
https://gptunnel.ru/mcp. HTTPS protects the token in the request header.