WebFetch.MCP
Enables local LLMs to search the web and fetch clean content from URLs without API keys, using SearxNG and Mozilla Readability.
README
🌐 WebFetch.MCP v0.1.8
Live Web Access for Your Local AI — Tunable Search & Clean Content Extraction
🚨 The Problem
Local LLMs can't browse the web. Out of the box, LM Studio — and most MCP setups — leave your model stuck in 2023 or earlier. No live data. No current events. Paste a URL into chat and all you get back is:
"I can't access the web." A few third-party MCP servers exist, but they’re API-locked, incomplete, or a pain to run. That means LM Studio users are flying blind — unable to fetch or search live content reliably.
✅ The Solution — WebFetch.MCP
WebFetch.MCP is a drop-in, self-hosted MCP server that brings your local AI:
- 🕒 Fresh, Real-Time Data — Go beyond your model’s training cutoff.
- 🌐 Reliable URL Fetch — Paste a link, get the clean content.
- 🎛 Full Search Control — Choose engines, boost sources, filter by type/date/language.
- 🔓 API-Free Freedom — No API keys, quotas, or tracking.
- 🧠 AI-Ready Output — Structured, clean, distraction-free text your LLM can actually use.
Privacy Note: Search requests and web fetches are visible to your ISP and target sites. Use a VPN for enhanced privacy.
🏆 Why It’s Different
| Feature | WebFetch.MCP | mrkrsl-web-search | mcp-server-fetch-python | Crawl4AI |
|---|---|---|---|---|
| Live Web Search | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |
| URL Content Fetch | ✅ Yes | ⚠️ Limited | ✅ Yes | ✅ Yes |
| Search Tunability | ✅ Full Control | ❌ API-limited | ❌ Basic | ⚠️ Limited |
| 70+ Search Engines | ✅ Yes | ❌ No | ❌ No | ⚠️ Few |
| Scientific/Technical Focus | ✅ Configurable | ❌ No | ❌ No | ❌ No |
| No API Keys | ✅ Yes | ❌ Required | ❌ Required | ✅ Basic only |
| Content Quality | ✅ Mozilla Readability | ⚠️ Basic | ⚠️ Basic | ✅ Advanced |
| JS Execution | ✅ Yes (JSDOM) | ❌ No | ✅ Yes | ✅ Yes |
| Setup Simplicity | ✅ Easy | ⚠️ Medium | ❌ Complex | ❌ Very Complex |
| Cost | ✅ Free | 💰 API costs | 💰 API costs | ✅ Free |
✨ Core Features
🎯 Precision Search
- 70+ configurable engines — Google Scholar, arXiv, PubMed, IEEE, GitHub, Stack Overflow, weather.gov, and more.
- Weighted source control — Boost authoritative and academic sources.
- Data type filters — Papers, docs, code, or news only.
- Freshness filters — Recent publications, latest docs, breaking news.
🔬 Scientific & Technical Focus
- Academic: arXiv, PubMed, IEEE Xplore, ACM Digital Library.
- Technical: MDN, Stack Overflow, GitHub, official docs.
- Government: weather.gov, data.gov, NASA, NOAA.
📄 Clean Content Extraction
- Mozilla Readability — industry-standard parsing.
- JavaScript execution — handles SPAs & dynamic pages.
- Removes ads, menus, widgets.
- Optimized handling for research papers & technical docs.
⚙️ Complete Control
- Enable only trusted engines.
- Language & region targeting.
- Domain/site restrictions.
- Custom weighting per source.
📋 Prerequisites
⚡ Quick Start
1️⃣ Install SearxNG (5 min)
Docker Compose (Recommended)
git clone https://github.com/searxng/searxng-docker.git
cd searxng-docker
sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml
docker compose up -d
Test SearxNG
curl "http://localhost:8080/search?q=test&format=json"
2️⃣ Install WebFetch.MCP
git clone https://github.com/manull/webfetch-mcp.git
cd webfetch-mcp
npm install
node server.mjs
3️⃣ Connect to LM Studio
In LM Studio → Settings → Developer → MCP Servers:
{
"mcpServers": {
"webfetch": {
"command": "node",
"args": ["/full/path/to/webfetch-mcp/server.mjs"],
"env": {
"SEARXNG_BASE": "http://localhost:8080",
"DEBUG": "false"
}
}
}
}
Restart LM Studio — web_search and web_fetch tools will now be available.
4️⃣ Test It
In LM Studio:
🔍 Search for recent AI research on transformer architectures
📄 Fetch content from https://example.com/article
🔧 Configuration
| Variable | Default | Description |
|---|---|---|
| SEARXNG_BASE | http://localhost:8080 | SearxNG instance URL |
| DEBUG | false | Debug logging |
| DETAILED_LOG | true | Detailed log output |
⏱️ Smart Rate Limiting
WebFetch.MCP uses intelligent time-based rate limiting designed for real research workflows:
📊 Rate Limits:
- 12 calls per 5-minute window - Generous limit for research sessions
- 8 calls per 30-second burst - Prevents LLM spam while allowing quick queries
- Automatic reset - No need to restart LM Studio between research sessions
🎯 Why This Works Better:
- ✅ Research-friendly - Supports extended research sessions
- ✅ Anti-spam protection - Prevents runaway LLM tool calling
- ✅ No restarts needed - Limits reset automatically over time
- ✅ Clear feedback - Shows remaining calls and reset times
📈 Example Usage Patterns:
- Quick research: 5-8 rapid calls, then brief pause
- Extended research: 12 calls spread over 5 minutes
- Continuous work: Limits reset as you work, no interruption
📊 Example Usage
Search
🔍 Find Python asyncio docs site:python.org
🔍 Search for recent climate data from government sources
Fetch
📄 Extract content from https://news.example.com/article
📄 Get main text from https://arxiv.org/abs/2305.12345
🧪 Testing
curl "http://localhost:8080/search?format=json&q=test&count=5"
DEBUG=true node server.mjs
🤝 Contributing
We welcome:
- 🐛 Bug reports → Open an issue
- 🔧 Code PRs
- 📖 Documentation improvements
📄 License
MIT — see LICENSE.
🙏 Acknowledgments
- SearxNG — Privacy-focused metasearch engine.
- Mozilla Readability — Clean content extraction.
- LM Studio — Local AI runtime.
- Model Context Protocol — AI tool integration standard.
Built for LM Studio and local LLM users who need real-time, reliable, tunable access to the web.
⭐ Star this repo if you're done with "I can't access the web" from your AI.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
