# Connect an agent to PromptGale (MCP) MCP server: https://promptgale.com/mcp (Streamable HTTP, OAuth 2.1; API keys also work). OAuth discovery: https://promptgale.com/.well-known/oauth-protected-resource/mcp and https://promptgale.com/.well-known/oauth-authorization-server. Clients register automatically (Client ID Metadata Documents or Dynamic Client Registration), use PKCE S256, and the user approves in the browser. ## Prompt to paste into your agent Connect yourself to PromptGale (AI answer engine data) through its MCP server. 1. Add a remote MCP server named "promptgale" with the URL https://promptgale.com/mcp Transport: Streamable HTTP. Authentication: OAuth, discovered automatically from the server. No API key needed. Use your own MCP settings, CLI or config file. For example: - Claude Code: claude mcp add --transport http promptgale https://promptgale.com/mcp - Codex: codex mcp add promptgale --url https://promptgale.com/mcp - Gemini CLI: gemini mcp add --transport http --scope user promptgale https://promptgale.com/mcp - OpenClaw: openclaw mcp set promptgale '{"url":"https://promptgale.com/mcp","transport":"streamable-http","auth":"oauth"}' - Hermes Agent: hermes mcp add --url https://promptgale.com/mcp --auth oauth promptgale 2. Start the sign-in for "promptgale" (Claude Code: run /mcp; Codex: codex mcp login promptgale; Gemini CLI: /mcp auth promptgale; OpenClaw: openclaw mcp login promptgale; Hermes Agent: hermes mcp login promptgale). My browser opens a PromptGale page where I log in and click Approve. Wait until the server shows as connected. 3. Check it works: call the whoami tool and tell me which account you are connected to and its available credits. Then call get_capabilities and tell me in a few lines what you can do (engines, countries, prices). If your client stops tool calls after about a minute, raise its MCP tool timeout to 300 s (Codex: tool_timeout_sec = 300) or pass waitSeconds and poll get_task. If you cannot add MCP servers yourself, tell me exactly where to paste https://promptgale.com/mcp in your app (for example in Claude: Customize > Connectors > Add custom connector) and wait for me to finish. If your app does not support OAuth for MCP, ask me for an API key (I create one at https://promptgale.com/dashboard/keys) and send it as the header X-API-Key (Authorization: Bearer works too). Never write the key into a file that is shared or committed. ## Per client ### Claude Code - Add the server from a terminal with claude mcp add --transport http promptgale and the URL. - In Claude Code, run /mcp, pick promptgale and choose Authenticate. Approve in the browser. Terminal: ``` claude mcp add --transport http promptgale https://promptgale.com/mcp ``` Available in every project (optional): ``` claude mcp add --transport http --scope user promptgale https://promptgale.com/mcp ``` ### Cursor - Click Add to Cursor, or put the server in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). - In Cursor Settings, MCP, the server shows Needs login: click it and approve in the browser. Add to Cursor: cursor://anysphere.cursor-deeplink/mcp/install?name=promptgale&config=eyJ1cmwiOiJodHRwczovL3Byb21wdGdhbGUuY29tL21jcCJ9 ~/.cursor/mcp.json: ``` { "mcpServers": { "promptgale": { "url": "https://promptgale.com/mcp" } } } ``` ### Claude (claude.ai, Desktop, mobile, Cowork, Duet) - In Claude open Customize, Connectors, then + and Add custom connector. - Name it PromptGale, paste the URL below and keep the default sign-in settings. - Click Connect, log in to PromptGale and approve. Claude returns to https://claude.ai/api/mcp/auth_callback by itself: nothing to set up. - On Team and Enterprise plans an owner adds it in Organization settings, Connectors. Connector URL: ``` https://promptgale.com/mcp ``` ### ChatGPT (and dots) - On chatgpt.com open Plugins, click + and choose Add custom MCP server. - Paste the URL below as Server URL, choose OAuth as authentication and create it as a plugin. - Install the plugin: sign in to PromptGale and approve when ChatGPT opens the login page. A dot can then use it like any installed plugin. - This needs a plan or workspace that allows custom MCP servers (on some plans, developer mode). Menu names can change. Server URL: ``` https://promptgale.com/mcp ``` ### Codex - Add the server, then sign in with codex mcp login promptgale. Codex opens the browser for the approval. - Set tool_timeout_sec = 300: Codex stops tool calls after 60 s by default and some answers take longer. - The Codex app uses the same config (~/.codex/config.toml). Terminal: ``` codex mcp add promptgale --url https://promptgale.com/mcp codex mcp login promptgale ``` ~/.codex/config.toml: ``` [mcp_servers.promptgale] url = "https://promptgale.com/mcp" tool_timeout_sec = 300 ``` ### Gemini CLI - Add the server from a terminal. - In Gemini CLI, run /mcp auth promptgale and approve in the browser. - Gemini CLI loads MCP servers only in trusted folders: trust the folder when it asks. Terminal: ``` gemini mcp add --transport http --scope user promptgale https://promptgale.com/mcp ``` In Gemini CLI: ``` /mcp auth promptgale ``` ~/.gemini/settings.json (same thing by hand): ``` { "mcpServers": { "promptgale": { "httpUrl": "https://promptgale.com/mcp" } } } ``` ### VS Code and GitHub Copilot - VS Code: add the server to .mcp.json in the workspace root, start it from the MCP servers list and choose Authenticate when asked. Older setups use .vscode/mcp.json with "servers" instead of "mcpServers". - Copilot CLI: run copilot mcp add (below); it signs in with OAuth on first use. To sign in again, run /mcp auth promptgale in Copilot CLI. - Copilot for all your projects: ~/.copilot/mcp-config.json, shared with Copilot CLI. - GitHub's Copilot cloud agent (repository MCP settings) does not support OAuth: use the API key tab with a COPILOT_MCP_ secret. .mcp.json: ``` { "mcpServers": { "promptgale": { "type": "http", "url": "https://promptgale.com/mcp" } } } ``` Copilot CLI: ``` copilot mcp add --transport http promptgale https://promptgale.com/mcp ``` ~/.copilot/mcp-config.json: ``` { "mcpServers": { "promptgale": { "type": "http", "url": "https://promptgale.com/mcp", "tools": [ "*" ] } } } ``` ### OpenClaw - Add the server, then sign in. The login prints a link: open it, approve, and the browser returns to 127.0.0.1:8989. - On a headless server, open the link on any device and finish with openclaw mcp login promptgale --code . - The server is saved under mcp.servers in the OpenClaw config. Terminal: ``` openclaw mcp set promptgale '{"url":"https://promptgale.com/mcp","transport":"streamable-http","auth":"oauth","requestTimeoutMs":300000}' openclaw mcp login promptgale ``` ### Hermes Agent - Add the server, then sign in and approve in the browser. - A timeout of 300 s lets long answers finish. Terminal: ``` hermes mcp add --url https://promptgale.com/mcp --auth oauth promptgale hermes mcp login promptgale ``` ~/.hermes/config.yaml (same thing by hand): ``` mcp_servers: promptgale: url: https://promptgale.com/mcp auth: oauth timeout: 300 ``` ### n8n - In an AI Agent node, add an MCP Client Tool node. - Set Endpoint URL to the URL below and Server Transport to HTTP Streamable. - Authentication: MCP OAuth2. Create an MCP OAuth2 API credential with Use Dynamic Client Registration on (n8n 1.119 or later) and sign in. - For unattended workflows use Bearer Auth with an API key instead (see the API key tab). Endpoint URL: ``` https://promptgale.com/mcp ``` ### Apps with connectors - In each app, paste the URL below and sign in to PromptGale when asked. - Grok: grok.com/connectors, New Connector, Custom. - Grok Bot: Connect apps, add a custom remote connector. - Rakazo: Integrations, +, Manage MCP servers, Add server, then Connect OAuth. - OpenBot: MCP servers, Connect a custom MCP. - Meta Muse: ask Muse to create a Custom Connector with Streamable HTTP, the URL and OAuth. - Perplexity: Connectors, Add custom, Remote, with OAuth. - Le Chat (Mistral): Connectors, + Add Connector, Custom MCP Connector. - Lindy: Connect MCP server; leave Advanced empty to use OAuth. - Zapier: MCP Client with Streamable HTTP and OAuth set to Yes. - Make: MCP Client module, New MCP Server. - Devin: Customize, MCPs, + New MCP, HTTP, OAuth. Server URL: ``` https://promptgale.com/mcp ``` ### Editors - Add the server to your editor config below. Each one signs in with OAuth on first use (in Cline, click Authenticate). Windsurf: ~/.codeium/windsurf/mcp_config.json: ``` { "mcpServers": { "promptgale": { "serverUrl": "https://promptgale.com/mcp" } } } ``` Zed: settings.json: ``` { "context_servers": { "promptgale": { "url": "https://promptgale.com/mcp" } } } ``` Cline: MCP servers settings: ``` { "mcpServers": { "promptgale": { "type": "streamableHttp", "url": "https://promptgale.com/mcp" } } } ``` Kiro: .kiro/settings/mcp.json: ``` { "mcpServers": { "promptgale": { "url": "https://promptgale.com/mcp" } } } ``` ### Terminal agents - Add the server to the agent config below. Each one signs in with OAuth on first use (in opencode, run opencode mcp auth promptgale). Goose: ~/.config/goose/config.yaml: ``` extensions: promptgale: type: streamable_http uri: https://promptgale.com/mcp timeout: 300 enabled: true ``` opencode: opencode.json: ``` { "mcp": { "promptgale": { "type": "remote", "url": "https://promptgale.com/mcp" } } } ``` opencode: sign in: ``` opencode mcp auth promptgale ``` Mistral Vibe: ~/.vibe/config.toml: ``` [[mcp_servers]] name = "promptgale" transport = "streamable-http" url = "https://promptgale.com/mcp" [mcp_servers.auth] type = "oauth" ``` ### Other clients - Clients with remote MCP support: add a server with the URL below and Streamable HTTP transport; they sign in with OAuth on first use. - Clients that only start local (stdio) servers: run it through mcp-remote, which opens the browser for the sign-in and stores the tokens. Remote server config: ``` { "mcpServers": { "promptgale": { "type": "http", "url": "https://promptgale.com/mcp" } } } ``` stdio bridge (mcp-remote): ``` { "mcpServers": { "promptgale": { "command": "npx", "args": [ "-y", "mcp-remote", "https://promptgale.com/mcp" ] } } } ``` ### API key - Create a key in API keys and send it as the X-API-Key header, or as Authorization: Bearer pk_live_... - Who needs a key: Manus (Settings, Connectors, Add custom MCP: HTTP, the URL, header X-API-Key); the GitHub Copilot cloud agent (store the key as a COPILOT_MCP_ secret); unattended servers and cron jobs; SDKs and model APIs that take a token for a remote MCP tool (OpenAI Responses and Agents SDK, Anthropic MCP connector, xAI remote MCP tools). - A key does not expire; revoke it in API keys when you stop using it. Never commit it. Claude Code: ``` claude mcp add --transport http promptgale https://promptgale.com/mcp \ --header "X-API-Key: pk_live_..." ``` JSON config: ``` { "mcpServers": { "promptgale": { "type": "http", "url": "https://promptgale.com/mcp", "headers": { "X-API-Key": "pk_live_..." } } } } ``` GitHub Copilot cloud agent (repository MCP settings, secret COPILOT_MCP_PROMPTGALE_KEY): ``` { "mcpServers": { "promptgale": { "type": "http", "url": "https://promptgale.com/mcp", "headers": { "X-API-Key": "$COPILOT_MCP_PROMPTGALE_KEY" }, "tools": [ "*" ] } } } ``` SDKs and model APIs (remote MCP tool): ``` server_url: https://promptgale.com/mcp Authorization: Bearer pk_live_... ```