Webfetch.io
Fetch any URL as markdown, text, HTML or selector-built JSON; search Google, Bing, Yahoo and Brave.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"webfetch": {
"url": "https://webfetch.io/mcp"
}
}
}远程端点
https://webfetch.io/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢fetch_page(url, render_js, return_format)
Fetch one URL and return the page as markdown, plain text or raw HTML. Use it to read a page whose URL you have; use extract_data instead for specific fields as JSON, and search_web when you have no URL yet. JavaScript is rendered by default (5 credits); render_js false is a plain HTTP fetch (1 credit). The result is a summary line (host, credits charged) and then the content, cut at 100,000 characters, which the summary notes. A failed fetch returns isError with the HTTP status and reason, and costs nothing.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Absolute http:// or https:// URL of the page, e.g. https://example.com/pricing."
},
"render_js": {
"type": "boolean",
"default": true,
"description": "true runs the page in a browser, so content drawn by JavaScript is included (5 credits). false is a plain HTTP fetch (1 credit): faster, and enough for static pages such as articles and docs."
},
"return_format": {
"type": "string",
"enum": [
"markdown",
"text",
"html"
],
"default": "markdown",
"description": "markdown keeps headings, links and lists and drops the page chrome, which suits reading. text is the same content without markup. html is the document unchanged, for attributes or markup you need to inspect."
}
},
"required": [
"url"
],
"additionalProperties": false
}🟢extract_data(url, extract_rules, render_js)
Fetch one URL and return JSON built from CSS or XPath selectors: named fields instead of a whole page. Use it when you know which elements hold the data (prices, titles, links, tables); read the page with fetch_page first if you do not. It costs what fetch_page costs. A rule that matches nothing returns null (item) or [] (list) and the call still succeeds, so check for nulls. An invalid rule or a failed fetch returns isError with the reason, and costs nothing. Output is cut at 100,000 characters.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Absolute http:// or https:// URL of the page, e.g. https://example.com/pricing."
},
"extract_rules": {
"type": "object",
"minProperties": 1,
"description": "Map each output name to a selector; the result has the same keys. A string is shorthand for the text of the first match, and \"a@href\" takes an attribute. An object may set selector, selector_type (auto, css, xpath), type (item or list), and output (text, html, @attr, table_json, table_array, or a nested object of further rules). Example: {\"title\": \"h1\", \"links\": {\"selector\": \"a\", \"type\": \"list\", \"output\": \"@href\"}}"
},
"render_js": {
"type": "boolean",
"default": true,
"description": "true runs the page in a browser before extracting (5 credits). false parses the raw HTML (1 credit) and misses elements drawn by JavaScript."
}
},
"required": [
"url",
"extract_rules"
],
"additionalProperties": false
}🟢search_web(query, engine, country_code, page, search_type, ...)
Search Google, Bing, Yahoo and Brave (one engine per call) and return one results page as JSON: organic_results (position, title, url, description, date), top_ads, bottom_ads, related_searches, questions and number_of_results. Use it to find pages when you have no URL; then read a result with fetch_page or pull fields from it with extract_data. 10 credits per page. Needs search access on the key: paid plans turn on the robots.txt opt-out in the key portal, and free accounts request it there. Without it, or on any failure, the call returns isError with the reason, and costs nothing.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "The search terms as typed in the search box. Quotes and operators such as site: work as they do on the engine."
},
"engine": {
"type": "string",
"enum": [
"google",
"bing",
"yahoo",
"brave"
],
"default": "google",
"description": "Which engine to search. Each has its own index, so results differ."
},
"country_code": {
"type": "string",
"default": "us",
"pattern": "^[A-Za-z]{2}$",
"description": "Two-letter ISO 3166-1 code of the country to search from, e.g. us, gb, de. A country that cannot be served returns isError and costs nothing; omit it to search from the US."
},
"page": {
"type": "integer",
"default": 1,
"minimum": 1,
"maximum": 50,
"description": "Results page, 1 to 50. Each page is a separate call, charged separately."
},
"search_type": {
"type": "string",
"enum": [
"classic",
"ads"
],
"default": "classic",
"description": "classic returns the whole results page; ads returns only the ads, at the same price."
},
"light_request": {
"type": "boolean",
"default": true,
"description": "false loads the page in a browser, which on Bing includes the ads, at 15 credits instead of 10."
}
},
"required": [
"query"
],
"additionalProperties": false
}社区
证据