MCP Fetch With Proxy
MCP 获取
模型上下文协议服务器,用于使用自定义 http 代理获取 Web 内容。这使得 Claude Desktop(或任何 MCP 客户端)能够获取 Web 内容并进行适当的图像处理。
该存储库从@smithery/mcp-fetch分叉并用库node-fetch-native替换了node-fetch实现。
如果已设置http_proxy和https_proxy环境变量,服务器将默认使用这两个变量通过代理服务器路由请求。您也可以设置MCP_HTTP_PROXY环境变量来使用其他代理服务器。
可用工具
fetch:从互联网检索 URL,并将其内容提取为 Markdown 文件。如果找到图像,则其 URL 将包含在响应中。
图像处理规格:
仅从文章内容中提取图像网址,并将其附加到工具结果中:
{
"params": {
"url": "https://www.example.com/articles/123"
},
"response": {
"content": [
{
"type": "text",
"text": "Contents of https://www.example.com/articles/123:\nHere is the article content\n\nImages found in article:\n- https://www.example.com/1.jpg.webp\n- https://www.example.com/2.jpg.webp\n- https://www.example.com/3.webp"
}
]
}
}Related MCP server: crawl4ai-mcp
快速入门(针对用户)
要将此工具与 Claude Desktop 一起使用,只需将以下内容添加到您的 Claude Desktop 配置( ~/Library/Application Support/Claude/claude_desktop_config.json )中:
{
"tools": {
"fetch": {
"command": "npx",
"args": ["-y", "@kwp-lab/mcp-fetch"],
"env": {
"MCP_HTTP_PROXY": "https://example.com:10890" // Optional, remove if not needed
}
}
}
}这将在需要时自动下载并运行该工具的最新版本。
所需设置
为 Claude 启用辅助功能:
打开系统设置
前往“隐私和安全”>“辅助功能”
点击“+”按钮
从您的应用程序文件夹添加 Claude
为克劳德打开开关
对于开发人员
以下部分适用于那些想要开发或修改该工具的人。
先决条件
Node.js 18+
Claude Desktop(从https://claude.ai/desktop安装)
tsx(通过
npm install -g tsx)
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MCP Fetch:
npx -y @smithery/cli install @kwp-lab/mcp-fetch --client claude手动安装
git clone https://github.com/kwp-lab/mcp-fetch.git
cd mcp-fetch
npm install
npm run build配置
确保 Claude Desktop 已安装并正在运行。
如果还没有安装 tsx,请全局安装:
npm install -g tsx # or pnpm add -g tsx修改位于以下位置的 Claude Desktop 配置:
~/Library/Application Support/Claude/claude_desktop_config.json
您可以通过 Claude Desktop 菜单轻松找到它:
打开 Claude 桌面
在 Mac 菜单栏上单击 Claude
点击“设置”
点击“开发者”
将以下内容添加到您的 MCP 客户端的配置中:
{
"tools": {
"fetch": {
"args": ["tsx", "/path/to/mcp-fetch/index.ts"]
}
}
}Available Tools
1 toolfetchA
Retrieves URLs from the Internet and extracts their content as markdown. If images are found, their URLs will be included in the response.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| maxLength | No | ||
| startIndex | No | ||
| raw | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions content extraction and image URL inclusion, but doesn't cover important aspects like error handling (e.g., invalid URLs, network failures), rate limits, authentication needs, privacy implications, or what happens when maxLength is exceeded. The description is insufficient for a tool that interacts with external resources.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is perfectly concise with two clear sentences that each add value. The first sentence establishes the primary function, and the second adds important behavioral detail about image handling. No wasted words or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 4 parameters, no annotations, and no output schema, the description provides adequate basic functionality explanation but lacks sufficient detail about behavioral characteristics, error conditions, and output format. The absence of sibling tools reduces complexity, but the description should do more to compensate for the lack of structured metadata.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description doesn't mention any parameters directly, but with 0% schema description coverage, it doesn't compensate for the lack of parameter documentation. However, the tool has 4 parameters with clear schema definitions (url, maxLength, startIndex, raw), and the description's focus on the core functionality provides some context. The baseline would be lower if the schema were less informative.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verbs ('retrieves', 'extracts') and resources ('URLs from the Internet', 'content as markdown'), and explicitly mentions handling of images. It distinguishes what the tool does without relying on the generic name 'fetch'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieving and converting web content to markdown, but provides no explicit guidance on when to use this tool versus alternatives (though no sibling tools are listed). It lacks information about prerequisites, error conditions, or performance considerations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- First observed
fetch
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools, making disambiguation perfect. The single tool has a clear and distinct purpose without any competing alternatives.
The single tool name 'fetch' follows a simple verb pattern, and with only one tool, consistency is inherently perfect. There are no other tools to create naming conflicts or inconsistencies.
A single tool is too few for most server purposes, as it limits functionality and flexibility. While it might suffice for basic fetching, it feels thin and under-scoped for a server named 'MCP Fetch With Proxy', which suggests broader capabilities.
The tool surface is severely incomplete; it only provides fetching and markdown extraction without supporting operations like configuration, error handling, or advanced proxy management. This leaves obvious gaps for a server with 'Proxy' in its name, such as setting or testing proxy settings.
Maintenance
Related MCP Connectors
Free remote MCP server for fetching public web pages through a rotating proxy pool.
MCP server for web extraction and rendering via AceDataCloud WebExtrator
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
MCP server for Translation Services
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server for fetching and transforming web content into various formats.48MIT
- FlicenseBqualityDmaintenanceAn MCP Server for Web scraping and Crawling, built using Crawl4AI224-
- FlicenseAqualityDmaintenanceIntelligent HTTP/HTTPS proxy server with MCP integration for automated traffic monitoring, analysis, and browser setup.22-
- AlicenseAqualityCmaintenanceA lightweight MCP server enabling web search and content fetching via TinyFish Free Access API with support for single and burst URL fetch.3MIT