Skip to content

Connect MCP clients

Use this server URL to connect a client manually.

https://gptunnel.ru/mcp

In most clients, the URL is all you need. The client opens a browser to sign in with OAuth on the first request. If the client cannot sign in through a browser or the agent runs on a server, use an MCP key in the Authorization: Bearer gtmcp_… header.

Add the connector once to use it on both claude.ai and Claude Desktop.

  1. Open Customize → Connectors.
  2. Click Add, hover over Custom and select Web.
  3. Enter GPTunneL as the name and https://gptunnel.ru/mcp as the server address. Click Continue.
  4. Keep the sign-in settings Claude discovers and click Continue, then Add.
  5. Sign in on the GPTunneL page and click Allow.
  6. In a chat, click + or type /. Open Connectors and enable GPTunneL.

All Claude plans support custom connectors. The free plan allows one. Administrators on Team and Enterprise plans may restrict who can add them. If your menus differ, see Claude Help.

For a server-side agent, keep an MCP key in an environment variable.

import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
headers = {"Authorization": f"Bearer {os.environ['GPTUNNEL_MCP_KEY']}"}
async with streamablehttp_client("https://gptunnel.ru/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
me = await session.call_tool("whoami", {})
print(me.content[0].text)
asyncio.run(main())

The Claude catalog’s media library uses /mcp/claude. To use lab_quote and lab_generate, add a connection to https://gptunnel.ru/mcp with the required permissions.

Ask the agent “Check my GPTunneL connection and tell me which permissions it has.” It will call whoami and show the connection’s permissions. Listing your five latest generations and listing image models are also free.

Tell the agent which organization should pay, for example “Use the Marketing organization’s balance.” The agent finds the organization with list_orgs. By default, GPTunneL charges the personal balance. A connection can use an organization balance only if its spending settings allow it.