IBM Granite via x402
CommunityMCP server by nirholas · updated · ★ 241
x402 pay-per-use IBM Granite AI: chat, code, embeddings, analysis, forecasting. Pay USDC per call. IBM Granite via x402 is a community project by nirholas, not verified by a company domain.
Last commit 4 days ago
Apache-2.0: permissive, fine for commercial use
Clear description, published package or server URL, 241 stars, original repository
Runs a script automatically when the package is installed
What you need
| Setting | Needed | What it is |
|---|---|---|
MCP_Environment variable | Required | Solana wallet address that receives USDC payments from tool callers (server operator's receiving wallet). Required to accept x402 payments. |
WATSONX_Environment variable, secret | Required | 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_Environment variable | Optional | watsonx.ai project id scoping all inference calls. Find it under your project → Manage → General → Project ID. Provide this or WATSONX_SPACE_ID. |
WATSONX_Environment variable | Optional | watsonx.ai deployment space id. Alternative to WATSONX_PROJECT_ID. |
WATSONX_Environment variable | Optional | 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_Environment variable | Optional | Default chat/generation Granite model id. Defaults to ibm/granite-3-8b-instruct. |
WATSONX_Environment variable | Optional | Default embedding model id. Defaults to ibm/granite-embedding-278m-multilingual. |
X402_Environment variable | Optional | Solana account that sponsors transaction fees for x402 payments. Defaults to the three.ws fee payer. |
X402_Environment variable | Optional | x402 facilitator endpoint for payment verification and settlement. Defaults to https://facilitator.payai.network. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install IBM Granite via x402
Built from the published package, never by AIclaude mcp add ibm-granite-via-x402 -e MCP_SVM_PAYMENT_ADDRESS=YOUR_MCP_SVM_PAYMENT_ADDRESS -e WATSONX_API_KEY=YOUR_WATSONX_API_KEY -- npx -y @three-ws/ibm-x402-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ibm-granite-via-x402": {
"command": "npx",
"args": [
"-y",
"@three-ws/ibm-x402-mcp"
],
"env": {
"MCP_SVM_PAYMENT_ADDRESS": "YOUR_MCP_SVM_PAYMENT_ADDRESS",
"WATSONX_API_KEY": "YOUR_WATSONX_API_KEY"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install IBM Granite via x402 in Claude Desktop
{
"mcpServers": {
"ibm-granite-via-x402": {
"command": "npx",
"args": [
"-y",
"@three-ws/ibm-x402-mcp"
],
"env": {
"MCP_SVM_PAYMENT_ADDRESS": "YOUR_MCP_SVM_PAYMENT_ADDRESS",
"WATSONX_API_KEY": "YOUR_WATSONX_API_KEY"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ibm-granite-via-x402": {
"command": "npx",
"args": [
"-y",
"@three-ws/ibm-x402-mcp"
],
"env": {
"MCP_SVM_PAYMENT_ADDRESS": "YOUR_MCP_SVM_PAYMENT_ADDRESS",
"WATSONX_API_KEY": "YOUR_WATSONX_API_KEY"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ibm-granite-via-x402 --env MCP_SVM_PAYMENT_ADDRESS=YOUR_MCP_SVM_PAYMENT_ADDRESS --env WATSONX_API_KEY=YOUR_WATSONX_API_KEY -- npx -y @three-ws/ibm-x402-mcp{
"mcpServers": {
"ibm-granite-via-x402": {
"command": "npx",
"args": [
"-y",
"@three-ws/ibm-x402-mcp"
],
"env": {
"MCP_SVM_PAYMENT_ADDRESS": "YOUR_MCP_SVM_PAYMENT_ADDRESS",
"WATSONX_API_KEY": "YOUR_WATSONX_API_KEY"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install IBM Granite via x402 in Antigravity CLI
gemini mcp add ibm-granite-via-x402 npx -y @three-ws/ibm-x402-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ibm-granite-via-x402 block.
Weekly newsletter
Like IBM Granite via x402? Get the best new MCP servers every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Security check
B- Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to IBM Granite via x402
All alternatives →Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Market analysis for AI assistants: screeners, multi-timeframe analysis, backtests, in-chat charts.
Cited company knowledge from Slack, meetings, transcripts, and decisions
Minimal chat-first app with durable threads, actions, and the app-agent loop
Central Slack/Telegram router with jobs, memory, approvals, and A2A delegation
Agent-Native Superhuman - email client with keyboard shortcuts and AI triage
IBM Granite via x402: common questions
How do I install IBM Granite via x402?
In Claude Code run claude mcp add ibm-granite-via-x402 -e MCP_SVM_PAYMENT_ADDRESS=YOUR_MCP_SVM_PAYMENT_ADDRESS -e WATSONX_API_KEY=YOUR_WATSONX_API_KEY -- npx -y @three-ws/ibm-x402-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is IBM Granite via x402 the official server?
IBM Granite via x402 is a community project by nirholas, not verified by a company domain.
Is IBM Granite via x402 free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is IBM Granite via x402 safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.
What are alternatives to IBM Granite via x402?
Similar MCP servers: Vexa, TradingMCP, Agent-Native Brain, Agent-Native Chat.
Does IBM Granite via x402 work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
