Connect with an API key
Connect PromptGale to an agent, SDK or cron job that cannot sign in with OAuth, by sending an API key as a header to the remote MCP server.
Add PromptGale to an agent that cannot sign in with OAuth as a remote MCP server at https://promptgale.com/mcp. Use an API key where OAuth sign-in is not available.
Steps
- 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_...Check that it works
Ask the agent: "Use PromptGale to check who I am connected as, then list the engines." It should call whoami and get_capabilities. Neither costs credits.
Try it
Then ask: "Use PromptGale to ask ChatGPT in the US: what is the best CRM for a small agency? List the sources it cited and tell me whether Acme is mentioned." That runs one task and costs ChatGPT's price in credits.
What the agent can do
Once connected, the agent can ask ChatGPT, Gemini, Perplexity, Bing Copilot Search, Meta AI, Google AI Overview, and Google AI Mode a prompt from the country you pick, and read the answer, its cited sources and where each brand ranks. For example:
- "Ask ChatGPT and Perplexity in the US for the best CRM for a small agency, and tell me which brands they name first."
- "Check whether Gemini mentions Acme when asked for project management tools in Germany."
- "Run these 20 prompts on every engine as a batch and list the sites they cite most."
Running a prompt costs that engine's price in credits; reading results, credits and countries is free. The tools are listed in Connect an agent.
Next
- Every tool and what it costs: Connect an agent.
- What a result contains: Results.
- The engines and their prices: Engines.
Last updated