AtlasForge-WebProxy
Enables AI agents to search the web, fetch pages, and download images through a self-hosted proxy with Brave search, caching, and SSRF protection.
README
AtlasForge-WebProxy
Self-hosted web search/fetch proxy plus stdio MCP server for AI agents. It provides Brave-backed search, page fetch with retries and browser-like user-agent fallback, old.reddit hardening, response caching, paper PDF fetch, image search/download, and SSRF guards.
Quickstart
./install.sh
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/atlasforge-webproxy"
$EDITOR "${XDG_CONFIG_HOME:-$HOME/.config}/atlasforge-webproxy/config.env"
chmod 600 "${XDG_CONFIG_HOME:-$HOME/.config}/atlasforge-webproxy/config.env"
Set BRAVE_API_KEY in that file. Get a key at
https://brave.com/search/api/. Without a key, the proxy falls back to DDG/DDGS
where available.
Run directly:
.venv/bin/python -m atlasforge_webproxy.service --host 127.0.0.1 --port 8765
curl http://127.0.0.1:8765/health
Wire MCP into a client:
{
"mcpServers": {
"atlasforge-web-proxy": {
"command": "/path/to/AtlasForge-WebProxy/.venv/bin/python",
"args": ["-m", "atlasforge_webproxy.mcp_server"],
"env": {}
}
}
}
Config
Priority: environment variables, then
${XDG_CONFIG_HOME:-~/.config}/atlasforge-webproxy/config.env, then defaults.
For migration, ~/.config/atlasforge/web-proxy.env is read only when the new
file does not exist, and a deprecation warning is logged.
| Setting | Default | Purpose |
|---|---|---|
BRAVE_API_KEY |
empty | Brave Search API key. |
ATLASFORGE_WEB_PROXY_HOST |
127.0.0.1 |
Flask bind host. |
ATLASFORGE_WEB_PROXY_PORT |
8765 |
Flask bind port. |
ATLASFORGE_WEB_PROXY_URL |
host/port above | MCP/client target URL. |
ATLASFORGE_WEB_PROXY_CACHE_DIR |
XDG cache | Search/fetch/image cache. |
ATLASFORGE_WEB_PROXY_PAPER_DIR |
XDG cache | Paper PDF/text artifacts. |
ATLASFORGE_WEB_PROXY_PROVIDER |
auto |
auto, brave, duckduckgo, or ddgs. |
ATLASFORGE_WEB_PROXY_TIMEOUT_S |
20 |
Service outbound timeout. |
ATLASFORGE_WEB_PROXY_CLIENT_TIMEOUT_S |
30 |
Python client timeout. |
ATLASFORGE_WEB_PROXY_MCP_TIMEOUT_S |
30 |
MCP-to-service timeout. |
ATLASFORGE_WEB_PROXY_SEARCH_TTL_S |
1800 |
Search cache TTL. |
ATLASFORGE_WEB_PROXY_FETCH_TTL_S |
86400 |
Page fetch cache TTL. |
ATLASFORGE_WEB_PROXY_PAPER_TTL_S |
604800 |
Paper fetch cache TTL. |
ATLASFORGE_WEB_PROXY_RETRY_ATTEMPTS |
3 |
Fetch retry attempts. |
ATLASFORGE_WEB_PROXY_RETRY_BASE_S |
0.5 |
Retry base delay. |
ATLASFORGE_WEB_PROXY_RETRY_AFTER_MAX_S |
60 |
Max Retry-After delay. |
ATLASFORGE_WEB_PROXY_RETRY_JITTER |
1 |
Enable retry jitter. |
ATLASFORGE_WEB_PROXY_UA_RETRY_ON_403 |
1 |
Retry 403 with browser UA. |
ATLASFORGE_WEB_PROXY_REDDIT_OLD_FALLBACK |
1 |
Try old.reddit fallback. |
WEB_PROXY_ALLOW_DNS_FAIL |
0 |
Legacy DNS fail-open mode. |
ATLASFORGE_WEB_PROXY_ENABLE_INVESTIGATION_CAPTURE |
0 |
Optional AtlasForge JSON mirroring. |
ATLASFORGE_WEB_PROXY_ENABLE_ATLASFORGE_TOOLS |
0 |
Optional AtlasForge stage tools. |
See config.env.example for the full list, including user-agent and size-limit
knobs.
systemd
./install.sh creates .venv, installs the package, copies
config.env.example if no config exists, installs
~/.config/systemd/user/atlasforge-webproxy.service, and runs
systemctl --user daemon-reload.
It does not enable or start the service unless passed --start:
./install.sh --start
systemctl --user status atlasforge-webproxy.service
Tests
.venv/bin/python -m pip install -e ".[test]"
.venv/bin/python -m pytest
Use an unused non-8765 port for live smoke tests:
ATLASFORGE_WEB_PROXY_PORT=8799 .venv/bin/python -m atlasforge_webproxy.service --port 8799
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。