TokenSqueezer LLM Token Compressor

io.github.pgalyen1987由 GitHub 帳號 pgalyen1987 發布v1.0.2更新於 Oct 28, 2026

x402-gated LLM token compressor: strip filler, collapse JSON, densify prose. Paid in USDC.

概覽

AI 產生的概覽

付費 MCP 伺服器:抓取公開網頁並回傳壓縮後的 Markdown 以節省 LLM 上下文 token,依次以 USDC 計費。

可以做什麼
  • 抓取並壓縮公開頁面:surface_markdown_parser 移除腳本、廣告與導覽雜訊,回傳適合上下文視窗的 Markdown,收取少量 USDC。
  • 抓取有反爬保護的網站:stealth_markdown_parser 使用代理輪替、強化的 Playwright 與選用驗證碼破解,費用較高。
  • 服務探索:提供工具目錄、健康檢查與 well-known 探索清單,供登錄檔爬蟲與代理程式讀取。
  • 依次付費:未付款請求會回傳 402 挑戰,之後透過 x402 USDC 結算,標準方案也支援 Stripe 卡片付款。
適用情境
適合助理需要讀取大量 React 或 Vue 頁面、原始 HTML 佔用過多上下文的情況,也適合檢索迴圈需要從公開網址取得乾淨 Markdown 時使用。stealth 方案用於阻擋一般抓取的網站。
執行需求
可作為本機 stdio 程序從 npm 套件執行,也可自行架設 HTTP 服務。自架需要 Node.js、用於接收 USDC 的 WALLET_ADDRESS,選用 CDP_API_KEY_ID 與 CDP_API_KEY_SECRET、STRIPE_SECRET_KEY、STEALTH_PROXY_URLS、CAPTCHA_SOLVER_KEY。呼叫端需要支援 x402 的錢包或卡片付款。
安裝前請注意
每次解析都要付費:依次 USDC,或標準方案的卡片付款(有最低金額)。README 的用戶端範例會匯出 EVM_PRIVATE_KEY,這是可動用資金的私鑰。自架需設定收款錢包位址以及第三方 facilitator、代理與驗證碼憑證。抓取的網址會傳送給該服務及其代理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TokenSqueezer LLM Token Compressor,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

NodeProxy

Self-discoverable MCP utility for autonomous agents — no ads, no landing page, no human in the loop.

NodeProxy exposes two paid tools:

ToolEndpointPriceUse case
surface_markdown_parserPOST /mcp/execute$0.002 USDCNormal public pages
stealth_markdown_parserPOST /stealth-scrape$0.05 USDCCloudflare/Akamai-protected sites

Both fetch a public URL, strip scripts/ads/nav noise, and return compressed Markdown optimized for LLM context windows. Standard tier also accepts Stripe MPP card payments ($0.50 minimum) alongside x402 USDC.

Agents find this service through MCP registries, x402 Bazaar discovery, and machine-readable manifests — not marketing.

Why agents need this

Heavy React/Vue sites burn tokens when agents ingest raw HTML. NodeProxy returns clean Markdown so autonomous retrieval loops stay cheap and accurate. When basic fetch hits bot walls, the stealth tier escalates with proxy rotation, hardened Playwright, and optional CAPTCHA solving.

Architecture

Autonomous Agent    │  search MCP registry / Bazaar (vector or keyword)    ▼GET /mcp/tools  or  MCP list_tools    │  reads JSON schema ("Machine UI")    ▼POST /mcp/execute  or  POST /stealth-scrape    │  no payment → 402 + PAYMENT-REQUIRED (+ Bazaar extension)    │  x402 PAYMENT-SIGNATURE or MPP Authorization: Payment …    │  facilitator verify/settle → parse URL    ▼Markdown payload → agent continues task

Quick start

bash
cd NodeProxycp .env.example .env# Set WALLET_ADDRESS to your Base walletnpm installnpm run dev

Endpoints (replace host with your deploy URL):

EndpointPurpose
GET /healthService status, pricing, stealth/MPP config
GET /mcp/toolsTool catalog for registry crawlers
POST /mcp/executeStandard parse + x402/MPP gate
POST /stealth-scrapeStealth parse + x402 gate
ALL /mcpStreamable HTTP MCP transport
GET /.well-known/mcp.jsonWell-known MCP discovery
GET /.well-known/x402.jsonx402 + Bazaar discovery manifest
GET /.well-known/mpp.jsonMPP Stripe manifest (when configured)
GET /discovery/agent.jsonAgent discovery card
GET /registry/server.jsonLive registry manifest (dynamic)

Environment

VariableDefaultDescription
WALLET_ADDRESS—USDC recipient (your revenue)
PRICE_USDC0.002Standard tier price per parse
STEALTH_PRICE_USDC0.05Stealth tier price per parse
X402_NETWORKeip155:84532Primary network; use eip155:8453 on mainnet
X402_NETWORKSCDP bundleComma-separated CAIP-2 ids (Base, Polygon, Arbitrum, optional Ethereum L1)
FACILITATOR_URLhttps://x402.org/facilitatorx402 facilitator
CDP_API_KEY_ID / CDP_API_KEY_SECRET—Coinbase CDP facilitator (mainnet)
MPP_SECRET_KEY / STRIPE_SECRET_KEY—Stripe MPP on /mcp/execute
STEALTH_PROXY_URLS—Comma-separated proxy URLs for stealth tier
CAPTCHA_SOLVER_KEY—2captcha API key (optional)
PUBLIC_URLlocalhostUsed in discovery manifests

