x402ai-mcp

v0.1.3
io.github.ukenal/x402ai-mcp Checked 1 day ago Published 15 days ago

Pay-per-call AI tools (embed, summarize, ask, policy-check) from x402ai, paid in USDC on Base.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

embed x402ai embed

Compute a text embedding vector. Costs $0.01 (USDC on Base) per call. Spends real money; subject to a per-payment and per-session cap. Pass the text in `input` (max 3000 chars).

ParameterTypeDescription
input *stringThe text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters.

summarize x402ai summarize

Summarize text. Costs $0.02 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the text in `input` (max 3000 chars).

ParameterTypeDescription
input *stringThe text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters.

ask x402ai ask

Ask a question and get an answer. Costs $0.04 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the question in `input` (max 3000 chars).

ParameterTypeDescription
input *stringThe text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters.

policy_check x402ai policy-check

Check up to 20 proposed agent actions (read, write, delete, exec, network, pay, self_modify) against a baseline or strict policy profile and get a verdict for each. Costs $0.01 (USDC on Base) per call for up to 20 actions. Spends real money; subject to a per-payment and per-session cap. It only checks the actions; it does not enforce or block anything.

ParameterTypeDescription
actions *arrayThe proposed actions to check, 1-20.
context *objectWhere the agent runs.
profile *stringPolicy profile to check against: baseline or strict.

health x402ai health

Free. Check GET /health on api.x402ai.dev and show local session spend. No key needed.

inspect x402 inspect

Free, never signs or pays. Fetch an https URL unpaid, decode its x402 payment-required header, and check it with Coinbase CDP validate and merchant discovery. Sends the URL to api.cdp.coinbase.com.

ParameterTypeDescription
url *stringThe https URL of the x402-protected endpoint to inspect (max 2048 chars).
methodstringHTTP method for the unpaid probe request. Defaults to POST.