Swallow-Anything
Probes and automates Android devices via adb, DeepLinks, and device console, and can swallow APK surfaces into deterministic capabilities.
Inspects and swallows Electron ASAR application bundles as a binary target surface.
Probes GraphQL endpoints and crystallizes discovered operations into permanent 0-token capabilities.
Automates macOS apps through osascript JXA/AppleScript, Shortcuts, and accessibility (AX), including crystallizing semantic macros.
Reads and probes SQLite databases as a wire/binary target surface, enabling deterministic crystallized capabilities.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Swallow-Anything v3.0.0 — Apex Overdrive / 新神·吞噬万物
Zero-LLM-Inside Universal Swallower · Watch-Me-Once Causal Compiler · Deep Protocols & Reality IoT · 0-Token 24/7 Reactive Reflex Engine ·
<2.5 KBCode-Mode MCP Bus零内置大模型 · 看一次即永久结晶因果编译器 · 深水协议与现实物联网 · 0-Token 24/7 响应式反射引擎 ·
<2.5 KBCode-Mode MCP 总线
English
Why Swallow-Anything v3.0.0 (Apex Overdrive)?
Most agent tool frameworks fall into two traps:
Tool-schema bloat: Mounting dozens of flat MCP servers dumps
300–700+tool schemas (33K–109K+tokens) into every turn before the model even reads your prompt.LLM-inside-the-box caging: Bundling a mini-LLM inside a scraper/browser framework slows down smart external Agents (
Claude,Codex,Gemini,Cursor,Antigravity) and burns reasoning tokens on every repeated click or polling loop.
Swallow-Anything v3.0.0 (Apex Overdrive) keeps our Zero-LLM-Inside & Zero-Dependency (100% Python 3.11+ stdlib, dependencies = []) foundation while expanding along 4 V3 Overdrive Axes:
Axis 1 — Universal Swallowing Expansion (Watch-Me-Once + Deep Protocols)
swallow record(runtime/shadow_recorder.py) &swallow extract-app(runtime/app_api_extractor.py): Zero-CA in-page spy hook (IN_PAGE_SPY_JS), HAR/mitmdumpsession importer, and macOS AX/JXA recorder that automatically infer multi-step causal dataflow bindings (e.g., CSRF/session token -> chainedPOSTwrite) and compile directly into a live 0-tokencausal-cap/1.0package (RECORD_COMPILED_LIVE). Static APK/DEX & Electron ASAR API extractor compiles embedded app endpoints into live drivers.Deep Protocols Organ (
organs/organ_deep_protocols.py):<0.1 msscheme routing forgrpc://,grpcs://,docker://,postgres://,postgresql://,mysql://,redis://(pure-stdlib RESP TCP client),ssh://,unix://(pure-stdlib HTTP-over-AF_UNIX), andlocalproc://(localhost port & Unix socket discovery) — with zero password leaks into manifests and realcommit_toolwrites.
Axis 2 — Reality IoT & Mass Ingestion
Reality IoT Organ (
organs/organ_reality_iot.py): Zero-config LAN & hardware discovery (iot://discover— pure-stdlib SSDP/UPnP multicast + mDNS/Bonjour + USB/Serial + optional BLE), Home Assistant REST bridge (hass://), pure-stdlib MQTT 3.1.1 binary codec (mqtt://CONNECT/PUBLISH/SUBSCRIBE),onvif://,ble://, andserial://.Concurrent Mass Devourer (
swallow devour/runtime/mass_devourer.py) & Zero-Copy Arsenal Bridge (runtime/arsenal_bridge.py): Bounded multi-threaded batch swallowing formac-apps,phone-apps,docs,github-org,arsenal, and custom target lists with per-target fault isolation.
Axis 3 — 24/7 0-Token Reactive Reflex Engine (
swallow watch)runtime/reactive_watcher.py: Continuous background sensors (poll_diff,fs_watch,webhook,stream) paired with a zero-eval()deterministic JSON predicate evaluator (288,323.0 predicates/sec,0LLM tokens), anti-stormcooldown_sec/dedupe_secguards, live capability/code/webhook actions, and macOSlaunchdplist generation.
Axis 4 — Flagship UX, Ecosystem Interop & Reproducible Benchmarks
Zero-CDN Web Console (
swallow ui/runtime/web_console.py): Single-file, zero-external-CDN localhost dashboard (/,/health,/api/overview,/api/search,/api/watch,/api/bench,/v1/tools).One-Click AI Client Setup (
swallow setup/runtime/client_setup.py): Safe MCP config injector for Claude Desktop, Claude Code, Cursor, Windsurf, Antigravity, and Codex (6clients) — defaults to non-destructive--dry-rundiff preview, creates timestamped.bakbackups on--apply, and preserves all existing servers.Code-Mode MCP V3 (
runtime/code_mode_mcp.py): Constant 4 meta-tools =2,473 Bcompact /2,634 Bfull (54.72xcompression /98.17%token reduction vs 81 flat packages / 366 tools), plus Async Tasks (tasks/create->tasks/get) and OpenAI Tools JSON (GET /v1/tools).Reproducible Offline Benchmark Suite (
swallow bench/runtime/benchmark_suite.py): Independently measures all 5 pillars locally in~636 mswith zero external network calls.
V3 Overdrive Architecture
flowchart LR
Agent["External Smart Agent (Claude / Codex / Gemini / Cursor / Antigravity)"] -->|"MCP 2025-06-18 (4 tools, 2,473B) / Async Tasks / OpenAI /v1/tools / CLI"| Bus["Code-Mode MCP Bus + swallow/umcp CLI + Zero-CDN Web UI"]
Bus --> Axis1["Axis 1: ShadowRecorder (swallow record) + AppApiExtractor + SwallowWorkbench + DeepProtocols (gRPC/Docker/DB/Redis/SSH/Unix/localproc)"]
Bus --> Axis2["Axis 2: RealityIoT (SSDP/mDNS/MQTT 3.1.1/HASS/ONVIF/BLE/Serial) + MassDevourer (swallow devour) + ArsenalBridge"]
Bus --> Axis3["Axis 3: ReactiveWatcher (swallow watch: poll_diff / fs_watch / webhook / stream -> 0-Token Predicates -> Reflex Actions)"]
Bus --> Axis4["Axis 4: ClientSetup (swallow setup) + WebConsole (swallow ui) + BenchmarkSuite (swallow bench)"]
Axis1 -->|"0.0015ms Triage / 1-Call Causal Compile"| IR["Canonical IR cap.manifest.json (causal-cap/1.0)"]
Axis2 -->|"Concurrent Batch / IoT Compile"| IR
IR --> Shell["QuintetRuntimeShell (C1 Coerce · C2 Two-Zone Firewall · C3 Direct-Write / HMAC Financial Gate · C4 Precision Human-Gate · C5 L1 Drift Self-Heal)"]
Shell --> Judge["8-Gate Adversarial Judge (Gate 8 Live Mutation Integrity: 100% fake staged_preview catch rate)"]
Judge -->|"QuadEmitter (4-Way Output)"| Out1["1. JSON CLI (swallow / umcp)"]
Judge -->|"QuadEmitter (4-Way Output)"| Out2["2. MCP 2025-06-18 + /v1/tools"]
Judge -->|"QuadEmitter (4-Way Output)"| Out3["3. Capability Card Projection"]
Judge -->|"QuadEmitter (4-Way Output)"| Out4["4. <2 KB SKILL.md"]Verified swallow bench Telemetry (benchmarks/apex_v3_bench.json)
Every number below is an exact measurement from swallow bench (suite_version: 3.0.0, macOS arm64 / Python 3.12.12, total wall clock 635.6 ms) and live V3 E2E verification (benchmarks/apex_v3_e2e_verification.json):
Benchmark Pillar | Verified Result | Notes / Proof |
Direct Triage Latency |
|
|
Cold Compile / Crystallize | HTTP OpenAPI | Ephemeral local loopback fixtures, full manifest + driver + |
Code-Mode Context Compression |
|
|
Concurrent Batch Devour |
| Live E2E: |
Gate 8 Live Mutation Integrity |
|
|
0-Token Watch Reflex Engine |
|
|
Automated Test & Judge Suite |
|
|
Evidence-Backed Comparison Matrix
All numbers below come directly from verified test runs, benchmarks/apex_v3_bench.json, benchmarks/apex_v3_e2e_verification.json, and isolated benchmark receipts (no speculative estimates):
Dimension | Swallow-Anything v3.0.0 | REA ( | OpenCLI ( | Playwright-MCP ( | CLI-Anything ( |
Runtime Dependencies | 0 (100% Python 3.11+ stdlib; portable kit | Node/TS heavy runtime ( | Node/JS + Chrome MV3 extension ( | Node + headless browser stack | Python CLI generation harness ( |
LLM Inside Runtime | 0 (Zero-LLM-Inside) — never cages external Agents | External MCP caller | 0 (hand-authored JS adapters) | External MCP caller (multi-turn per click) | Compile-time LLM generation, 0-token runtime |
MCP Context Budget | 4 tools = |
| CLI-first (no native Code-Mode MCP bus) | Per-step AX browser tools (official README recommends CLI + | CLI-only (no MCP server or Code-Mode sandbox) |
Target Surfaces | All 10 species ( | Binary & Web static reverse engineering | Web sites ( | Web browser AX DOM | Local desktop software CLIs |
Compile, Devour & Reflex Speed |
|
| Instant pre-built adapter lookup; manual authoring for new sites | Multi-second browser navigation every turn | Offline multi-step generation per app |
24/7 Reactive & UX | 0-Token | CLI / MCP only | CLI + Chrome extension | MCP server | CLI generator |
Write Integrity & Firewall | Two-Zone Firewall (Zone A / Zone B) + Gate 8 Live Mutation Integrity ( | Read-only epistemic ledger | POSIX exit codes + site adapters | Unbounded browser clicks | Real backend CLI invocations |
60-Second Quickstart
1. Install (Zero Dependencies)
pip install git+https://github.com/pjrpjr/swallow-anything.git
# Or from a local clone:
git clone https://github.com/pjrpjr/swallow-anything.git
cd swallow-anything
pip install --no-deps -e .2. Launch the Zero-CDN Web Console & Connect Your AI Clients
# Launch the local real-time dashboard (zero external CDN, loopback-only by default)
swallow ui --port 8765
# Preview safe MCP config diffs across Claude Desktop / Claude Code / Cursor / Windsurf / Antigravity / Codex
swallow setup
# Apply with automatic timestamped .bak backups (preserves existing servers):
swallow setup --apply3. Record, Devour, Watch & Benchmark (0 LLM Tokens)
# Watch-Me-Once: inspect or compile observed HTTP/HAR traffic into a chained 0-token capability
swallow record web --har ./capture.har --cap-id my_recorded_api
# Concurrent batch devour: index local apps, docs, GitHub orgs, or target lists
swallow devour targets "https://petstore.swagger.io/v2/swagger.json" "iot://discover" "localproc://scan"
# 24/7 0-token reactive reflex watcher (poll_diff / fs_watch / webhook / stream)
swallow watch add --json '{"rule_id":"demo_watch","sensor":{"type":"fs_watch","path":"./inbox"},"predicate":{"path":"sha256","changed":true},"action":{"type":"notify_log","message":"file changed"},"cooldown_sec":5}'
swallow watch list
# Run the full offline 5-pillar benchmark suite (~636 ms)
swallow bench4. Connect the <2.5 KB Code-Mode MCP Bus (stdio, Streamable HTTP & OpenAI /v1/tools)
swallow serve-codemode --stdio
# or Streamable HTTP (exposes MCP JSON-RPC + Async Tasks + OpenAI GET /v1/tools):
swallow serve-codemode --http 8765Manual MCP snippet for any client (or run swallow setup --apply):
{
"mcpServers": {
"swallow-anything": {
"command": "swallow",
"args": ["serve-codemode", "--stdio"],
"env": {
"PYTHONDONTWRITEBYTECODE": "1"
}
}
}
}5. Run the Full Verification Suite (74/74 Checks) & Security Scanner
python3 -B -m swallow_anything.security_scan .
python3 -B -m unittest tests/test_cap_ir_and_projector.py -v
python3 -B -m unittest tests/test_apex_v2.py -v
python3 -B -m unittest tests/test_apex_v3.py -v
python3 -B tests/judge_audit_harness.py self-testTwo-Zone Security Architecture & Responsible Use
Swallow-Anything enforces a strict architectural firewall between personal owner automation and public/shared capability publishing:
Zone | Intended Use | PII Policy | Secrets / PAN / CVV | Write Policy | SSRF / LFI / Redlines |
Zone A (Owner-Private) | Your own local machine, accounts, browser tabs, macOS apps, databases, Docker/SSH/gRPC, and local LAN/IoT devices | Owner PII ( | Always scrubbed ( | 1-step | Personal devices, |
Zone B (Public-Safe) | Shared / published read-only capabilities | All PII scrubbed | Always scrubbed | Live mutations hard-blocked ( | Strict DNS/IP anti-SSRF/LFI ( |
Responsible Use Charter:
Zero Root CA MITM: Never installs system root certificates to intercept TLS.
Zero Live Process Injection: Never attaches Frida/LLDB to live applications.
Zero Credential Harvesting: Never reads OS Keychains or browser
Login Datapassword databases; DB/Redis/HASS credentials are read exclusively from runtime env/session and never written into manifests.Zero Anti-Bot / CAPTCHA Bypass: Genuine Cloudflare/Turnstile/reCAPTCHA/2FA challenges escalate cleanly to
HUMAN_GATE_REQUIREDfor human takeover.Gate 8 Live Mutation Integrity: Both static AST analysis and dynamic isolated execution reject deceptive drivers that return fake
staged_previewresponses when real commits are requested (100%verified catch rate).
Related MCP server: foral
简体中文
为什么需要「新神·吞噬万物 v3.0.0(Swallow-Anything Apex Overdrive)」?
现有 Agent 工具生态普遍陷入两大陷阱:
工具 Schema 爆炸:每挂载一批扁平 MCP 服务就往上下文塞入
300–700+个工具定义(每轮白烧33K–109K+tokens),还没开始干活上下文先被挤爆。盒内小模型套娃:在爬虫、录制器或监控框架内部再绑死一个小模型和 API Key,不仅拖慢外部强模型(
Claude、Codex、Gemini、Cursor、Antigravity),还导致每次重复操作和轮询都在白烧推理 Token。
Swallow-Anything v3.0.0(Apex Overdrive / 新神·吞噬万物 3.0) 坚守 Zero-LLM-Inside(零内置大模型) 与 100% 纯 Python 3.11+ 标准库零依赖(dependencies = []),沿 四大终极进化轴 全面跃迁:
轴 1 — 万物吞噬扩疆(看一次即编译 + 深水协议器官):
swallow record(runtime/shadow_recorder.py)与swallow extract-app(runtime/app_api_extractor.py):零 Root CA 页内间谍钩子(IN_PAGE_SPY_JS)、HAR/mitmdump导入与 macOS AX/JXA 录制器,自动推断多步因果依赖链(如 CSRF/会话令牌 -> 串联POST写请求),一键编译为 0-Token 永久causal-cap/1.0能力包(RECORD_COMPILED_LIVE);同步支持静态 APK/DEX 与 Electron ASAR 接口提取结晶。深水协议器官(
organs/organ_deep_protocols.py):<0.1 ms直通路由grpc://、grpcs://、docker://、postgres://、postgresql://、mysql://、redis://(纯标准库 RESP 客户端)、ssh://、unix://(纯标准库AF_UNIXHTTP)与localproc://(本机监听端口与 Unix Socket 发现),凭据零落盘且全员支持真实commit_tool写入。
轴 2 — 现实物联网与并发大吞噬:
现实物联网器官(
organs/organ_reality_iot.py):零配置局域网与硬件扫描(iot://discover:纯标准库 SSDP/UPnP 组播 + mDNS/Bonjour + USB/串口 + 可选 BLE)、Home Assistant REST 桥接(hass://)、纯标准库 MQTT 3.1.1 二进制编解码器(mqtt://CONNECT/PUBLISH/SUBSCRIBE)、onvif://、ble://、serial://。并发大吞噬器(
swallow devour/runtime/mass_devourer.py)与零拷贝武器库桥接(runtime/arsenal_bridge.py):有界多线程批量吞噬mac-apps、phone-apps、docs、github-org、arsenal及自定义目标清单,单靶故障隔离。
轴 3 — 24/7 0-Token 响应式反射引擎(
swallow watch):runtime/reactive_watcher.py:内置poll_diff、fs_watch、webhook、stream四类传感器,搭配零eval()/exec()确定性 JSON 谓词引擎(实测288,323.0次/秒、0LLM Token)、防风暴cooldown_sec/dedupe_sec抑制、实弹能力/代码/Webhook 动作及 macOSlaunchd守护配置导出。
轴 4 — 旗舰体验、全生态互通与可复现硬核基准:
零 CDN 本地实时控制台(
swallow ui/runtime/web_console.py):单文件零外链本地 Web 面板(/、/health、/api/overview、/api/search、/api/watch、/api/bench、/v1/tools)。一键 AI 客户端注入器(
swallow setup/runtime/client_setup.py):覆盖 Claude Desktop、Claude Code、Cursor、Windsurf、Antigravity、Codex 6 大客户端;默认只读--dry-run展示 diff,--apply自动生成带时间戳.bak备份且保留既有配置。Code-Mode MCP V3 总线(
runtime/code_mode_mcp.py):恒定仅暴露4个元工具(2,473 B紧凑 /2,634 B完整),对比 81 个扁平能力包(366 工具 /135,319 B)实现54.72x压缩 /98.17%Token 削减;原生支持 Async Tasks(tasks/create->tasks/get) 与 OpenAI Tools JSON(GET /v1/tools)。离线可复现 5 维基准(
swallow bench/runtime/benchmark_suite.py):全本地回环实测,635.6 ms输出完整五维实证指标。
60 秒上手
# 1. 零依赖安装
pip install git+https://github.com/pjrpjr/swallow-anything.git
# 2. 启动零 CDN 本地控制台 & 预览/一键注入 6 大 AI 客户端 MCP 配置
swallow ui --port 8765
swallow setup # 安全只读预览 diff
swallow setup --apply # 带 .bak 备份一键注入
# 3. 看一次即编译、并发大吞噬、0-Token 反射监控与一键硬核基准
swallow record web --har ./capture.har --cap-id my_recorded_api
swallow devour targets "https://petstore.swagger.io/v2/swagger.json" "iot://discover" "localproc://scan"
swallow watch list
swallow bench
# 4. 启动 <2.5 KB Code-Mode MCP 服务(支持 stdio / Streamable HTTP / OpenAI /v1/tools)
swallow serve-codemode --stdio双区安全防火墙与合规宪章
Zone A(本人私域):保留本人账号业务字段,同时全量脱敏一切凭据、Bearer、JWT、Cookie、数据库/Redis 密码、Luhn 银行卡号与 CVV;非金钱写 1 步
DIRECT_WRITTEN,金钱动作强制 HMAC 双阶确认与预算门禁。Zone B(公开发布区):强制全量 PII + 密钥脱敏、严格 DNS/IP 反 SSRF/LFI、强制
allow_live_mutations=False;宪章红线硬拦截所有deep_protocol、reality_iot、个人桌面宏、手机控制、主世界浏览器 RPC、接码/OTP 与个人登录态向外公开发布(REDLINE_REJECTED)。Gate 8 真实写完整性裁判:静态 AST + 动态隔离双校验,100% 捕获只返回
staged_preview的假写驱动。工程红线:零系统 Root CA MITM、零 Frida/LLDB 活体注入、零 Keychain / Chrome
Login Data凭据窃取、零绕过 CAPTCHA/2FA(真实风控挑战精准上抛HUMAN_GATE_REQUIRED交由人工接管)。
License
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and execute over 1,000 developer skills and tools via MCP and WebMCP, with progressive disclosure for efficient token usage.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access internal systems without public APIs as typed, governed MCP tools, with human-approved writes and fail-closed contract updates.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create isolated Docker runtimes, execute commands, manage workspace files, drive a headed browser, and retrieve artifacts through eight semantic MCP tools, with progressive capability discovery and explicit sandbox lifecycle.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceGives AI agents a single MCP interface to discover, inspect, scope, and execute external capabilities—downstream MCP servers, HTTP APIs, and local tools—resolved on demand from a local index instead of preloaded catalogs. Enforces agent scopes, allow/ask/deny policies, health gates, and schema snapshots at execution time, with local execution traces.-