Skip to content

Connect an agent

Agents such as Claude, Codex and Cursor can generate images, videos and audio through the qmoon MCP server. You choose their access and spend limit when you sign in.

MCP server
https://api.qmoon.ai/mcp

A remote server over Streamable HTTP. You sign in to qmoon in the browser for each agent.

Set up from the agent

Give this prompt to the agent. It adds qmoon with its own MCP command and checks the connection. Sign in when the browser opens.

Prompt
Connect qmoon to this agent by following https://qmoon.ai/agents/setup.md. The server is https://api.qmoon.ai/mcp, a remote MCP server over Streamable HTTP. Add it with this agent’s own MCP command. I sign in to qmoon myself when the browser opens. Never ask me for a key. Then call account_get and tell me the workspace, the access and how much of the spend limit is left.

Add qmoon to an agent

  1. Click Add to Claude. Or, in Claude, open Customize → Connectors → Add custom connector and paste the server URL.

    Add to Claude
  2. Click Add, then Connect, and sign in to qmoon.

On Team and Enterprise plans, an Owner first adds qmoon in Organization settings → Connectors.

Open Organization settings

The Free plan allows one custom connector.

Scripts and the REST API

Scripts, CI and agents without a browser use an API key. Create one in Settings, store it in QMOON_API_KEY, and send it as the bearer token. The key is shown only once.

Create a key
Check the key
curl https://api.qmoon.ai/api/v1/identity.connection.get -H "Authorization: Bearer $QMOON_API_KEY" -H "Content-Type: application/json" -d '{}'
Claude Code with a key
claude mcp add --transport http --scope user qmoon https://api.qmoon.ai/mcp --header 'Authorization: Bearer ${QMOON_API_KEY}'
Codex with a key
codex mcp add qmoon --url https://api.qmoon.ai/mcp --bearer-token-env-var QMOON_API_KEY