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

概覽

AI 產生的概覽

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 變更快取目錄。付費工具需要網路存取。
安裝前請注意
多數工具每次呼叫都會從預付餘額扣款,市場推論工具按次在鏈上結算。首次執行會在 ~/.gate402-mcp 寫入金鑰檔案。擷取與隱匿工具會把目標網址傳送給第三方閘道與代理。運算工具目前回傳 503。成為供應方涉及鏈上 USDC 收款。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

gate402-mcp

[x402 trust]

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:

ToolWhat it doesPrice
gate402_inferOpen-model LLM inference (Llama 3.1 8B/70B, Qwen 2.5, Mistral); billed on actual tokens, signed usage receiptper-token (from $0.05/1M in)
gate402_computeMetered GPU/CPU for a container job, with a signed execution receipt. Not available yet: answers 503 until a compute provider is connectedper-second
gate402_scrapeFetch any public URL, render JS, strip nav/ads → clean LLM-ready Markdown$0.002
gate402_scrape_stealthCloudflare/anti-bot fetch via residential proxies + CAPTCHA solving → clean Markdown$0.05
gate402_minifyCompress text to cut downstream LLM token spend (~40%)$0.005 / 10k tok
gate402_dedupSemantic vector-cache lookup (exact + cosine)$0.001 hit / $0.003 miss
gate402_onchainOn-chain wallet/token intel on Base (balances, EOA/contract, tx count, token metadata)$0.01
gate402_dexLive DEX price / liquidity / 24h volume for a Base token$0.01
gate402_newsRecent news headlines + bull/bear sentiment for a ticker/topic$0.02
gate402_edgarLatest SEC EDGAR filings (10-K/10-Q/8-K) for a US ticker$0.02
gate402_token_riskRug/tradeability verdict for a Base token (score + SAFE/CAUTION/AVOID; liquidity, honeypot sim, holder concentration)$0.03
gate402_momentumMomentum + order-flow signal for a Base token (RISING/FALLING + ACCUMULATION/DISTRIBUTION, honeypot-gated)$0.02
gate402_best_swapBest-execution intel: which DEX pool + estimated price impact for a trade size$0.02
gate402_launchesRadar of the freshest Base token launches, lightly pre-screened$0.02

…plus three free tools that run locally in this process (pure compute — no payment, no key, no network):

ToolWhat it does
gate402_token_countEstimate the token count of a string (budget your context window)
gate402_html_to_mdConvert an HTML string you already have into clean Markdown
gate402_json_repairCoerce malformed / LLM-mangled JSON into valid JSON

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.

ToolWhat it does
gate402_market_inferLLM inference via the marketplace, routed to the cheapest healthy provider. x402-native (settles on-chain per call — needs an x402 client, not the free-tier key)
gate402_providersFree. Browse active providers — model, per-call price, reliability
gate402_become_providerFree. List your own GPU and earn 85%/call — returns the exact sign-message + registration request

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

bash
npm install -g gate402-mcp

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):

json
{  "mcpServers": {    "gate402": {      "command": "npx",      "args": ["-y", "gate402-mcp"]    }  }}

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):

python
from langchain_mcp_adapters.client import MultiServerMCPClientclient = MultiServerMCPClient({"gate402": {"command": "npx", "args": ["-y", "gate402-mcp"], "transport": "stdio"}})tools = await client.get_tools()   # feed into your agent

CrewAI (MCPServerAdapter):

python
from crewai_tools import MCPServerAdapterfrom mcp import StdioServerParametersparams = StdioServerParameters(command="npx", args=["-y", "gate402-mcp"])with MCPServerAdapter(params) as tools:    ...  # pass tools to your Crew

LlamaIndex (McpToolSpec):

python
from llama_index.tools.mcp import BasicMCPClient, McpToolSpectools = McpToolSpec(client=BasicMCPClient("npx", args=["-y", "gate402-mcp"])).to_tool_list()

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

VarDefaultPurpose
GATE402_API_KEY(unset)Use a funded account instead of the free tier.
GATE402_BASE_URLhttps://gate402.appOverride the gateway (self-hosting / testing).
GATE402_CONFIG_DIR~/.gate402-mcpWhere the cached free key is stored.

Develop

bash
npm installnpm run buildnpm start          # or: npm run dev

License

MIT

來源:README.md,提交 01277d6

工具

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

版本歷史

3
  1. v0.8.1最新Sep 19, 2026
  2. v0.8.0Sep 17, 2026
  3. v0.5.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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