AgentQL MCP server for AI agents

Live

API KEY

WEB DATA EXTRACTION

Developer Tools

AgentQL gives your agent web data extraction in your AgentQL account: extract structured data from a public page or raw HTML with a query or natural-language prompt, and start a remote Chrome browser session you control over the Chrome DevTools Protocol.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
AgentQL
agent · Acme Q3
Run
Extract the product names and prices from this catalog page.
S
agentql_data_query
2310ms
Web data agent
Extracted 18 products with names and prices from the page and returned them as JSON shaped like your query.
Sources: AgentQL query, 1 page
agentql
18 products
18:29
Message Claude...

Tools your web data extraction agent reaches for on AgentQL, scoped per user.

CALL ANY TOOL
2 tools for web data extraction in AgentQL: query a public page or raw HTML for structured data, and start a remote browser session for multi-step browsing.
agentql_browser_session_create
Create browser session
Start a remote Chrome browser session that you control over the Chrome DevTools Protocol, for example with Playwright connect_over_cdp. Returns session_id, cdp_url (to connect to) and base_url (for session resources and streaming). Use this for multi-step browsing. Use Query Web Page Data to extract data from one page.
Parameters
Name
Type
Required
Description
browser_profile
string
Optional
Browser profile: light (default) or stealth, which is harder for sites to detect as automation. Example: stealth. One of: `light`, `stealth`.
browser_ua_preset
string
Optional
Operating system the browser's user agent claims: windows, macos or linux (default). Example: windows. One of: `windows`, `macos`, `linux`.
inactivity_timeout_seconds
integer
Optional
Seconds without activity before the session can end (default 300). Example: 600.
proxy
object
Optional
Proxy for the browser: {"type": "tetra"} for AgentQL's built-in proxy (optional country_code such as us), or {"type": "custom", "url": "http://proxy.example.com:8080"} with optional username and password. Example: {"type": "tetra", "country_code": "us"}.
shutdown_mode
string
Optional
When the session ends: on_disconnect (default, when the CDP client disconnects) or on_inactivity_timeout. Example: on_inactivity_timeout. One of: `on_disconnect`, `on_inactivity_timeout`.
agentql_data_query
Query data
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// AgentQL tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["agentql"], toolNames: [
    "agentql_data_query",
    "agentql_browser_session_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Extract the product names and prices from this page, then start a browser session to check the checkout flow" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["agentql"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Extract the product names and prices from this page, then start a browser session to check the checkout flow" }],
  tools,
});

// Execute the tool call with the user's vaulted AgentQL API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["agentql"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Extract the product names and prices from this page, then start a browser session to check the checkout flow" }],
  tools,
});

// Tool call runs with the user's vaulted AgentQL API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["agentql"] }, pageSize: 100,
});

const agent = new Agent({
  name: "web_data_agent",
  model: "gemini-2.5-pro",
  instruction: "AgentQL tools scoped to this user",
  tools,
});

await agent.run("Extract the product names and prices from this page, then start a browser session to check the checkout flow");
Try these prompts
Copy any prompt into your agent. Each maps directly to a AgentQL tool. Click to copy, paste into your agent, done.
Extract data
Copy the prompt
Copied
Extract the product names and prices from this page as JSON.
Copy the prompt
Copied
Pull the job titles and locations from this careers page.
Copy the prompt
Copied
Extract the headline and author from this HTML snippet.
Ask in plain language
Copy the prompt
Copied
Using a prompt, list the pricing plans on this page.
Copy the prompt
Copied
Get every article title and date on this blog index.
Copy the prompt
Copied
Return the contact details shown on this page.
Browser sessions
Copy the prompt
Copied
Start a remote browser session I can control with Playwright.
Copy the prompt
Copied
Give me the CDP URL for a new browser session.
Copy the prompt
Copied
Start a browser session so I can log in and click through checkout.
SEE HOW AUTH WORKS
Each user connects their own AgentQL API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
AgentQL
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
AgentQL
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
AgentQL
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
AgentQL
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared key for AgentQL looks fine in a demo. In production every page query looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
AgentQL today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access AgentQL as the user or through a shared key?
As the user. Each user connects their own AgentQL API key once, and Scalekit sends it with every call. Audit logs attribute every query and browser session to that user, not a shared service account.
Where is the AgentQL API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in AgentQL?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example agentql_data_query without agentql_browser_session_create, which starts a remote browser session. None of the 2 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes AgentQL access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Should the agent use a query or a prompt?
agentql_data_query takes either an AgentQL query or a natural-language prompt, and either a url or raw html. It returns data shaped like the query, plus a request id in the metadata.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""agentql"": {
""url"": ""https://mcp.scalekit.com/agentql"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.agentql]
url = ""https://mcp.scalekit.com/agentql""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""agentql"": {
""url"": ""https://mcp.scalekit.com/agentql"",
""type"": ""http""
}
}
}