MCP Directory

AgentQL MCP

Official

Turn any web page into structured data — AgentQL's prompt-driven extraction as a single MCP tool.

Verified
stdio (local)
API key
TypeScript

Add to your client

Copy the config for your MCP client and paste it into its config file.

Install / run
npx -y agentql-mcp

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "agentql-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agentql-mcp"
      ],
      "env": {
        "AGENTQL_API_KEY": "<your-agentql-api-key>"
      }
    }
  }
}

Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf

Before you start

  • Node.js with npm (run via `npx -y agentql-mcp` or install globally)
  • An AgentQL API key from the AgentQL Dev Portal (https://dev.agentql.com) set as AGENTQL_API_KEY
  • An MCP-compatible client (Claude Desktop, Cursor, VS Code, or Windsurf)

About AgentQL MCP

AgentQL MCP is a stdio MCP server from TinyFish (the AgentQL team) that turns any web page into structured JSON using a natural-language prompt. Instead of writing CSS selectors or XPath, you give it a URL plus a description of the fields you want, and AgentQL's extraction engine returns matching data.

The server exposes a single tool, extract-web-data, backed by the hosted AgentQL API. This keeps it lightweight and easy to wire into agents that need ad-hoc scraping of product pages, listings, articles, or any structured content without maintaining brittle scrapers.

It is published to npm as agentql-mcp and configured like a standard MCP server in Claude Desktop, Cursor, VS Code, or Windsurf, with an AGENTQL_API_KEY passed via env.

Tools & capabilities (1)

extract-web-data

Extract structured data from a given URL, using a natural-language prompt to describe the fields to extract.

When to use it

  • Use it when you need structured data (price, title, specs, reviews) from a product or listing page without writing selectors.
  • Use it when an agent must read a page and return clean JSON fields described in plain English.
  • Use it when target sites change layout often and you want prompt-driven extraction instead of brittle scrapers.
  • Use it when prototyping a scraping workflow quickly inside Claude, Cursor, or another MCP client.
  • Use it when you want a single, low-maintenance extraction tool rather than a full crawling framework.

Quick setup

  1. 1Sign up at the AgentQL Dev Portal (dev.agentql.com) and create an API key.
  2. 2Add the server to your client config with command `npx` and args `-y agentql-mcp`.
  3. 3Set the `AGENTQL_API_KEY` environment variable in the server's env block.
  4. 4Restart your MCP client so it picks up the new server.
  5. 5Verify by asking the agent to extract fields from a sample URL; add a hint like "use the agentql tool" if it doesn't fire.

Security notes

Needs an AGENTQL_API_KEY that bills against your AgentQL account; store it in env and rotate if leaked. Pages are fetched and parsed through AgentQL's service, and extracted data flows back to your model as untrusted content.

AgentQL MCP FAQ

How do I authenticate?

Create an API key in the AgentQL Dev Portal and pass it as the AGENTQL_API_KEY environment variable in your MCP client's server config.

What tools does it expose?

Just one: `extract-web-data`, which takes a `url` and a `prompt` describing the data and fields to extract, and returns structured data.

The agent isn't calling AgentQL — what do I do?

Add an explicit hint to your prompt such as "use tools" or "use the agentql tool" so the model invokes the extraction tool.

Which clients are supported?

Any stdio MCP client. The README provides config examples for Claude Desktop, VS Code, Cursor, and Windsurf.

Alternatives to AgentQL MCP

Compare all alternatives →

All-in-one web access MCP — Web Unlocker, SERP, Scraper API, and a cloud Scraping Browser.

Verified
stdio (local)
API key
JavaScript
12 tools
Updated 14 days agoRepo

Popular community Playwright + API testing MCP server with codegen, screenshots, and device emulation.

Verified
stdio (local)
No auth
TypeScript
12 tools
Updated 1 month agoRepo

Official Browserbase cloud-browser MCP built on Stagehand — natural-language act/extract/observe.

Verified
stdio (local)
API key
TypeScript
8 tools
Updated 14 days agoRepo