SuperAPI AI Directory

agentql-mcp

🎖️ 📇 ☁️ - Data extraction with AgentQL.

Open website

About this tool

AgentQL MCP Server is a Model Context Protocol (MCP) server used to integrate AgentQL's data extraction capabilities into applications that support MCP.

Purpose The server is aimed at scenarios that need to extract structured data from web pages. It provides a tool named extract-web-data, which can extract structured data from a web page based on a given url and a prompt used as a description of the data and its fields.

Main capabilities The core capability is web data extraction: through the extract-web-data tool, by passing in a url and prompt, structured data can be extracted according to the data fields described in the prompt.

Usage To use AgentQL MCP Server to extract data from web pages, you first need to install the package via npm, obtain an API key from the AgentQL Developer Portal (Dev Portal), and then complete the configuration in an application that supports MCP.

The official documentation provides configuration methods for the following clients:

Claude: Open Claude Desktop settings with ⌘ + , (be careful not to confuse this with Claude account settings), go to the Developer sidebar area, click Edit Config to open the claude_desktop_config.json file, add the agentql server to the mcpServers dictionary in the configuration file, and then restart the application.

VS Code: You can click the install button for one-click installation; for manual installation, add the corresponding JSON block to VS Code's User Settings (JSON) file (which can be opened by pressing Ctrl + Shift + P and entering Preferences: Open User Settings (JSON)), or optionally add it to the .vscode/mcp.json file in the workspace so that the configuration can be shared with others.

Cursor: Open Cursor settings, go to MCP > MCP Servers, click + Add new MCP Server, fill in Name (such as "agentql" or a custom name), Type as "command", Command as env AGENTQL_API_KEY=YOUR_API_KEY npx -y agentql-mcp.

Windsurf: Open Windsurf's MCP Configuration Panel, click Add custom server+; you can also directly open ~/.codeium/windsurf/mcp_config.json.

Verify the integration You can verify the MCP integration by giving the agent a task that requires extracting data from a web page. If the agent complains that it cannot open the url or load the web page content, instead of using AgentQL, try adding a "use tools" or "use agentql tool" prompt.

Development and debugging Install dependencies, build the server, and support a development mode with automatic rebuilds. If you want to try the development version, you can use the development configuration provided in the documentation instead of the default configuration, and remember to remove the default AgentQL MCP server configuration to avoid confusion caused by two similar servers. Because the MCP server communicates via stdio, debugging can be difficult. The official recommendation is to use MCP Inspector, which is provided as a package script and will give a URL so you can access the debugging tool in a browser.

Limitations The materials do not provide more information about charging, pricing, platform support scope, extraction effectiveness, or performance, and none is currently provided.