
X402 Api
io.github.gigsoul由 GitHub 帳號 gigsoul 發布v3.0.0更新於 Oct 24, 2026
AI API for marketing, content and outreach. 22 endpoints. Pay with USDC on Base via x402.
概覽
遠端 MCP 端點,提供 22 個面向行銷、內容與推廣的 AI API 介面,透過 x402 以 Base 上的 USDC 按次付費。
- 可以做什麼
- 呼叫面向行銷、內容與推廣的 AI 介面
- 透過單一遠端伺服器存取 22 個 API 端點
- 使用 x402 付款流程以 Base 上的 USDC 按請求付費
- 先收到 402 Payment Required 與付款要求,再帶上已簽章的付款重試
- 適用情境
- 當你希望助理直接使用付費的 AI 行銷、內容與推廣介面、又不想自行管理 API 金鑰,且願意以 Base 上的 USDC 按次付費時適用。
- 執行需求
- 遠端 streamable HTTP 端點;未宣告本機安裝、環境變數或請求標頭。需要支援 x402 付款的用戶端,包括能在 Base 上簽署 USDC 付款的錢包,以完成 402 付款步驟。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 X402 Api,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.gigsoul%2Fx402-api/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"x402-api": {
"type": "http",
"url": "https://gig-x402-api.jayson-be1.workers.dev/"
}
}
}README
x402
x402 is an open standard for internet native payments. It aims to support all networks (both crypto & fiat) and forms of value (stablecoins, tokens, fiat).
Installation
Typescript
Python
Go
Principles
- Open standard: x402 is an open standard, freely accessible and usable by anyone. It will never force reliance on a single party.
- HTTP / Transport Native: x402 is meant to seamlessly complement existing data transportation. It should whenever possible not mandate additional requests outside the scope of a typical client / server flow.
- Network, token, and currency agnostic: we welcome contributions that add support for new networks (both crypto and fiat), signing standards, or schemes, so long as they meet our acceptance criteria laid out in CONTRIBUTING.md. x402 may extend support to fiat based networks, but will never deprioritize onchain payments in favor of fiat payments.
- Backwards Compatible: x402 will not deprecate support for any existing networks unless such removal is deemed necessary for the security of the standard. Whenever possible, x402 will aim for backwards compatibility for non-major version changes.
- Trust minimizing: all payment schemes must not allow for the facilitator or resource server to move funds, other than in accordance with client intentions
- Easy to use: It is the goal of the x402 community to improve ease of use relative to other forms of payment on the Internet. This means abstracting as many details of crypto as possible away from the client and resource server, and into the facilitator. This means the client/server should not need to think about gas, rpc, etc.
Ecosystem
The x402 ecosystem is growing! Check out our ecosystem page to see projects building with x402, including:
- Client-side integrations
- Services and endpoints
- Ecosystem infrastructure and tooling
- Learning and community resources
Want to add your project to the ecosystem? See our demo site README for detailed instructions on how to submit your project.
Roadmap: see ROADMAP.md
Documentation: see docs/ for the GitBook documentation source
Terms:
resource: Something on the internet. This could be a webpage, file server, RPC service, API, any resource on the internet that accepts HTTP / HTTPS requests.client: An entity wanting to pay for a resource.facilitator: A server that facilitates verification and execution of payments for one or many networks.resource server: An HTTP server that provides an API or other resource for a client.
Technical Goals:
- Permissionless and secure for clients, servers, and facilitators
- Minimal friction to adopt for both client and resource servers
- Minimal integration for the resource server and client (1 line for the server, 1 function for the client)
- Ability to trade off speed of response for guarantee of payment
- Extensible to different payment flows and networks
Specification
See specs/ for full documentation of the x402 standard/
Typical x402 flow
x402 payments typically adhere to the following flow, but servers have a lot of flexibility. See advanced folders in examples/.
[圖片]
The following outlines the flow of a payment using the x402 protocol. Note that steps (1) and (2) are optional if the client already knows the payment details accepted for a resource.
-
Clientmakes an HTTP request to aresource server. -
Resource serverresponds with a402 Payment Requiredstatus and aPaymentRequiredb64 object return as aPAYMENT-REQUIREDheader. -
Clientselects one of thePaymentRequirementsreturned by the server response and creates aPaymentPayloadbased on thescheme&networkof thePaymentRequirementsthey have selected. -
Clientsends the HTTP request with thePAYMENT-SIGNATUREheader containing thePaymentPayloadto the resource server. -
Resource serververifies thePaymentPayloadis valid either via local verification or by POSTing thePaymentPayloadandPaymentRequirementsto the/verifyendpoint of afacilitator. -
Facilitatorperforms verification of the object based on theschemeandnetworkof thePaymentPayloadand returns aVerification Response. -
If the
Verification Responseis valid, the resource server performs the work to fulfill the request. If theVerification Responseis invalid, the resource server returns a402 Payment Requiredstatus and aPayment Required ResponseJSON object in the response body. -
Resource servereither settles the payment by interacting with a blockchain directly, or by POSTing thePayment PayloadandPayment PaymentRequirementsto the/settleendpoint of afacilitator server. -
Facilitator serversubmits the payment to the blockchain based on theschemeandnetworkof thePayment Payload. -
Facilitator serverwaits for the payment to be confirmed on the blockchain. -
Facilitator serverreturns aPayment Execution Responseto the resource server. -
Resource serverreturns a200 OKresponse to theClientwith the resource they requested as the body of the HTTP response, and aPAYMENT-RESPONSEheader containing theSettlement Responseas Base64 encoded JSON if the payment was executed successfully.
Schemes
A scheme is a logical way of moving money.
Blockchains allow for a large number of flexible ways to move money. To help facilitate an expanding number of payment use cases, the x402 protocol is extensible to different ways of settling payments via its scheme field.
Each payment scheme may have different operational functionality depending on what actions are necessary to fulfill the payment.
For example exact, the first scheme shipping as part of the protocol, would have different behavior than upto. exact transfers a specific amount (ex: pay $1 to read an article), while a theoretical upto would transfer up to an amount, based on the resources consumed during a request (ex: generating tokens from an LLM).
See specs/schemes for more details on schemes, and see specs/schemes/exact/scheme_exact_evm.md to see the first proposed scheme for exact payment on EVM chains.
Schemes vs Networks
Because a scheme is a logical way of moving money, the way a scheme is implemented can be different for different blockchains. (ex: the way you need to implement exact on Ethereum is very different from the way you need to implement exact on Solana).
Clients and facilitators must explicitly support different (scheme, network) pairs in order to be able to create proper payloads and verify / settle payments.
來源:README.md,提交 f6a42d7
工具
0版本歷史
1- v3.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分