Atlas Web Compiler & Scraper
com.atlas-compilerv1.0.3更新於 Oct 10, 2026
Deterministic Zero-LLM Web Compiler, Scraper, Crawler, and Site Mapper for AI Agents.
概覽
讓助理透過 Atlas 的確定性零 LLM 管線,將網站編譯、擷取、映射與爬取為乾淨的 Markdown。
- 功能
- Atlas 提供多種工具:將網頁編譯為結構化 Markdown 或語意分節、擷取單一頁面的文字/連結/Markdown、映射網域的 URL 與網站地圖、平行批次編譯最多 20 個 URL,以及依深度與路徑篩選進行有界爬取。它也透過 atlas:// 資源提供完整編譯結果、個別章節與爬取清單。輸出包含目錄產生、token 預算與截斷提示,以保護上下文視窗。
- 適用情境
- 當助理需要可靠、可重複地擷取網頁內容用於文件、研究或網站分析,且不希望出現 LLM 產生的摘要時適用。適合多頁文件收集、網站拓撲探索,或對確定性輸出有要求的批次擷取。
- 執行需求
- 需要 Atlas 工作區 API 金鑰(atlas_...),透過 ATLAS_API_KEY 環境變數提供,或由 init 精靈儲存到 ~/.atlas/credentials.json。本機使用需 Node.js 以 npx 執行 npm 套件;遠端使用需連線至託管的 streamable HTTP 端點並攜帶 Bearer 權杖。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Atlas Web Compiler & Scraper,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"atlas": {
"type": "http",
"url": "https://api.atlas-compiler.com/mcp"
}
}
}README
@atlascompiler/mcp
The official Model Context Protocol (MCP) server for Atlas.
Connects AI coding assistants, agents, and LLMs (Cursor, Claude Desktop, Windsurf, ChatGPT, MCP Inspector) directly to Atlas's zero-LLM web compilation pipeline. Provides deterministic, clean markdown extraction, site topology discovery, batch compilation, and bounded crawling without LLM hallucinations or context bloat.
Features
- 0-LLM Deterministic Compilation: Content is parsed and structured purely through the Atlas web compiler engine—no hallucinated summaries, no injected noise, and no missing data.
- Context-Window Protection: Automatic Table of Contents (TOC), section splitting, token budgeting, and explicit truncation banners protect LLM context limits.
- Modern Protocol Standard: Implements the
2026-07-28protocol era with native prompt caching hints (cacheHints: { ttlMs, cacheScope }) and asynchronous task tracking viaio.modelcontextprotocol/tasks. - Dual Transports:
- Stdio CLI Bridge: Run locally with
npx @atlascompiler/mcpor configure directly into desktop IDEs. - Edge Streamable HTTP: Native Cloudflare Worker endpoint mounted at
POST /mcpfor remote clients and web agents.
- Stdio CLI Bridge: Run locally with
- Enterprise-Grade Security:
- Rejects CLI credential flags (
--api-key,-k) with exit code 1 to eliminate secret exposure inps auxand process inspection. - Strict tenant isolation (
WHERE workspace_id = ?1 AND id = ?2) on allatlas://resources. - Hostile
Originblocking prevents browser-based cross-origin drive-by attacks. - All outbound network requests are delegated to
atlas-egressfor zero-trust SSRF protection.
- Rejects CLI credential flags (
Quick Start
1. Interactive Setup Wizard (Recommended)
Run the 1-click interactive setup wizard to validate your API key and automatically configure your desktop editors (Claude Desktop, Cursor, VS Code, Windsurf):
The wizard:
- Prompts for your Atlas API key (
atlas_...). - Stores it securely in
~/.atlas/credentials.json(POSIX0600permissions). - Detects installed editors and merges the Atlas MCP server definition non-destructively without hardcoding sensitive tokens into editor configuration files.
- Distinguishes standard clients (
mcpServers) from VS Code workspace format (servers). - Optionally installs the canonical Atlas Agent Skill for local or global agent discovery.
2. Run Stdio Server Directly
Once configured via init, you can run the MCP server with zero flags or environment variables:
3. CI/CD & Headless Environments
In automated pipelines, containerized environments, or ephemeral workers, supply credentials via the ATLAS_API_KEY environment variable:
Security Note: Passing API keys via CLI flags (
--api-keyor-k) is strictly prohibited and blocked by the CLI to avoid process table inspection leaks. Always useinitor theATLAS_API_KEYenvironment variable.
CLI Commands
Agent Skill Installation
Atlas publishes an official Agent Skill for AI coding agents (Claude Code, Cursor, Antigravity, Windsurf) providing progressive disclosure playbooks for web compilation, scraping, mapping, crawling, and batch extraction.
Option 1: Via @atlascompiler/mcp CLI (Fastest)
Option 2: Via Skills Ecosystem CLI (npx skills)
Option 3: Direct Download / Curl
Client Setup Configurations
Because @atlascompiler/mcp resolves credentials directly from ~/.atlas/credentials.json, your editor configuration files never need hardcoded API keys!
Cursor IDE
Add the server to your Cursor MCP settings (~/.cursor/mcp.json for global, or .cursor/mcp.json in your repository for project scope):
VS Code
Add the server to your project's .vscode/mcp.json:
Note: VS Code expects the root key
"servers", whereas Cursor, Claude Desktop, and Windsurf use"mcpServers". Theatlas-mcp initwizard automatically applies the correct format for each editor target.
Claude Desktop
Add the server to your Claude Desktop configuration:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Windsurf / Codeium
Add the server to ~/.codeium/windsurf/mcp_config.json:
Remote / Hosted Streamable HTTP (POST /mcp)
For remote agents or the official MCP Inspector:
- Server URL:
https://api.atlas-compiler.com/mcp - Transport: Streamable HTTP
- HTTP Headers:
Authorization: Bearer atlas_YOUR_API_KEY_HEREContent-Type: application/jsonAccept: application/json
- OAuth Discovery: Supports RFC 8414 protected resource discovery at
GET /.well-known/oauth-protected-resource.
Available MCP Tools
1. atlas_compile
Compile any web page into a structured, high-density markdown document optimized for LLM reasoning.
Example Agent Invocation:
"Compile the Stripe payment intents documentation at
https://docs.stripe.com/api/payment_intentsand show me the API parameters."
2. atlas_scrape
Fast, lightweight single-page extraction when deep compilation isn't required.
Example Agent Invocation:
"Scrape the main text and links from
https://news.ycombinator.com."
3. atlas_map
Discover site topology, sitemaps, and reachable URLs on a target domain without downloading page bodies.
Example Agent Invocation:
"Map the documentation pages on
https://docs.github.comso we know what guides are available."
4. atlas_batch_compile
Compile multiple pages in parallel (up to 20 URLs) with per-document success/failure aggregation.
Example Agent Invocation:
"Compile these 3 release note pages simultaneously:
['https://site.com/v1', 'https://site.com/v2', 'https://site.com/v3']."
5. atlas_crawl
Bounded crawl of a website starting from a seed URL with link discovery, depth limits, and path filtering.
Example Agent Invocation:
"Crawl up to 10 pages in
/docs/starting fromhttps://example.com/docs/welcome."
Available MCP Resources (atlas://)
The server exposes deterministic resource URIs that allow AI agents to retrieve full document contents on demand without polluting tool call logs:
All resource reads enforce workspace tenant isolation (WHERE workspace_id = ?1 AND id = ?2). Cross-tenant access fails closed with ATLAS_RESOURCE_NOT_FOUND to eliminate data leakage.
Programmatic Usage
You can also embed and customize @atlascompiler/mcp inside your own Node.js or TypeScript applications:
Providing Custom Executors (Testing / Stubs)
Environment Variables
Development & Testing
License
MIT © Atlas Compiler
來源:mcp/README.md,提交 2950bfc
工具
0版本歷史
1- v1.0.3最新Oct 10, 2026
