PromptGale MCP server
Ask AI answer engines from your agent, from the country you pick, and get the answer, its sources and brand mentions. MCP server · Docs · connect.txt · Pricing
PromptGale is a scraper API and remote MCP server for AI answer engines. Send a prompt, an engine and a country, and get back the answer the real app shows, its cited sources, the search queries it ran and brand mentions, as JSON.
This repository holds the setup docs and ready-to-copy client configs for the hosted server. PromptGale is remote: there is nothing to install or run locally.
| Server URL | https://promptgale.com/mcp |
| Transport | Streamable HTTP (stateless) |
| Auth | OAuth 2.1 with PKCE S256 (sign in and approve in your browser, no API key needed). API keys also work. |
| Official MCP Registry | com.promptgale/mcp |
Engines: ChatGPT · Google AI Overviews · Google AI Mode · Gemini · Perplexity · Bing Copilot Search · Meta AI
Engines and countries depend on availability: the get_capabilities and list_countries tools return the current lists.
What your agent can do
- Ask an engine from a chosen country, US state, city or map point
- Read the answer text, cited sources, the searches the engine ran, and where a brand ranks
- Run batches across prompts, engines and countries
- Run one prompt or query from every point of a map grid
- Check credits, usage, queue and engine status
Tools
| Tool | What it does |
|---|---|
whoami |
Account, user, connection (OAuth client and scopes or API key), credits and links |
get_capabilities |
Engines available now with price, inputs, location support and countries |
list_countries |
Countries served, optionally for one engine |
list_states |
US states for the state option |
run_prompt |
Ask one AI answer engine and wait for the answer, sources and brand analysis (waitSeconds 0: queue and get a taskId at once) |
run_task |
Any engine with the full REST payload, waits (dryRun: cost estimate only) |
get_task |
Status and result of a task; waitSeconds polls until it finishes |
list_tasks |
Tasks with engine and status filters and pagination |
submit_batch |
Up to 10,000 tasks: prompts x engines or items (dryRun: cost estimate only) |
get_batch |
Batch progress and credits |
list_batch_items |
Batch items, optionally with results |
list_batches |
Recent batches |
submit_location_grid |
One prompt or query from every point of a map grid |
get_location_grid |
Grid points with status and short answers |
list_location_grids |
Recent grids |
get_credits |
Credit balance |
get_usage |
Tasks and credits per day and engine |
get_stats |
Counts, success rate and top errors for the last hours |
get_queue_status |
Queued and running tasks, concurrency limit |
get_capacity |
Engine status and load |
list_api_keys |
REST API key names and prefixes (keys are created and revoked in the dashboard) |
resolve_google_redirect |
The page a Google redirect link leads to |
cancel_task |
Cancel one queued task and release its credits (destructive) |
cancel_batch |
Cancel the queued work of one batch and release its credits (destructive) |
clear_queue |
Cancel every queued task and release their credits (destructive) |
submit_prompt, submit_task |
Deprecated, kept for existing clients: same as run_prompt / run_task with waitSeconds 0 |
The live list comes from the server (tools/list). Reading results, credits, usage, countries and capabilities is free.
Connect your client
Add the server, then start the sign-in your client offers and approve in the browser. Each file in examples/clients is a ready-to-copy config.
Claude Code
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
Then run /mcp, pick promptgale and choose Authenticate.
Claude (claude.ai, Claude Desktop, mobile)
Open Customize → Connectors → + → Add custom connector, name it PromptGale, paste https://promptgale.com/mcp, keep the default sign-in settings and click Connect. On Team and Enterprise plans an owner adds it in Organization settings, Connectors.
Cursor
Add to Cursor, or put this in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"promptgale": {
"url": "https://promptgale.com/mcp"
}
}
}
In Cursor Settings → MCP the server shows Needs login: click it and approve.
VS Code and GitHub Copilot
.mcp.json in the workspace root (older setups use .vscode/mcp.json with "servers" instead of "mcpServers"):
{
"mcpServers": {
"promptgale": {
"type": "http",
"url": "https://promptgale.com/mcp"
}
}
}
Start it from the MCP servers list and choose Authenticate. Copilot CLI: copilot mcp add --transport http promptgale https://promptgale.com/mcp. GitHub's Copilot cloud agent does not support OAuth: use an API key (example).
Windsurf
~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"promptgale": {
"serverUrl": "https://promptgale.com/mcp"
}
}
}
Cline
MCP servers settings, then click Authenticate:
{
"mcpServers": {
"promptgale": {
"type": "streamableHttp",
"url": "https://promptgale.com/mcp"
}
}
}
Codex
codex mcp add promptgale --url https://promptgale.com/mcp
codex mcp login promptgale
Set a 300 s tool timeout in ~/.codex/config.toml (Codex stops tool calls after 60 s by default and some answers take longer). The Codex app uses the same file.
[mcp_servers.promptgale]
url = "https://promptgale.com/mcp"
tool_timeout_sec = 300
Gemini CLI
gemini mcp add --transport http --scope user promptgale https://promptgale.com/mcp
Then run /mcp auth promptgale in Gemini CLI. Gemini CLI loads MCP servers only in trusted folders. By hand, in ~/.gemini/settings.json:
{
"mcpServers": {
"promptgale": {
"httpUrl": "https://promptgale.com/mcp"
}
}
}
ChatGPT
On chatgpt.com open Plugins, click + and choose Add custom MCP server. Paste https://promptgale.com/mcp as Server URL, choose OAuth and create it as a plugin, then sign in to PromptGale and approve. This needs a plan or workspace that allows custom MCP servers (on some plans, developer mode).
Other clients
Zed, Kiro, opencode, Goose and more: see examples/clients and connect.txt. Clients that only start local (stdio) servers can use the mcp-remote bridge.
Prompt to paste into your agent
Connect yourself to PromptGale (AI answer engine data) through its MCP server.
Add a remote MCP server named "promptgale" with the URL https://promptgale.com/mcp
(Streamable HTTP, OAuth discovered automatically, no API key needed), start the sign-in,
and wait until I approve in the browser. Then call whoami and get_capabilities and
tell me which account is connected, its credits, and what you can do.
Authentication
- OAuth 2.1 (recommended). Clients register automatically (Client ID Metadata Documents or Dynamic Client Registration) and use PKCE S256; you log in and approve in the browser. Discovery:
/.well-known/oauth-protected-resource/mcpand/.well-known/oauth-authorization-server. Scopes:mcp(run tasks, spend credits, read everything) andmcp:read(read only). Approved agents are listed in the dashboard under Connected agents, where you can revoke them. - API key. For clients without OAuth, unattended servers and SDKs: create a key in the dashboard and send
X-API-Key: pk_live_...orAuthorization: Bearer pk_live_...(example). Never commit a key.
New accounts have no credits: start the trial or a plan on the pricing page before running tasks. Credits are held when a task is accepted, charged when it completes and refunded when it fails.
Timeouts: some answers take longer than a minute. If your client stops tool calls early, raise its MCP tool timeout to 300 s, or pass waitSeconds and poll get_task.
Call the REST API
The same data is available over REST (OpenAPI 3.1):
curl -X POST https://promptgale.com/v1/sync/task \
-H "Authorization: Bearer $PROMPTGALE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"taskType":"CHATGPT","payload":{"prompt":"best crm for a small agency","country":"US","brand":"Acme"}}'
More in examples/api, the Quickstart and the OpenAPI document.
Links
- Website: promptgale.com
- MCP server page: promptgale.com/mcp-server
- Docs: promptgale.com/docs · Connect an agent · llms.txt
- Changelog: promptgale.com/changelog
- Support: [email protected]
License
The docs and config files in this repository are MIT licensed (see LICENSE). Use of the PromptGale service is governed by its Terms.