Skip to main content
MCP server CX Codex

IBM Granite via x402 — MCP server for Claude Code: setup and tools

Connect an MCP client to IBM Granite for coding, chat, embeddings, document analysis, and forecasting, with each call paid in USDC on Solana.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MCP_SVM_PAYMENT_ADDRESS=<MCP_SVM_PAYMENT_ADDRESS> --env WATSONX_API_KEY=<WATSONX_API_KEY> --env WATSONX_PROJECT_ID=<WATSONX_PROJECT_ID> --env WATSONX_SPACE_ID=<WATSONX_SPACE_ID> --env WATSONX_URL=<WATSONX_URL> --transport stdio ibm-x402-mcp -- npx -y @three-ws/ibm-x402-mcp
Open on GitHub

What IBM Granite via x402 does

This server exposes IBM Granite through MCP tools. An agent can ask for code generation or review, create text embeddings, inspect a document, or forecast a time series. A free introductory tool explains the available tools, pricing, and payment process.

The operator provides WATSONX_API_KEY, WATSONX_PROJECT_ID, and a Solana wallet address through MCP_SVM_PAYMENT_ADDRESS. Callers pay USDC per request and do not need their own IBM account. Automatic payment depends on the MCP client supporting x402; without that, the payment-and-retry flow will not run automatically. Calls only perform model inference and do not change local files or account settings.

What it helps with

  • generate or review code with IBM Granite
  • create text embeddings for search and RAG
  • extract entities and sentiment from a document
  • forecast values from a timestamped series

Example prompts for the agent

  • Review this code and suggest corrections.
  • Create embeddings for these texts so I can use them in search.
  • Analyze this document as a financial report and identify risks.

How to install IBM Granite via x402

Platform CLI

claude mcp add --env MCP_SVM_PAYMENT_ADDRESS=<MCP_SVM_PAYMENT_ADDRESS> --env WATSONX_API_KEY=<WATSONX_API_KEY> --env WATSONX_PROJECT_ID=<WATSONX_PROJECT_ID> --env WATSONX_SPACE_ID=<WATSONX_SPACE_ID> --env WATSONX_URL=<WATSONX_URL> --transport stdio ibm-x402-mcp -- npx -y @three-ws/ibm-x402-mcp

Replace <…> with your own values. 4 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about IBM Granite via x402

How do I install IBM Granite via x402 in Claude Code?

Run `claude mcp add ibm-x402-mcp -e MCP_SVM_PAYMENT_ADDRESS=<MCP_SVM_PAYMENT_ADDRESS> -e WATSONX_API_KEY=<WATSONX_API_KEY> -- npx -y @three-ws/ibm-x402-mcp`. Replace the placeholders with your wallet address and IBM key.

What does IBM Granite via x402 do?

It gives MCP clients tools for IBM Granite chat, code tasks, text embeddings, document analysis, and forecasting. Calls are paid in USDC on Solana.

What does the operator need to configure?

The operator supplies IBM watsonx.ai credentials and a Solana receiving address. Callers need USDC, and automatic payment requires an x402-capable MCP client.

Similar MCP servers

All MCP servers for AI and ML →

From the same set43

three.ws Loom MCP server for browsing, inspecting, and publishing community 3D creations in the three.ws public gallery. CX Codex +1 ★ 249repo stars three.ws KOL Inspect a tracked wallet’s portfolio and its trades for a chosen token. Useful when you want to review a trader’s activity before analyzing or copying it. CX Codex +1 ★ 249repo stars three.ws Knock A paid line to a real person: the agent checks a door's price, sends one message, then reads the answer. Useful when you want an agent to write to a stranger. CX Codex +1 ★ 249repo stars three.ws Intel An on-chain intelligence MCP server that inspects coin buyers, tracks wallet win rates, and detects co-managed Solana addresses directly inside AI coding tools. CX Codex +1 ★ 249repo stars IBM watsonx.ai Granite Brings IBM Granite models from your own watsonx.ai project into the agent: chat, generation, embeddings, token counting and time-series forecasting. CX Codex +1 ★ 249repo stars three.ws Herald Spawns a 3D companion inside your browser tab to announce agent task completion or urgent failures out loud. Keeps key alerts noticeable. CX Codex +1 ★ 249repo stars three.ws Copy Trading Manage three.ws leader follows through an AI agent: adjust copy sizing and guard rules, review pending intents, and check fees. The server leaves transaction execution to you. CX Codex +1 ★ 249repo stars three.ws Concierge Asks a website's AI concierge questions grounded in the page itself, and writes the embed snippet for a 3D-avatar chat widget. CX Codex +1 ★ 249repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor