
Gate402 Mcp
io.github.pgalyen1987由 GitHub 帳號 pgalyen1987 發布v0.8.1更新於 Oct 24, 2026
x402 pay-per-call agent APIs: LLM inference, Base trading data, SEC filings & scraping
概覽
Gate402 的在地 MCP 伺服器,按次付費呼叫 x402 介面:LLM 推論、網頁擷取、Base 鏈上與 DEX 資料、SEC 文件,以及免費在地工具。
- 可以做什麼
- 執行開源模型 LLM 推論與按秒計費的 GPU/CPU 容器工作,並回傳簽章用量憑證
- 把公開網址擷取成乾淨的 Markdown,另有使用住宅代理與驗證碼破解的隱匿模式
- 查詢 Base 鏈上錢包與代幣資訊、DEX 價格與流動性、代幣風險與動能訊號、最佳兌換路徑以及新代幣發行
- 取得某檔股票的最新新聞情緒與 SEC EDGAR 文件
- 壓縮文字、做語意去重查詢,以及瀏覽 GPU 市場或申請成為供應方
- 使用免費在地工具:估算 token 數、HTML 轉 Markdown、修復 JSON
- 適用情境
- 適合需要按次付費取得 LLM 推論、網頁擷取、Base 加密資料或 SEC 文件、又不想註冊帳號的代理程式,也適合想在同一伺服器附帶幾個離線文字工具的場景。
- 執行需求
- 透過 npm(npx gate402-mcp)或全域安裝以 stdio 在地執行,需要 Node.js。無需註冊:首次使用會自動領取免費額度金鑰並快取於 ~/.gate402-mcp。可選 GATE402_API_KEY 使用已儲值帳戶、GATE402_BASE_URL 覆寫閘道位址、GATE402_CONFIG_DIR 變更快取目錄。付費工具需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Gate402 Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
gate402-mcp
MCP server for Gate402 — pay-per-call agent APIs over HTTP 402 (x402 / USDC on Base). Gives any MCP client a full toolkit with no signup and a free tier on first runs — GPU/CPU compute, open-model LLM inference, a GPU marketplace, a complete Base trading loop (discover → vet → read → execute), and web tools:
…plus three free tools that run locally in this process (pure compute — no payment, no key, no network):
GPU marketplace
Gate402 also routes to third-party GPU/compute providers with escrow-on-success — the buyer is charged only if the provider delivers. Providers keep 85% of each call, paid out on-chain in USDC on Base.
How billing works
On first use the server self-claims a free-credit API key from Gate402 and caches it at ~/.gate402-mcp/key.json. Calls draw down that credit. When it runs out, tools return a top-up link instead of failing. To skip the free tier, set GATE402_API_KEY to a funded account (top up).
The payment is the auth — there are no accounts to create.
Install
Or run without installing via npx gate402-mcp.
Configure your MCP client
Claude Desktop / Claude Code
Add to your MCP config (claude_desktop_config.json, or claude mcp add):
Cursor / Cline / Windsurf
Same shape — point the MCP server command at npx -y gate402-mcp.
Agent frameworks (LangChain, CrewAI, LlamaIndex)
gate402 is a standard stdio MCP server, so any framework with an MCP adapter can load all 17 tools:
LangChain / LangGraph (langchain-mcp-adapters):
CrewAI (MCPServerAdapter):
LlamaIndex (McpToolSpec):
Once wired, the agent calls the tools autonomously; the free-credit key is claimed on first use, and paid tools draw down from it.
Environment variables
Develop
License
MIT
來源:README.md,提交 01277d6
工具
0版本歷史
3- v0.8.1最新Sep 19, 2026
- v0.8.0Sep 17, 2026
- v0.5.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分