AgentQL MCP Server

AgentQL MCP Server

By tinyfish-io GitHub

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

agent web
Overview

What is AgentQL MCP Server?

AgentQL MCP Server is a Model Context Protocol (MCP) server that integrates AgentQL's data extraction capabilities, allowing users to extract structured data from web pages.

How to use AgentQL MCP Server?

To use the AgentQL MCP Server, install the package via npm, configure it with your preferred application (like Claude, Cursor, or Windsurf), and provide the necessary API key for data extraction.

Key features of AgentQL MCP Server?

  • Extract structured data from web pages using customizable prompts.
  • Integration with various applications like Claude, Cursor, and Windsurf.
  • Easy installation and configuration process.

Use cases of AgentQL MCP Server?

  1. Extracting data from e-commerce websites for price comparison.
  2. Gathering information from social media platforms for analytics.
  3. Automating data collection for research purposes.

FAQ from AgentQL MCP Server?

  • What is the purpose of the AgentQL MCP Server?

It is designed to facilitate data extraction from web pages using the Model Context Protocol.

  • Is there a cost associated with using AgentQL MCP Server?

The server is open-source and free to use, but you may need an API key for certain functionalities.

  • Can I integrate AgentQL MCP Server with other tools?

Yes, it can be integrated with various tools like Claude, Cursor, and Windsurf.

Content

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.

Tools

extract-web-data

Extracts structured data as JSON from a web page given a URL using a Natural Language description of the data.

🤖 The Semantic Engine for Model Context Protocol(MCP) Clients and AI Agents 🔥

agent semantic
View Details

Send Nano currency from AI agents/LLMs

agent crypto
View Details
Website
Website by FunnyWolf

Adversary simulation and Red teaming platform with AI

Model Context Protocol (MCP) server that provides weather information from Malaysia Government's Open API

agent weather
View Details
NSAF MCP Server
NSAF MCP Server by ariunbolor

The Neuro-Symbolic Autonomy Framework integrates neural, symbolic, and autonomous learning methods into a single, continuously evolving AI agent-building system. This prototype demonstrates the SCMA component, which enables AI agents to self-design new AI agents using Generative Architecture Models.

A documentation AI Agent built with LangGraph, MCP Docs, and Chainlit, designed to help users create different projects using natural language.

agent docker
View Details
WhatsApp Agent
WhatsApp Agent by aasherkamal216

A WhatsApp agent that uses WhatsApp MCP server to send messages and perform other actions.

agent mcp
View Details