Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AIFire in da houseCheck it out free

agentql-mcp

MCP.Pizza Chef: tinyfish-io

AgentQL MCP Server is a Model Context Protocol server that integrates AgentQL's advanced data extraction capabilities. It allows developers to extract structured data from web pages by specifying URLs and detailed prompts describing the data fields to capture. This server can be installed via npm and configured easily in MCP-compatible applications like Claude Desktop. By leveraging AgentQL MCP Server, users can automate and streamline the process of web data extraction within AI workflows, enhancing real-time context feeding and interaction with web content.

Use This MCP server To

Extract structured data from web pages using URLs and prompts Integrate web data extraction into AI workflows via MCP Automate data scraping tasks within MCP-enabled applications Enhance LLM context with real-time web data extraction Configure AgentQL MCP server in Claude Desktop for data extraction

README

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 here.

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 here.

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 here.

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.

agentql-mcp FAQ

How do I install the AgentQL MCP server?
Install it globally via npm using 'npm install -g agentql-mcp'.
How do I obtain an API key for AgentQL MCP server?
Get an API key from the AgentQL Developer Portal at https://dev.agentql.com.
How do I configure the AgentQL MCP server in Claude Desktop?
Edit the 'claude_desktop_config.json' file in the Developer settings to add the 'agentql' server under 'mcpServers', then restart the app.
What tool does AgentQL MCP server provide?
It provides the 'extract-web-data' tool to extract structured data from URLs using descriptive prompts.
Can AgentQL MCP server be used with other MCP-compatible apps?
Yes, it can be integrated with any app supporting MCP protocol, not just Claude Desktop.
Is the AgentQL MCP server limited to web data extraction?
Yes, its primary function is to extract structured data from web pages based on user prompts.
Does AgentQL MCP server support real-time data extraction?
Yes, it enables real-time extraction of structured data to feed into LLMs for enhanced context.
Which LLM providers can benefit from AgentQL MCP server?
It works well with OpenAI, Anthropic Claude, and Google Gemini models via MCP integration.