Skip to main content
MCP server CX Codex

IBM watsonx.ai Granite — Claude Code MCP server: what it does

Brings IBM Granite models from your own watsonx.ai project into the agent: chat, generation, embeddings, token counting and time-series forecasting.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --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> --env WATSONX_MODEL_ID=<WATSONX_MODEL_ID> --transport stdio ibm-watsonx-mcp -- npx -y @three-ws/ibm-watsonx-mcp
Open on GitHub

What IBM watsonx.ai Granite does

The server talks to the watsonx.ai REST API directly using your IBM Cloud credentials. It trades WATSONX_API_KEY for a short-lived IAM bearer token, keeps that token in memory and refreshes it shortly before expiry. Nothing sits in between.

Six tools come with it: watsonx_chat, watsonx_generate, watsonx_embed, watsonx_tokenize, watsonx_forecast and watsonx_list_models. Each one only runs inference and leaves your account untouched; annotations like readOnlyHint and idempotentHint tell the client so.

You need Node.js 20 or newer, an IBM Cloud account with watsonx.ai enabled, an API key and a project id. This is a community project with no ties to IBM. Pass the key and project id as environment variables — the server won't start without them.

What it helps with

  • send a prompt to Granite from inside the agent
  • embed a batch of strings in one call
  • count tokens before spending them
  • forecast a time series without training a model
  • see which foundation models your region offers

Example prompts for the agent

  • Ask watsonx_chat to explain MCP in one sentence
  • Run watsonx_embed on the strings “lakehouse” and “data warehouse”
  • List embedding models only via watsonx_list_models

How to install IBM watsonx.ai Granite

Platform CLI

claude mcp add --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> --env WATSONX_MODEL_ID=<WATSONX_MODEL_ID> --transport stdio ibm-watsonx-mcp -- npx -y @three-ws/ibm-watsonx-mcp

Replace <…> with your own values. 2 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 watsonx.ai Granite

How to install IBM watsonx.ai Granite in Claude Code?

One command: claude mcp add ibm-watsonx -e WATSONX_API_KEY=<WATSONX_API_KEY> -- npx -y @three-ws/ibm-watsonx-mcp. Replace the key with your own.

What does IBM watsonx.ai Granite do?

It exposes the models in your watsonx.ai project to the agent: chat, text generation, embeddings, tokenization, forecasting and model listing.

What is required to run it?

Node.js 20 or newer, an IBM Cloud account with watsonx.ai, an IBM Cloud API key and your project id. The last two go into WATSONX_API_KEY and WATSONX_PROJECT_ID.

Similar MCP servers

All MCP servers for AI and ML →

From the same set13

three.ws Solana Memo Media Pulls images embedded in Solana SPL Memo instructions and hands them to your assistant inline. Useful when you have a transaction signature instead of a file. CX Codex +1 ★ 249repo stars three.ws Notifications Hands an agent the three.ws notification inbox: read events, mark them read, tune delivery channels, register Web Push devices. CX Codex +1 ★ 249repo stars three.ws Marketplace Lets an AI agent search the public three.ws catalog: agents and skills, paged and filtered. Read-only, so nothing gets published. 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 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 three.ws Blender Points your agent at the Blender already on your machine, headless: look inside a 3D file, switch formats, render a preview and run bpy scripts. CX Codex +1 ★ 249repo stars three.ws Audio Gives a 3D agent a voice and a moving face: speech synthesis, transcription, per-frame lipsync and a motion-capture clip library from any MCP client. CX Codex +1 ★ 249repo stars three.ws Alerts An MCP server that lets your agent define pump.fun alert rules and read back what fired, across three delivery channels. 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