Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Fully local MCP server and CLI for web research
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL, SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL, SOURCEWEAVE_SEARCH_CACHE_REDIS_URL你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"sourceweave-web-search": {
"command": "uvx",
"args": [
"sourceweave-web-search"
],
"env": {
"SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CACHE_REDIS_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add sourceweave-web-search --env SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL=your-value --env SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL=your-value --env SOURCEWEAVE_SEARCH_CACHE_REDIS_URL=your-value -- uvx sourceweave-web-search运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"sourceweave-web-search": {
"command": "uvx",
"args": [
"sourceweave-web-search"
],
"env": {
"SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CACHE_REDIS_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"sourceweave-web-search": {
"type": "stdio",
"command": "uvx",
"args": [
"sourceweave-web-search"
],
"env": {
"SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL": "your-value",
"SOURCEWEAVE_SEARCH_CACHE_REDIS_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL envSOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL envSOURCEWEAVE_SEARCH_CACHE_REDIS_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 MRNAQA 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.5.0)于7个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Search-first MCP server and CLI for web research.
[!NOTE]
sourceweave-search-mcpis the default local entrypoint. When explicitSOURCEWEAVE_SEARCH_*endpoint variables are absent, it discovers or starts the local Docker-backed stack automatically. If you already run the services yourself, set explicit endpoints and it will use them instead.
Overview • Getting started • Managed local runtime • MCP client setup • CLI • Container deployments • OpenWebUI • Runtime configuration • Development
SourceWeave Web Search gives MCP clients a compact three-tool contract for web research:
search_web(query, domains?, urls?, effort?) discovers sources and returns compact results with stable page_id handles.read_pages(page_ids, focus?) reads stored pages by page_id.read_urls(urls, focus?) reads direct URLs without searching first.It combines:
| Component | Role |
|---|---|
| SearXNG | Search discovery |
| Crawl4AI | Clean HTML extraction |
| Redis or Valkey | Persisted page cache and page_id store |
| MarkItDown | Document conversion for PDFs and other supported files |
3.12+SOURCEWEAVE_SEARCH_* endpoints only if you want hosted or self-managed servicesRun the server from the published package:
uvx --from sourceweave-web-search sourceweave-search-mcp
Or start the MCP server over HTTP:
uvx --from sourceweave-web-search sourceweave-search-mcp \
--transport streamable-http \ --host 127.0.0.1 \ --port 8000
When no endpoint env vars are set, sourceweave-search-mcp:
| Mode | What happens |
|---|---|
| Managed stack found | Join the existing SourceWeave-managed stack for the current runtime state directory |
| Healthy external stack found | Reuse the canonical local ports 19080, 19235, and 16379 without ownership |
| No reusable stack | Start and supervise a Docker-backed stack on canonical or free local ports |
Managed state lives under ~/.sourceweave-local/managed-runtime. Multiple MCP processes on the same machine share one managed stack per state directory.
[!IMPORTANT]
Managed runtime removes containers only when the last active SourceWeave-managed process exits. Named volumes are preserved, so cache data survives restarts. If the original owning process dies, a later process can recover the same stack from Docker project identity and persisted runtime state.
If you already run SearXNG, Crawl4AI, and Redis or Valkey yourself, or want to point at hosted services, set explicit endpoints and the MCP entrypoint will bypass managed Docker startup:
SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL="http://127.0.0.1:19080/search?format=json&q=<query>" \
SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL="http://127.0.0.1:19235" \ SOURCEWEAVE_SEARCH_CACHE_REDIS_URL="redis://127.0.0.1:16379/2" \ uvx --from sourceweave-web-search sourceweave-search-mcp
sourceweave-search runs the tool directly. Use it when the supporting services are already available or when you provide explicit endpoints. It does not start Docker.
sourceweave-search --query "python programming" --read-first-pages 2
sourceweave-search --read-url "https://packaging.python.org/en/latest/"
[!TIP]
The direct CLI also accepts
--searxng-base-url,--crawl4ai-base-url, and--cache-redis-urloverrides.
Example opencode.json / opencode.jsonc / ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "sourceweave": { "type": "local", "command": [ "uvx", "--from", "sourceweave-web-search", "sourceweave-search-mcp" ], "enabled": true, "timeout": 300000 } } }
For a shared HTTP endpoint instead:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "sourceweave": { "type": "remote", "url": "http://127.0.0.1:18000/mcp", "enabled": true, "timeout": 300000 } } }
Example .vscode/mcp.json:
{
"servers": { "sourceweave": { "type": "stdio", "command": "uvx", "args": [ "--from", "sourceweave-web-search", "sourceweave-search-mcp" ] } } }
For a shared HTTP endpoint instead:
{
"servers": { "sourceweave": { "type": "http", "url": "http://127.0.0.1:18000/mcp" } } }
Example .mcp.json:
{
"mcpServers": { "sourceweave": { "type": "stdio", "command": "uvx", "args": [ "--from", "sourceweave-web-search", "sourceweave-search-mcp" ] } } }
For a project-scoped shared config, place the same block in .mcp.json at the repo root.
The direct CLI is useful once the supporting services are already reachable. It gives you the same search-first workflow without the MCP wrapper.
sourceweave-search --query "react useEffect cleanup example" --read-first-page
sourceweave-search --query "HTTP overview" --domain developer.mozilla.org --read-first-page sourceweave-search --read-url "https://packaging.python.org/en/latest/"
The managed local runtime is for host-side uvx or uv run launches. Containerized deployments still use explicit endpoint wiring.
ghcr.io/mrnaqa/sourceweave-web-search-mcpdocker compose up -d --build mcpExample container run:
docker run --rm -p 8000:8000 \
-e SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL="http://host.docker.internal:19080/search?format=json&q= " \ -e SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL="http://host.docker.internal:19235" \ -e SOURCEWEAVE_SEARCH_CACHE_REDIS_URL="redis://host.docker.internal:16379/2" \ ghcr.io/mrnaqa/sourceweave-web-search-mcp:latest
This repo also ships a generated standalone OpenWebUI tool file at artifacts/sourceweave_web_search.py.
From a repo checkout, verify it is in sync with the canonical implementation:
uv run sourceweave-build-openwebui --check
Paste that artifact into OpenWebUI when you want the standalone tool-file deployment path. The generated file rewrites the default endpoints to the repo-local compose service names so it matches the container deployment path out of the box.
Optional environment variables:
| Variable | Purpose |
|---|---|
SOURCEWEAVE_SEARCH_SEARXNG_BASE_URL | SearXNG URL template. Must contain . |
SOURCEWEAVE_SEARCH_CRAWL4AI_BASE_URL | Crawl4AI base URL. |
SOURCEWEAVE_SEARCH_CACHE_REDIS_URL | Redis or Valkey URL used for caching. |
FASTMCP_HOST | Host for sse or streamable-http transport. |
FASTMCP_PORT | Port for sse or streamable-http transport. |
If the endpoint variables are unset, sourceweave-search-mcp defaults to managed local runtime.
Default endpoint values:
http://127.0.0.1:19080/search?format=json&q= http://127.0.0.1:19235redis://127.0.0.1:16379/2Default preferred host ports for managed startup:
1908019235163798000 when run directly with uvx; 18000 at /mcp when using the repo's mcp compose servicegit clone https://github.com/MRNAQA/sourceweave-web-search.git
cd sourceweave-web-search uv sync --locked --group dev uv run sourceweave-search-mcp
Useful checks:
uv run sourceweave-build-openwebui --check
uv run sourceweave-search-mcp --help uv run pytest tests/test_config.py tests/test_packaging.py tests/test_tool.py tests/test_managed_runtime.py -m "not integration"