AgentScrape
Pay-per-call web scraping for AI agents via x402 on Base USDC. Six tools, no signup.
我該用這個嗎
品質與安全性
發現項目(2)
- LOW在 extract_structured_data 中
- LOW在 screenshot_webpage 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"agent-scrape": {
"url": "https://agent-scrape.healingsunhaven.workers.dev/mcp"
}
}
}遠端端點
https://agent-scrape.healingsunhaven.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(6)
⚪scrape_webpage(url, format, wait_for, wait_ms, viewport)
Scrape any webpage and return content as markdown, html, text, or json. Pay-per-call web scraping for AI agents.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to scrape (http or https)"
},
"format": {
"description": "Output format (default: markdown)",
"type": "string",
"enum": [
"markdown",
"html",
"text",
"json"
]
},
"wait_for": {
"description": "CSS selector to wait for before extracting",
"type": "string"
},
"wait_ms": {
"description": "Milliseconds to wait after page load (max 10000)",
"type": "number"
},
"viewport": {
"description": "Viewport size (default: desktop)",
"type": "string",
"enum": [
"desktop",
"mobile",
"tablet"
]
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢extract_structured_data(url, prompt, schema, wait_for, wait_ms)
AI-powered structured data extraction from any webpage using natural language. Returns JSON matching your prompt or schema.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to extract from"
},
"prompt": {
"type": "string",
"description": "Natural language description of what to extract"
},
"schema": {
"description": "Optional JSON schema for the response",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"wait_for": {
"type": "string"
},
"wait_ms": {
"type": "number"
}
},
"required": [
"url",
"prompt"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪screenshot_webpage(url, full_page, viewport, wait_for, wait_ms)
Capture a PNG screenshot of any webpage. Supports desktop, mobile, and tablet viewports, plus full-page mode.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"full_page": {
"description": "Capture full scrollable page (default: false)",
"type": "boolean"
},
"viewport": {
"type": "string",
"enum": [
"desktop",
"mobile",
"tablet"
]
},
"wait_for": {
"type": "string"
},
"wait_ms": {
"type": "number"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢extract_metadata(url)
Extract page metadata: title, description, Open Graph, Twitter cards, JSON-LD, canonical URL, and all meta tags.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡create_browser_session(ttl_seconds)
Create a stateful browser session that persists cookies and localStorage across multiple scrape/workflow calls.
輸入結構描述
{
"type": "object",
"properties": {
"ttl_seconds": {
"description": "Session TTL (default 1800, max 7200)",
"type": "number"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪run_workflow(steps, session_id, persist_session, viewport)
Execute a multi-step browser workflow atomically: navigate, click, type, wait, scroll, screenshot, extract, evaluate. Up to 20 steps.
輸入結構描述
{
"type": "object",
"properties": {
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"navigate",
"click",
"type",
"wait_for",
"wait_ms",
"scroll",
"screenshot",
"extract",
"extract_ai",
"evaluate"
]
},
"url": {
"type": "string"
},
"selector": {
"type": "string"
},
"text": {
"type": "string"
},
"ms": {
"type": "number"
},
"full_page": {
"type": "boolean"
},
"prompt": {
"type": "string"
},
"script": {
"type": "string"
},
"format": {
"type": "string",
"enum": [
"markdown",
"html",
"text"
]
}
},
"required": [
"action"
]
},
"description": "Ordered list of workflow steps to execute"
},
"session_id": {
"type": "string"
},
"persist_session": {
"type": "boolean"
},
"viewport": {
"type": "string",
"enum": [
"desktop",
"mobile",
"tablet"
]
}
},
"required": [
"steps"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據