myscrape
A self-contained web-research MCP server that lets local LLM agents search, fetch, and synthesize web content using tools like web_search, web_fetch, and web_research.
README
myscrape
A self-contained, single-codebase web-research MCP server for local LLM agents.
It mimics the spirit of Claude's WebSearch / WebFetch and adds a cooked
web_research tool that runs the whole search → fetch → synthesize loop with a
local LLM inside the box.
📖 Full user guide → docs/USER_GUIDE.md — setup,
running (local/Docker), the tools, configuration, and troubleshooting.
Tools
| Tool | Altitude | LLM inside? |
|---|---|---|
web_search |
raw | no |
web_fetch |
raw | no |
web_research |
cooked | yes |
See specs/SPEC.md for the interface contract, and the design
docs: specs/IMPLEMENTATION_OPTIONS.md,
specs/TECH_STACK.md,
specs/BENCHMARK.md. Decisions and checkpoints are logged
in specs/DEVLOG.md; empirical work in
specs/EXPERIMENTS.md; search-provider options in
specs/PROVIDERS.md.
Tooling
Stable tools only — no type checker; we rely on tests + linting instead.
- uv — env, deps, locking, running
- Ruff — lint + format
- pytest — tests (TDD: red → green → refactor)
Quickstart
uv sync # create venv, install deps
uv run pytest # run the test suite
uv run ruff check . && uv run ruff format --check . # lint + format gate
uv run bench # run the stability benchmark (any time)
Running the MCP server
uv run myscrape # stdio transport — a local MCP client spawns this
web_research needs a local, OpenAI-compatible LLM endpoint (Ollama / llama.cpp /
LM Studio). Configure via MYSCRAPE_* env vars (see src/myscrape/config.py):
export MYSCRAPE_LLM_BASE_URL=http://localhost:11434/v1
export MYSCRAPE_LLM_MODEL=qwen2.5:14b # eval winner on a 12GB GPU (see specs/EXPERIMENTS.md)
web_search and web_fetch need no LLM. The proven stability operating point
(8s + 2s jitter) is the default; override with MYSCRAPE_REQUEST_MIN_INTERVAL.
On a server (Docker)
Uses the host's native Ollama (GPU) — see specs/SERVING.md.
ollama pull qwen2.5:14b # on the host (the eval winner)
docker compose up --build # myscrape on :8000, talks to host Ollama
The container is one process, includes Chromium for dynamic fetch, speaks
streamable-http at http://localhost:8000/mcp, and caps concurrent research
at 2 (the GPU serializes synthesis — see EXPERIMENTS E-007). For a self-contained
Ollama-in-container setup with GPU passthrough: docker compose --profile ollama up.
Use it from a coding session (Claude Code)
A project .mcp.json points at the running server:
claude mcp add --transport http myscrape http://localhost:8000/mcp # or use .mcp.json
Then web_search, web_fetch, and web_research are available as tools in the
session. (For local use without Docker, run uv run myscrape over stdio instead.)
Tools
| Tool | Input (key fields) | Returns |
|---|---|---|
web_search |
query, max_results |
ranked results (no fetch, no LLM) |
web_fetch |
url, max_tokens |
clean markdown + metadata (no LLM) |
web_research |
question, effort, return_mode |
cited answer + sources + coverage |
Status
Implemented end-to-end: all three tools, the full search → fetch → rank →
synthesize loop, behind a stability gate that passes (ratelimit_rate == 0,
extraction 100% over fetchable pages). Static and dynamic (Playwright) fetch
work — web_fetch auto-escalates to a headless browser for JS-rendered pages
(live-validated on quotes.toscrape.com/js). See specs/DEVLOG.md
for the full build log and specs/EXPERIMENTS.md for the
empirical work.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。