io.github.nirholas/ibm-x402-mcp icon
io.github.nirholas

ibm-x402-mcp

IBM Granite via x402

x402 pay-per-use IBM Granite AI: chat, code, embeddings, analysis, forecasting. Pay USDC per call.

stdiocommunityservice

Package Details

Transportstdio
Runtimenpx

Environment Variables

MCP_SVM_PAYMENT_ADDRESS(str)
Required

Solana wallet address that receives USDC payments from tool callers (server operator's receiving wallet). Required to accept x402 payments.

WATSONX_API_KEY(str)
RequiredSecret

IBM Cloud API key used by the server to call watsonx.ai on behalf of end users. Create one at https://cloud.ibm.com/iam/apikeys.

WATSONX_PROJECT_ID(str)

watsonx.ai project id scoping all inference calls. Find it under your project → Manage → General → Project ID. Provide this or WATSONX_SPACE_ID.

WATSONX_SPACE_ID(str)

watsonx.ai deployment space id. Alternative to WATSONX_PROJECT_ID.

WATSONX_URL(str)

Regional watsonx.ai inference host. Defaults to https://us-south.ml.cloud.ibm.com. Other regions: eu-de, eu-gb, jp-tok, au-syd, ca-tor.

WATSONX_MODEL_ID(str)

Default chat/generation Granite model id. Defaults to ibm/granite-3-8b-instruct.

WATSONX_EMBED_MODEL_ID(str)

Default embedding model id. Defaults to ibm/granite-embedding-278m-multilingual.

X402_FEE_PAYER_SOLANA(str)

Solana account that sponsors transaction fees for x402 payments. Defaults to the three.ws fee payer.

X402_FACILITATOR_URL(str)

x402 facilitator endpoint for payment verification and settlement. Defaults to https://facilitator.payai.network.