Connect external coding agents (Cursor, Claude Code, etc.) to run query fan-outs via
streamable-http MCP.
Sign in to generate agent tokens; provider keys can be configured on
API Key Management or sent per request (BYOK).
MCP endpoint: https://querytool.ai/mcp
Add the querytool server to your MCP client config using the snippet below.
Replace <your_agent_token_secret> with a bearer secret from your account (sign in to create one).
Optional BYOK headers: X-Gemini-Api-Key, X-OpenAI-Api-Key.
Do not commit your plaintext token.
{
"mcpServers": {
"querytool": {
"url": "https://querytool.ai/mcp",
"type": "streamable-http",
"headers": {
"Authorization": "Bearer <your_agent_token_secret>"
}
}
}
}
fanout_list_recent.HTTP smoke checks (replace YOUR_TOKEN):
# Expect 401 without bearer
curl -s -o /dev/null -w '%{http_code}\n' -X POST 'https://querytool.ai/mcp' \
-H 'Content-Type: application/json' -d '{}'
# Expect non-401 when bearer is valid (MCP body may still error)
curl -s -o /dev/null -w '%{http_code}\n' -X POST 'https://querytool.ai/mcp' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Origin: http://localhost:5173' -d '{}'