AgentQL MCP Server
AgentQL MCP サーバー
これは、 AgentQLのデータ抽出機能を統合するモデル コンテキスト プロトコル (MCP) サーバーです。
特徴
ツール
extract-web-data- 実際のデータと抽出するフィールドの説明として「プロンプト」を使用して、指定された「url」から構造化データを抽出します。
Related MCP server: @hauntapi/mcp-server
インストール
AgentQL MCP サーバーを使用して Web ページからデータを抽出するには、npm 経由でインストールし、 Dev Portalから API キーを取得し、MCP をサポートするお気に入りのアプリで構成する必要があります。
パッケージをインストールする
npm install -g agentql-mcpクロードを設定する
⌘+,で Claude デスクトップ設定を開きます (Claude アカウント設定と混同しないでください)開発者サイドバーセクションに移動
**「設定の編集」**をクリックし、
claude_desktop_config.jsonファイルを開きます。設定ファイルの
mcpServers辞書内にagentqlサーバーを追加します。アプリを再起動してください
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": ["-y", "agentql-mcp"],
"env": {
"AGENTQL_API_KEY": "YOUR_API_KEY"
}
}
}
}Claude での MCP 構成の詳細については、ここを参照してください。
カーソルの設定
カーソル設定を開く
MCP > MCPサーバーへ移動
+ 新しいMCPサーバーを追加をクリックします
以下を入力してください:
名前: 「agentql」(またはお好みの名前)
タイプ:「コマンド」
コマンド:
env AGENTQL_API_KEY=YOUR_API_KEY npx -y agentql-mcp
Cursor での MCP 構成の詳細については、ここを参照してください。
Windsurfの設定
Open Windsurf: MCP 構成パネル
カスタムサーバーの追加+をクリック
あるいは、
~/.codeium/windsurf/mcp_config.jsonを直接開くこともできます。設定ファイルの
mcpServers辞書内にagentqlサーバーを追加します。
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": ["-y", "agentql-mcp"],
"env": {
"AGENTQL_API_KEY": "YOUR_API_KEY"
}
}
}
}Windsurf での MCP 構成の詳細については、ここを参照してください。
MCP統合の検証
エージェントに、Webからデータを抽出するタスクを割り当てます。例:
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] AgentQL を使用する代わりに、エージェントが URL を開いたり Web からコンテンツを読み込んだりできないというエラーを表示する場合は、「ツールを使用する」または「agentql ツールを使用する」ヒントを追加してみてください。
発達
依存関係をインストールします:
npm installサーバーを構築します。
npm run build自動リビルドを使用した開発の場合:
npm run watch開発バージョンを試してみたい場合は、デフォルトの設定の代わりに次の設定を使用できます。
{
"mcpServers": {
"agentql": {
"command": "/path/to/agentql-mcp/dist/index.js",
"env": {
"AGENTQL_API_KEY": "YOUR_API_KEY"
}
}
}
}[!NOTE] Claude が 2 つの類似したサーバーを混同しないように、デフォルトの AgentQL MCP サーバー構成を忘れずに削除してください。
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
npm run inspectorインスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
Available Tools
1 toolextract-web-dataA
Extracts structured data as JSON from a web page given a URL using a Natural Language description of the data.
Inputs: url (required), prompt (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no risk of confusion between tools, so disambiguation is perfect.
The single tool name 'extract-web-data' follows a clear verb_noun pattern, and consistency is trivially maintained.
A single tool is too few for a web scraping server, which typically requires tools for different actions (e.g., listing, configuring) or handling multiple extraction strategies.
The server only provides extraction via natural language, missing common features like pagination, multiple output formats, or error handling, leaving significant gaps for agents.
Maintenance
Related MCP Connectors
Turn the web into structured, reliable, actionable enterprise data for AI Agents
Web scraping, search, crawling, structured extraction and research for AI agents.
Live web data for AI agents: structured JSON from 248 websites through one API key.
Web data API for your AI agents: one call, JSON back in seconds, the same fields every time.
Related MCP Servers
- AlicenseCqualityDmaintenanceA server that provides web scraping and intelligent content searching capabilities using the Firecrawl API, enabling AI agents to extract structured data from websites and perform content searches.53MIT
- AlicenseAqualityBmaintenanceWeb extraction MCP server for AI agents. Extract structured data from any URL with built-in Cloudflare bypass, JavaScript rendering, and intelligent parsing. Returns clean markdown or JSON.5794 npm2MIT
- AlicenseAqualityFmaintenanceStructured web extraction for AI agents. Pass any URL and a prompt, get clean JSON data back. Native MCP server with 100 free requests/month.3794 npmMIT
- AlicenseNot gradedqualityCmaintenanceSecure, agent-driven web data extraction MCP server that extracts structured data from websites using APIs, RSS, and HTML without requiring a browser.Apache 2.0
Appeared in Searches
- A server for unstructured data or information
- Understanding Web Scrubbing Techniques
- Creating a Due Diligence Report for Rizhao Urban Investment Using Audit Reports, Annual Reports, and Rating Reports
- General information about web search
- Searching for Rizhao Urban Investment's Annual Report and Rating Report for a Due Diligence Report