Help center

Connect to other AI agents

Beyond ChatGPT and Claude, AhaGPT works in any AI agent that supports remote MCP servers: Cursor, VS Code, Windsurf, Gemini CLI, Codex, Le Chat and more.

What every app needs

AhaGPT is a remote MCP server. Whatever app you use, you give it the same three things:

SettingValue
Address (URL)https://mcp.ahagpt.com/mcp
TransportStreamable HTTP (sometimes just called “HTTP”)
Sign-inOAuth. No API key: a browser window opens, you enter your email and the 6-digit code we send, then press Allow.

Menus move around between app versions, so if a button below has a slightly different name, look for “MCP”, “Tools” or “Connectors” in the app’s settings.

Cursor

  1. Open Cursor Settings → Tools & MCP (older versions: MCP) and choose New MCP server. This opens ~/.cursor/mcp.json.
  2. Add AhaGPT:
{
  "mcpServers": {
    "AhaGPT": { "url": "https://mcp.ahagpt.com/mcp" }
  }
}
  1. Save. Back in the MCP list, AhaGPT shows Needs login: click it and sign in.
  2. In the chat, use Agent mode and ask “publish this page with AhaGPT as quancafe”.

To share the setup with a team, put the same file at .cursor/mcp.json inside the project instead.

VS Code (GitHub Copilot)

  1. Open the Command Palette (Ctrl/Cmd+Shift+P) and run MCP: Add Server.
  2. Choose HTTP, paste https://mcp.ahagpt.com/mcp, name it AhaGPT and pick whether it is for this workspace or all of them.
  3. VS Code asks to sign in: allow it, then finish in the browser.
  4. Open Copilot Chat, switch to Agent mode and check that the AhaGPT tools are ticked in the tools picker.

Or write the file yourself, as .vscode/mcp.json in the project:

{
  "servers": {
    "AhaGPT": { "type": "http", "url": "https://mcp.ahagpt.com/mcp" }
  }
}

Windsurf

  1. In the Cascade panel, open the MCP (hammer) menu and choose Manage MCPs → View raw config. This opens ~/.codeium/windsurf/mcp_config.json.
  2. Add AhaGPT, save, then press Refresh:
{
  "mcpServers": {
    "AhaGPT": { "serverUrl": "https://mcp.ahagpt.com/mcp" }
  }
}
  1. Windsurf opens the browser to sign in the first time you use a tool.

Gemini CLI

In a terminal:

gemini mcp add --transport http AhaGPT https://mcp.ahagpt.com/mcp

Then start gemini and run /mcp auth AhaGPT to sign in. /mcp lists the tools once you are connected. The command writes this to ~/.gemini/settings.json (or .gemini/settings.json in the project), which you can also edit by hand:

{
  "mcpServers": {
    "AhaGPT": { "httpUrl": "https://mcp.ahagpt.com/mcp" }
  }
}

OpenAI Codex (CLI and IDE extension)

codex mcp add AhaGPT --url https://mcp.ahagpt.com/mcp
codex mcp login AhaGPT

The first line saves the server, the second opens the browser to sign in. Codex keeps it in ~/.codex/config.toml, shared by the CLI and the IDE extension:

[mcp_servers.AhaGPT]
url = "https://mcp.ahagpt.com/mcp"

Type /mcp inside Codex to check that AhaGPT is connected.

Mistral Le Chat

  1. Open Intelligence → Connectors and choose Add connector.
  2. Pick Custom MCP connector, name it AhaGPT and paste https://mcp.ahagpt.com/mcp as the server URL.
  3. Choose OAuth if asked, press Connect and sign in.
  4. In a chat, enable AhaGPT under the tools / connectors button and ask it to publish your page.

Any other app (local MCP only)

Some apps can only start MCP servers as a local command and can’t talk to a remote URL or do OAuth themselves (for example older versions of Claude Desktop, Cline, Zed or LM Studio). For those, use the free mcp-remote bridge. It needs Node.js 18 or newer:

{
  "mcpServers": {
    "AhaGPT": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.ahagpt.com/mcp"]
    }
  }
}

Put this in the app’s MCP settings file. On first start, mcp-remote opens your browser to sign in and remembers the login (in ~/.mcp-auth). If the app supports remote servers directly, prefer that.

Check that it works

Ask your agent something small first:

  • “Show my AhaGPT account.” It should answer with your email and plan.
  • “Is the name quancafe free on AhaGPT?”
  • “Publish a hello-world page with AhaGPT as test-123.” You should get https://test-123.ahagpt.com back.

If something goes wrong

  • No AhaGPT tools appear: save the config, then refresh the MCP list or restart the app. Check the URL ends in /mcp.
  • The sign-in window never opens: look for a Login / Needs authentication button next to AhaGPT in the MCP list, or a link in the terminal you can open by hand.
  • “Unauthorized” after it worked before: sign out of AhaGPT in the app (or delete ~/.mcp-auth when using mcp-remote) and connect again.
  • The agent ignores the tools: use Agent mode (Cursor, VS Code) and make sure AhaGPT is enabled for the chat. Naming it in your message helps: “use AhaGPT to…”.
  • Too many tools: some apps cap the total number of tools across all servers. Turn off servers you don’t need.