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 / 新神·吞噬万物
Zero-LLM-Inside Universal Swallowing Workbench · 1-Call 0-Token Crystallizer ·
<2.5 KBCode-Mode MCP Bus零内置大模型 · 无枷锁吞噬工作台 · 一键 0-Token 永久结晶器 ·
<2.5 KBCode-Mode MCP 总线
English
Why Swallow-Anything?
Most agent tool frameworks fall into one of two traps:
Tool-schema bloat: Mounting dozens of servers dumps
200–700+tool schemas (50K–109K+tokens) into every turn before the model even reads your prompt.LLM-inside-the-box caging: Wrapping an internal mini-LLM (with bundled API keys and brittle prompt loops) inside a scraper/browser framework slows down smart external Agents (
Claude,Codex,Gemini,Cursor,Antigravity) and repeats expensive reasoning on every single click.
Swallow-Anything v2.0.0 takes the opposite stance — Zero-LLM-Inside:
Zero bundled LLMs, zero API keys, zero pip dependencies: 100% pure Python 3.11+ standard library (
dependencies = [], portable SSH/container kit is156.72 KBacross12files). Your smart external Agent brings the brain; Swallow-Anything provides razor-sharp physical instruments and deterministic compilation.Unshackled Swallowing Workbench (
SwallowWorkbench): Inspect and probe live surfaces across Web (CDP / HAR / WebMCP / MAIN-world JS RPC), macOS (osascriptJXA & AppleScript /shortcuts/agent-desktopAX), Android (adb/ DeepLinks / device console), and Binary/Wire protocols (OpenAPI,GraphQL,Protobuf,Parquet,SQLite,ASAR,Mach-O,APK).1-Call, 0-Token Crystallizer (
Crystallizer): Explore once with your Agent, then crystallize the discovered API, MAIN-world RPC, macOS/Android semantic macro, or cross-surface workflow into a permanentcausal-cap/1.0capability package. Every future call runs in 1 deterministic step at 0 LLM tokens (realPOST/PUTDIRECT_WRITTENfor non-monetary owner writes; HMAC two-phasestage -> commitfor financial spend).4-Way Output Emitter (
QuadEmitter): Every crystallized or swallowed capability automatically emits:Local JSON CLI (
swallow <cap_id> <tool>/umcp <cap_id> <tool>)MCP
2025-06-18Server (stdio& Streamable HTTP)Capability Card & Hand Projection (Store-compatible JSON contract)
Concise
<2 KBSKILL.md(progressive disclosure for any Agent)
Constant
<2.5 KBCode-Mode MCP Bus (runtime/code_mode_mcp.py): Exposes exactly 4 meta-tools (search_capabilities,execute_workflow,workbench,crystallize) — verified at2,426 Bcompact /2,626 Bfull (< 4,096 Bhard budget) regardless of whether you mount 5 or 500 capabilities. Agents compose multi-capability parallel pipelines in a bounded Python sandbox (umcp.parallel,umcp.call,umcp.read) inside a single MCP round-trip.
Architecture
flowchart LR
Agent["External Smart Agent (Claude / Codex / Gemini / Cursor / Antigravity)"] -->|"MCP 2025-06-18 (4 tools, 2,426B) or JSON CLI"| Bus["Code-Mode MCP Bus & umcp/swallow CLI"]
Bus --> WB["SwallowWorkbench (Zone A Physical Probe: CDP / HAR / JXA / AX / ADB / Wire)"]
Bus --> CZ["Crystallizer (from_traffic / from_main_world_rpc / from_semantic_macro / from_workflow)"]
Bus --> Triage["<0.1ms Triage + 5 Core Organs + Heavy Arsenal"]
WB -->|"Observed Traffic / Macros"| CZ
Triage --> IR["Canonical IR cap.manifest.json (causal-cap/1.0)"]
CZ -->|"1-Call Compile"| IR
IR --> Shell["QuintetRuntimeShell (C1 Coerce/Disambiguate · 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 (incl. Gate 8 Live Mutation Integrity — rejects fake staged_preview stubs)"]
Judge -->|"4-Way Emit"| Out1["1. JSON CLI (swallow / umcp)"]
Judge -->|"4-Way Emit"| Out2["2. MCP 2025-06-18 (stdio / HTTP)"]
Judge -->|"4-Way Emit"| Out3["3. Capability Card Projection"]
Judge -->|"4-Way Emit"| Out4["4. <2 KB SKILL.md"]Evidence-Backed Comparison Matrix
All numbers below come directly from verified test runs, isolated benchmarks, and end-to-end execution receipts (no speculative estimates):
Dimension | Swallow-Anything v2.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 & Audit Speed |
|
| Instant pre-built adapter lookup; manual authoring for new sites | Multi-second browser navigation every turn | Offline multi-step generation per app |
Write Integrity & Firewall | Two-Zone Firewall (Zone A / Zone B) + Gate 8 Live Mutation Integrity (statically & dynamically rejects fake | Read-only epistemic ledger ( | POSIX exit codes + site adapters | Unbounded browser clicks | Real backend CLI invocations |
Verified Test Suite |
| Verified via isolated RE benchmark | Integrated as a weapon inside | Referenced for AX tree patterns | Verified & swallowed directly in gauntlet |
60-Second Quickstart
1. Install (Zero Dependencies)
git clone https://github.com/pjrpjr/swallow-anything.git
cd swallow-anything
pip install -e .2. Probe Your Local Workbench (0 LLM Tokens)
# Discover all available local instruments (CDP, HAR, JXA, Shortcuts, AX, ADB, Wire tools)
swallow workbench inventory --fast
# Parse a HAR traffic capture into clean, secret-stripped API endpoint templates
swallow workbench web_traffic_capture --har-path ./capture.har3. Crystallize a Live API into a Permanent 0-Token Capability
swallow crystallize from_traffic demo_posts --json '{
"base_url": "https://jsonplaceholder.typicode.com",
"endpoints": [
{"method": "GET", "url": "https://jsonplaceholder.typicode.com/posts/1", "tool_name": "get_post", "description": "Fetch post 1"},
{"method": "POST", "url": "https://jsonplaceholder.typicode.com/posts", "tool_name": "create_post", "description": "Create a post", "body_sample": {"title": "hello", "body": "world", "userId": 1}}
]
}'
# Invoke immediately via JSON CLI (1-step direct write, 0 LLM tokens)
swallow demo_posts get_post
swallow demo_posts create_post --title "crystallized" --body "zero tokens"
# Or compose parallel multi-capability pipelines in bounded Code Mode
swallow code "res = umcp.parallel([('demo_posts', 'get_post', {})]); result = {'count': len(res), 'ok': res[0]['ok']}"4. Connect the <2.5 KB Code-Mode MCP Bus to Any Agent
Start the MCP 2025-06-18 server over stdio or Streamable HTTP:
swallow serve-codemode --stdio
# or:
swallow serve-codemode --http 8765Drop this into Claude Desktop / Claude Code / Cursor / Antigravity / Codex MCP config:
{
"mcpServers": {
"swallow-anything": {
"command": "swallow",
"args": ["serve-codemode", "--stdio"],
"env": {
"PYTHONDONTWRITEBYTECODE": "1"
}
}
}
}5. Run the Full Verification Suite & 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 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, and personal devices | Owner PII ( | Always scrubbed ( | 1-step | Personal devices & local tools allowed strictly for owner |
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.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.
Related MCP server: foral
简体中文
为什么需要「新神·吞噬万物(Swallow-Anything)」?
现有 Agent 工具生态普遍陷入两大陷阱:
工具 Schema 爆炸:每挂载一批 MCP 服务就往上下文塞入
200–700+个工具定义(瞬烧50K–109K+tokens),还没开始干活上下文先被挤爆。盒内小模型套娃:在爬虫或自动化框架内部再绑死一个小模型和 API Key,不仅拖慢外部强模型(
Claude、Codex、Gemini、Cursor、Antigravity),还导致每次重复点击都在白烧推理 Token。
Swallow-Anything v2.0.0(新神·吞噬万物) 坚持 Zero-LLM-Inside(零内置大模型) 哲学:
零内置大模型、零 API Key、零第三方依赖:100% 纯 Python 3.11+ 标准库(
dependencies = [],SSH/Docker 便携包仅156.72 KB/12个文件)。外部强 Agent 负责思考与探索,Swallow-Anything 负责锋利的物理探针与确定性编译。无枷锁吞噬工作台(
SwallowWorkbench):直接统一调度 Web(Chrome CDP / HAR 流量采集 / WebMCP 检测 / 主世界 JS RPC)、macOS(osascriptJXA & AppleScript /shortcuts/agent-desktopAX)、Android(adb/ DeepLink / 设备控制)及二进制协议(OpenAPI / GraphQL / Protobuf / Parquet / SQLite / ASAR / Mach-O / APK)。一键 0-Token 永久结晶器(
Crystallizer):外部 Agent 探索一次,即可将真实流量(from_traffic)、主世界 RPC(from_main_world_rpc)、桌面/手机语义宏(from_semantic_macro)或跨表面编排流(from_workflow)一键编译为永久causal-cap/1.0能力包。之后每次调用均以 1 步确定性执行、0 推理 Token 完成(本人非金钱写操作 1 步DIRECT_WRITTEN直写;金钱动作强制 HMAC 双阶stage -> commit与预算门禁)。四态自动产出(
QuadEmitter):每次吞噬或结晶自动同步产出 ① 本机 JSON CLI(swallow/umcp)、② 标准MCP 2025-06-18服务、③ 能力卡投影、④<2 KB精简SKILL.md。恒定
<2.5 KBCode-Mode MCP 总线:无论底层挂载 5 个还是 500 个能力,对外永远只暴露4个元工具(search_capabilities、execute_workflow、workbench、crystallize),实测2,426 B紧凑 /2,626 B完整(严守< 4,096 B红线);支持 Agent 在受限 Python 沙箱内一次往返并发编排多能力流水线(umcp.parallel)。
60 秒上手
# 1. 零依赖安装
git clone https://github.com/pjrpjr/swallow-anything.git
cd swallow-anything
pip install -e .
# 2. 查看本机可用物理武器库(0 LLM Token)
swallow workbench inventory --fast
# 3. 将接口一键结晶为永久 0-Token 能力并直接调用
swallow crystallize from_traffic demo_posts --json '{
"base_url": "https://jsonplaceholder.typicode.com",
"endpoints": [
{"method": "GET", "url": "https://jsonplaceholder.typicode.com/posts/1", "tool_name": "get_post", "description": "获取文章 1"},
{"method": "POST", "url": "https://jsonplaceholder.typicode.com/posts", "tool_name": "create_post", "description": "发布文章", "body_sample": {"title": "hello", "body": "world", "userId": 1}}
]
}'
swallow demo_posts get_post
swallow demo_posts create_post --title "新神结晶" --body "零Token直写"
# 4. 启动 <2.5 KB Code-Mode MCP 服务(支持 stdio / Streamable HTTP)
swallow serve-codemode --stdio双区安全防火墙与合规宪章
Zone A(本人私域):保留本人账号业务字段(邮箱/手机号/用户 ID),同时全量脱敏一切凭据、Bearer、JWT、Cookie、Luhn 银行卡号与 CVV;非金钱写 1 步
DIRECT_WRITTEN,金钱动作强制 HMAC 双阶确认与单次/单日预算红线。Zone B(公开发布区):强制全量 PII + 密钥脱敏、严格 DNS/IP 反 SSRF/LFI、强制
allow_live_mutations=False;宪章红线硬拦截所有个人桌面宏、手机控制、主世界浏览器 RPC、接码/OTP 与个人登录态向外公开发布(REDLINE_REJECTED)。Gate 8 真实写完整性裁判:静态 AST + 动态隔离双校验,严厉打假只返回
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.-