Machine discovery (zero advertising)

  1. Deploy to Railway or any HTTPS host.
  2. Verify live manifests: /mcp/tools, /.well-known/x402.json, /registry/server.json.
  3. Submit PR to the open-source MCP Registry using integrations/mcp-registry/server-entry.json.
  4. Bazaar auto-index: after successful x402 settlements through a Bazaar-enabled facilitator, tools appear in the global Bazaar index (Bazaar docs). NodeProxy attaches Bazaar extension metadata on every 402 response.
  5. Enterprise hubs (Google Agent Registry, Anthropic routing): point them at /.well-known/mcp.json or /discovery/agent.json.

Tool descriptions are written for LLM tool-matching, not humans.

Payment rails

RailToolsDestinationAmount
x402 USDCStandard + stealthYour WALLET_ADDRESS$0.002 / $0.05
Stripe MPPStandard onlyStripe account balance$0.50/card (SPT minimum)

MCP stdio (Claude Desktop / local agents)

bash
npm run mcp:stdio

Add to Claude Desktop config:

json
{  "mcpServers": {    "nodeproxy": {      "command": "node",      "args": ["--import", "tsx", "/path/to/NodeProxy/src/mcp/stdio.ts"],      "env": { "WALLET_ADDRESS": "0x..." }    }  }}

HTTP execute example

bash
# Stage A — get 402 challenge (includes Bazaar extension in PAYMENT-REQUIRED)curl -i "http://localhost:4022/mcp/execute" \  -H 'Content-Type: application/json' \  -d '{"arguments":{"url":"https://example.com"}}'
# Stage B — retry with PAYMENT-SIGNATURE from x402 client walletcurl "http://localhost:4022/mcp/execute" \  -H 'Content-Type: application/json' \  -H 'PAYMENT-SIGNATURE: <base64>' \  -d '{"arguments":{"url":"https://example.com"}}'
# Stealth tier (x402 only)curl -i "http://localhost:4022/stealth-scrape" \  -H 'Content-Type: application/json' \  -d '{"arguments":{"url":"https://example.com"}}'

Use @x402/fetch, @x402/mcp, or nodeproxy-tools for automatic payment.

Deploy on Railway

Railway is the recommended host: full Node.js (JSDOM works), no 15s serverless timeout, metered billing when idle.

1. Push to GitHub

bash
cd NodeProxygit init && git add . && git commit -m "NodeProxy MCP x402 parser"git remote add origin https://github.com/YOU/nodeproxy.gitgit push -u origin main

2. Create Railway project

  1. Go to railway.app → New Project → Deploy from GitHub repo
  2. Select your repo — Railway reads railway.toml + nixpacks.toml automatically
  3. Settings → Networking → Generate Domain (gives you *.up.railway.app)

3. Set environment variables

In Railway → Variables:

VariableValue
WALLET_ADDRESSYour Base wallet (USDC recipient)
X402_NETWORKeip155:8453
PRICE_USDC0.002
STEALTH_PRICE_USDC0.05
CDP_API_KEY_ID / CDP_API_KEY_SECRETCoinbase CDP keys (mainnet facilitator)
MPP_SECRET_KEY / STRIPE_SECRET_KEYStripe MPP (optional)
HOST0.0.0.0
MAX_CONCURRENT_PARSES20
RATE_LIMIT_PER_MINUTE120

You do not need to set PORT or PUBLIC_URL — Railway injects PORT, and the app auto-detects RAILWAY_PUBLIC_DOMAIN for discovery manifests.

4. Verify deploy

bash
curl https://YOUR-APP.up.railway.app/healthcurl https://YOUR-APP.up.railway.app/mcp/toolscurl https://YOUR-APP.up.railway.app/.well-known/x402.json

5. Register for agent discovery

Open a PR to the MCP Registry with integrations/mcp-registry/server-entry.json. Agents hit:

  • https://YOUR-APP.up.railway.app/mcp/tools
  • https://YOUR-APP.up.railway.app/.well-known/mcp.json
  • https://YOUR-APP.up.railway.app/.well-known/x402.json

Cost expectation

Railway’s free tier gives $1/month credit after trial — enough for low traffic ($0.30–0.50/mo idle). One paid agent call at $0.002 USDC covers that. Scale to Hobby ($5/mo) when bot traffic grows.

Do not use Vercel/Cloudflare Workers for this service — JSDOM and 25s fetch timeouts exceed edge limits.

Production (Base mainnet)

env
X402_NETWORK=eip155:8453WALLET_ADDRESS=0xYourWalletPRICE_USDC=0.002STEALTH_PRICE_USDC=0.05

USDC on Base: 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913

Upstream framework integrations

To get NodeProxy baked into LangChain, CrewAI, and MCP registry discovery:

  • integrations/UPSTREAM.md — fork → PR → merge playbook
  • integrations/python/ — nodeproxy-tools PyPI package + LangChain/CrewAI wrappers
  • integrations/typescript/ — @nodeproxy/langchain npm package
  • integrations/mcp-registry/ — MCP registry PR template

Quick LangChain example:

python
pip install "nodeproxy-tools[x402,langchain]"export EVM_PRIVATE_KEY=0x...
from nodeproxy_tools.langchain import NodeProxyMarkdownTooltool = NodeProxyMarkdownTool()markdown = tool.invoke({"url": "https://example.com"})

Naming

NodeProxy is registry-ready: boring, predictable, and reads as infrastructure. Tool names (surface_markdown_parser, stealth_markdown_parser) are chosen so semantic search hits match intent.

License

MIT

Part of Gate402

This service is part of the Gate402 x402 agent-API suite — pay-per-call APIs for AI agents over HTTP 402 (USDC on Base). Use it standalone, through the unified storefront + CDP x402 Bazaar at gate402.app, or as an MCP server: npx -y gate402-mcp.

來源:README.md,提交 d28f737

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。