MCP-webfetch
Provides built-in Cloudflare anti-bot detection and automatic retry when fetching web pages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-webfetchfetch https://en.wikipedia.org/wiki/Main_Page as markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-webfetch
通过 SOCKS5 代理抓取网页内容的 MCP 服务器。基于 opencode 官方 webfetch 实现,添加了代理支持。
功能
通过
127.0.0.1:10808SOCKS5 代理获取网页支持格式:markdown(默认)、text、html
HTML→Markdown 转换(TurndownService)
HTML→Text 提取(htmlparser2)
自动跟进重定向(防循环检测)
Cloudflare 反爬检测 + 自动重试
MIME 类型校验(图片/二进制自动拒绝)
Body 大小限制(5MB)
Related MCP server: crawl-mcp-server
安装
# 1. 克隆或复制本目录
cd D:\workplace\MCP-webfetch
# 2. 安装依赖(htmlparser2 + turndown)
npm install配置 opencode
在 opencode.json 中添加:
{
"mcp": {
"webfetch-proxy": {
"type": "local",
"command": ["node", "D:\\workplace\\MCP-webfetch\\webfetch-proxy.js"],
"enabled": true
}
},
"permission": {
"webfetch": "deny"
}
}项目级: 当前目录下的
opencode.json全局级:
~/.config/opencode/opencode.json
禁止内置 webfetch(可选)
在 permission 中设置 webfetch: "deny",让 AI 只能使用本 MCP 工具。
{
"permission": {
"webfetch": "deny"
}
}配置代理地址
编辑 webfetch-proxy.js 顶部:
const PROXY_HOST = "127.0.0.1";
const PROXY_PORT = 10808;重启 opencode
每次修改配置后需要重启 opencode 生效。
测试
node -e "
const { spawn } = require('child_process');
const proc = spawn('node', ['D:\\\\workplace\\\\MCP-webfetch\\\\webfetch-proxy.js']);
proc.stdin.write(JSON.stringify({jsonrpc:'2.0',id:1,method:'initialize',params:{protocolVersion:'2024-11-05',capabilities:{},clientInfo:{name:'t',version:'1'}}})+'\n');
setTimeout(() => {
proc.stdin.write(JSON.stringify({jsonrpc:'2.0',id:2,method:'tools/call',params:{name:'webfetch',arguments:{url:'https://httpbin.org/get',format:'text',timeout:5}}})+'\n');
}, 500);
setTimeout(() => { proc.kill(); process.exit(); }, 5000);
proc.stdout.on('data', (d) => { console.log(d.toString()); });
"依赖
effect— 函数式运行时(HttpClient、Stream、Effect)htmlparser2— HTML 解析(文本提取)socks-proxy-agent— SOCKS5 代理客户端turndown— HTML→Markdown 转换
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated48,61441MIT
- Flicense-quality-maintenanceAn MCP server for web content extraction that converts HTML pages into clean, LLM-optimized Markdown using Mozilla's Readability. It supports batch processing, intelligent multi-page crawling, and configurable caching while respecting robots.txt standards.Last updated132
- AlicenseAqualityDmaintenanceAn MCP server that fetches web pages and extracts clean, AI-friendly Markdown content using Mozilla Readability. It provides secure web access for LLMs with built-in SSRF protection and automated content cleaning for improved context retrieval and summarization.Last updated1259MIT
- AlicenseAqualityDmaintenanceMCP server for fetching web content with browser fingerprint camouflage, converting HTML to clean Markdown to bypass bot detection.Last updated11MIT
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Firecrawl MCP — wraps the Firecrawl API (firecrawl.dev) for web
Scrapingdog MCP — wraps Scrapingdog (scrapingdog.com), a proxy-based web
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/keybodhi/MCP-webfetch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server