Connect Agentql to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the create browser session tool in Agentql
Use the query web page tool in Agentql
Use the query document tool in Agentql
Use the list session usage tool in Agentql
Use the get usage tool in Agentql
Supported Tools
create_browser_session
Create Browser Session
Create a remote browser session that provides a Chrome DevTools Protocol (CDP) URL for connecting to a browser instance on AgentQL's infrastructure. Use this for browser automation tasks that require full browser control.
Returns a CDP URL for connecting via Playwright, Puppeteer, or other CDP-compatible tools, along with a session ID and base URL.
query_web_page
Query Web Page
Extract structured data from a web page as JSON. Provide a public URL or raw HTML content along with an AgentQL query or natural language prompt to define the data you want.
Use a **structured AgentQL query** (e.g. `{ products[] { name price } }`) for precise control over output shape, or a **natural language prompt** for AgentQL to infer the structure automatically.
Supports configurable page load wait times, scrolling, screenshot capture, extraction mode, browser profiles, and proxy settings.
query_document
Query Document
Extract structured data from a PDF or image file (JPEG, JPG, PNG) using an AgentQL query or natural language prompt. Upload the file as base64-encoded content along with a query that defines the data to extract.
Useful for parsing invoices, receipts, forms, tables, or any structured information from documents and images.
list_session_usage
List Session Usage
List remote browser session usage, including session IDs, status, duration, and proxy traffic. Filter by session, sub-user, and timestamps, and page through results.
get_usage
Get Usage
Retrieve current API key usage statistics and subscription information. Shows the number of API calls made in the current billing cycle and lifetime, as well as subscription limits.
Enable Agentql in Metorial. In your Metorial portal, enable the Agentql MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Agentql tools.
Enable Agentql in Metorial. In your Metorial portal, enable the Agentql MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Agentql tools.
Enable Agentql in Metorial. In your Metorial portal, enable the Agentql MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Agentql tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Agentql in Metorial. In your Metorial portal, enable the Agentql MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Agentql tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Agentql in Metorial. In your Metorial portal, enable the Agentql MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Agentql tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Agentql through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Agentql and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Agentql tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Extract structured data from web pages, PDFs, and images using natural language or structured queries. Query any public URL or raw HTML to retrieve JSON-formatted data, with support for dynamic content, authenticated pages, and cross-site compatibility. Upload PDF and image files to extract structured information. Create remote browser sessions with CDP access for browser automation, including proxy configuration and stealth mode for bot detection avoidance.
Frequently asked questions
Common questions about connecting Agentql to AI agents with Metorial.
How many tools does the Agentql MCP server have?
The Agentql MCP server exposes 5 tools, including Create Browser Session, Query Web Page, Query Document. Each one is governed and traced through Metorial.
Does the Agentql MCP server support triggers?
Agentql exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Agentql MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Agentql MCP server through the same Metorial URL.
How do I give only some teams access to Agentql?
Use role-based access control to decide which teams, users, and agents can use Agentql and which of its tools they can call.
Can I self-host the Agentql MCP server?
Yes. Metorial is open source, so you can run the Agentql MCP server yourself or use the hosted gateway.
Connect Agentql to production AI agents
See how Metorial gives your team governed access to Agentql, with tracing and security controls built in.