Agentql

Web search and scraping

Model Context Protocol server that integrates AgentQL's data extraction capabilities.

Your AI app calls the Agentql MCP server, which does the web search and scraping work and sends the result back to the chat.

About Agentql

Agentql is a community MCP server from tinyfish-io, filed in our directory under web search and scraping. Model Context Protocol server that integrates AgentQL's data extraction capabilities.

Agentql runs on your own machine: your AI app starts it with the command npx -y agentql-mcp and talks to it over standard input and output.

The README for Agentql lists one tool, which your AI app can call once the server is connected.

At a glance

Publisher
tinyfish-io (community)
Runs
Locally on your machine
Install from
Node.js package on npm: agentql-mcp
Written in
TypeScript
License
MIT
GitHub stars
185

Tools Agentql gives your AI app

  • extract-web-dataExtract structured data from a given 'url', using 'prompt' as a description of actual data and its fields to extract.

Tool names as the Agentql README lists them. Your AI app shows the live list once Agentql is connected.

How to set up Agentql

  1. Install Node.js on the machine that runs your AI app, because Agentql starts with npx and downloads its package on first run.
  2. Check the Agentql README for keys or settings; the registry lists none that Agentql requires.
  3. Add Agentql to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Agentql tools to confirm the connection.
  5. Run one read-only task with Agentql first, such as a call to extract-web-data, before you allow anything that writes or sends.

Agentql compared with similar servers

  • Comet by hanzili has fewer GitHub stars than Agentql (183 against 185); both are community servers, and both run locally.
  • SerpApi by serpapi has more GitHub stars than Agentql (190 against 185); SerpApi is official while Agentql is a community server, and SerpApi runs as a remote server and Agentql runs on your own machine. The SerpApi README lists 10 tools to Agentql's 1.
  • Tomcp by Ami3466 has fewer GitHub stars than Agentql (175 against 185); both are community servers, and both run locally.

Before you connect Agentql

  • Give Agentql its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Agentql tool call until you trust what it does with them.
  • Treat text that Agentql fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Agentql on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Agentql

How marketing and sales teams put Agentql to work, by company size. Pick the size closest to yours and start Agentql on one use case.

Small business

  • A founder can use Agentql to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Agentql what competitors launched this month and get the pages, not just a summary.
  • Agentql runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Agentql to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Agentql to research accounts from public pages and add one specific line to each first email.
  • Start with extract-web-data, the tool Agentql lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise research and competitive intel teams can schedule Agentql to monitor many sources, with results stored and cited for review.
  • Large orgs can route Agentql through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Agentql is a community server, so have security review the code and pin a version before Agentql touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Agentql README

From tinyfish-io/agentql-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

AgentQL MCP Server

This is a Model Context Protocol (MCP) server that integrates AgentQL's data extraction capabilities.

Features

Tools
  • extract-web-data - extract structured data from a given 'url', using 'prompt' as a description of actual data and its fields to extract.

Installation

To use AgentQL MCP Server to extract data from web pages, you need to install it via npm, get an API key from our Dev Portal, and configure it in your favorite app that supports MCP.

Install the package
npm install -g agentql-mcp
Configure Claude
  • Open Claude Desktop Settings via ⌘+, (don't confuse with Claude Account Settings)
  • Go to Developer sidebar section
  • Click Edit Config and open claude_desktop_config.json file
  • Add agentql server inside mcpServers dictionary in the config file
  • Restart the app
{
  "mcpServers": {
    "agentql": {
      "command": "npx",
      "args": ["-y", "agentql-mcp"],
      "env": {
        "AGENTQL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Read more about MCP configuration in Claude modelcontextprotocol.io/quickstart/user.

Configure VS Code

For one-click installation, click one of the install buttons below:

Manual Installation

Click the install buttons at the top of this section for the quickest installation method. For manual installation, follow these steps:

Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "apiKey",
        "description": "AgentQL API Key",
        "password": true
      }
    ],
    "servers": {
      "agentql": {
        "command": "npx",
        "args": ["-y", "agentql-mcp"],
        "env": {
          "AGENTQL_API_KEY": "${input:apiKey}"
        }
      }
    }
  }
}

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

{
  "inputs": [
    {
      "type": "promptString",
      "id": "apiKey",
      "description": "AgentQL API Key",
      "password": true
    }
  ],
  "servers": {
    "agentql": {
      "command": "npx",
      "args": ["-y", "agentql-mcp"],
      "env": {
        "AGENTQL_API_KEY": "${input:apiKey}"
      }
    }
  }
}
Configure Cursor
  • Open Cursor Settings
  • Go to MCP > MCP Servers
  • Click + Add new MCP Server
  • Enter the following:
    • Name: "agentql" (or your preferred name)
    • Type: "command"
    • Command: env AGENTQL_API_KEY=YOUR_API_KEY npx -y agentql-mcp

Read more about MCP configuration in Cursor docs.cursor.com/context/model-context-protocol.

Configure Windsurf
  • Open Windsurf: MCP Configuration Panel
  • Click Add custom server+
  • Alternatively you can open ~/.codeium/windsurf/mcp_config.json directly
  • Add agentql server inside mcpServers dictionary in the config file
{
  "mcpServers": {
    "agentql": {
      "command": "npx",
      "args": ["-y", "agentql-mcp"],
      "env": {
        "AGENTQL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Read more about MCP configuration in Windsurf docs.codeium.com/windsurf/mcp.

Validate MCP integration

Give your agent a task that will require extracting data from the web. For example:

Extract the list of videos from the page https://www.youtube.com/results?search_query=agentql, every video should have a title, an author name, a number of views and a url to the video. Make sure to exclude ads items. Format this as a markdown table.

[!TIP] In case your agent complains that it can't open urls or load content from the web instead of using AgentQL, try adding "use tools" or "use agentql tool" hint.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

If you want to try out development version, you can use the following config instead of the default one:

{
  "mcpServers": {
    "agentql": {
      "command": "/path/to/agentql-mcp/dist/index.js",
      "env": {
        "AGENTQL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

[!NOTE] Don't forget to remove the default AgentQL MCP server config to not confuse Claude with two similar servers.

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Questions about Agentql

What is the Agentql MCP server?

Model Context Protocol server that integrates AgentQL's data extraction capabilities. Agentql is maintained by tinyfish-io on GitHub at tinyfish-io/agentql-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Agentql MCP server?

Add Agentql to your AI app's MCP config with the command npx -y agentql-mcp. In Claude Code, run claude mcp add --transport stdio agentql -- npx -y agentql-mcp. To run Agentql this way you need Node.js installed.

Does Agentql need an API key?

The registry lists no required keys for Agentql. Check the Agentql README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Agentql an official MCP server?

No. Agentql is a community server maintained by tinyfish-io. Community servers can be excellent; read the code and the open issues before you give Agentql access to company data.

What license is Agentql under?

Agentql is released under the MIT license, according to its GitHub repository. The license covers the code of Agentql; the service it connects to has its own terms.