Watsonx

io.github.ExpertVagabond由 GitHub 账号 ExpertVagabond 发布v1.0.1更新于 Oct 24, 2026

IBM watsonx.ai MCP server for Claude integration

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,让助手把文本生成、对话和向量嵌入任务交给 IBM watsonx.ai 的基础模型(如 Granite、Llama、Mistral)处理。

可以做什么
  • 使用 watsonx.ai 基础模型生成文本
  • 与 watsonx.ai 对话模型进行多轮交流
  • 生成文本向量嵌入,用于语义搜索和 RAG
  • 列出账户中可用的基础模型
适用场景
适合希望让 Claude 把部分工作转交给 IBM watsonx.ai 模型的场景,例如需要 Granite 专有能力、对企业数据做批量推理,或为 RAG 流程生成向量嵌入,同时由 Claude 负责主要推理。
运行要求
以本地 Node.js 进程运行,从 npm 包安装。需要 IBM Cloud API 密钥(WATSONX_API_KEY)、服务地址(WATSONX_URL),以及 WATSONX_SPACE_ID 或 WATSONX_PROJECT_ID 之一才能使用生成、对话和嵌入功能。需要能访问 watsonx.ai API 的网络。
安装前请注意
配置需要 IBM Cloud API 密钥(WATSONX_API_KEY)以及部署空间或项目 ID,请勿写入共享配置文件。发送给工具的内容和文档会离开本机,传输至 IBM watsonx.ai 服务。超出免费 Lite 套餐的使用可能产生 IBM Cloud 费用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Watsonx,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

watsonx MCP Server

MCP server for IBM watsonx.ai integration with Claude Code. Enables Claude to delegate tasks to IBM's foundation models (Granite, Llama, Mistral, etc.).

Features

  • Text Generation - Generate text using watsonx.ai foundation models
  • Chat - Have conversations with watsonx.ai chat models
  • Embeddings - Generate text embeddings
  • Model Listing - List all available foundation models

Available Tools

ToolDescription
watsonx_generateGenerate text using watsonx.ai models
watsonx_chatChat with watsonx.ai models
watsonx_embeddingsGenerate text embeddings
watsonx_list_modelsList available models

Setup

1. Install Dependencies

bash
cd ~/watsonx-mcp-servernpm install

2. Configure Environment

Set these environment variables:

bash
WATSONX_API_KEY=your-ibm-cloud-api-keyWATSONX_URL=https://us-south.ml.cloud.ibm.comWATSONX_SPACE_ID=your-deployment-space-id  # Recommended: deployment spaceWATSONX_PROJECT_ID=your-project-id          # Alternative: project ID

Note: Either WATSONX_SPACE_ID or WATSONX_PROJECT_ID is required for text generation, embeddings, and chat. Deployment spaces are recommended as they have Watson Machine Learning (WML) pre-configured.

3. Add to Claude Code

The MCP server is already configured in ~/.claude.json:

json
{  "mcpServers": {    "watsonx": {      "type": "stdio",      "command": "node",      "args": ["/Users/matthewkarsten/watsonx-mcp-server/index.js"],      "env": {        "WATSONX_API_KEY": "your-api-key",        "WATSONX_URL": "https://us-south.ml.cloud.ibm.com",        "WATSONX_SPACE_ID": "your-deployment-space-id"      }    }  }}

Usage

Once configured, Claude can use watsonx.ai tools:

User: Use watsonx to generate a haiku about coding
Claude: [Uses watsonx_generate tool]Result: Code flows like water       Bugs arise, then disappear       Programs come alive

Available Models

Some notable models available:

  • ibm/granite-3-3-8b-instruct - IBM Granite 3.3 8B (recommended)
  • ibm/granite-13b-chat-v2 - IBM Granite chat model
  • ibm/granite-3-8b-instruct - Granite 3 instruct model
  • meta-llama/llama-3-70b-instruct - Meta's Llama 3 70B
  • mistralai/mistral-large - Mistral AI large model
  • ibm/slate-125m-english-rtrvr-v2 - Embedding model

Use watsonx_list_models to see all available models.

Architecture

Claude Code (Opus 4.5)         │         └──▶ watsonx MCP Server                    │                    └──▶ IBM watsonx.ai API                              │                              ├── Granite Models                              ├── Llama Models                              ├── Mistral Models                              └── Embedding Models

Two-Agent System

This enables a two-agent architecture where:

  1. Claude (Opus 4.5) - Primary reasoning agent, handles complex tasks
  2. watsonx.ai - Secondary agent for specific workloads

Claude can delegate tasks to watsonx.ai when:

  • IBM-specific model capabilities are needed
  • Running batch inference on enterprise data
  • Using specialized Granite models
  • Generating embeddings for RAG pipelines

IBM Cloud Resources

This MCP server uses:

  • Service: watsonx.ai Studio (data-science-experience)
  • Plan: Lite (free tier)
  • Region: us-south

Create your own watsonx.ai project and deployment space in IBM Cloud.

Integration with IBM Z MCP Server

This watsonx MCP server works alongside the IBM Z MCP server:

Claude Code (Opus 4.5)         │         ├──▶ watsonx MCP Server         │         └── Text generation, embeddings, chat         │         └──▶ ibmz MCP Server                   └── Key Protect HSM, z/OS Connect

Demo scripts in the ibmz-mcp-server:

  • demo-full-stack.js - Full 5-service pipeline
  • demo-rag.js - RAG with watsonx embeddings + Granite

Document Analyzer

The document analyzer (document-analyzer.js) provides powerful tools for analyzing your external drive data using watsonx.ai:

Commands

bash
# View document catalog (9,168 documents)node document-analyzer.js catalog
# Summarize a documentnode document-analyzer.js summarize 1002519.txt
# Analyze document type, topics, entitiesnode document-analyzer.js analyze 1002519.txt
# Ask questions about a documentnode document-analyzer.js question 1002519.txt 'What AWS credentials are needed?'
# Generate embeddings for documentsnode document-analyzer.js embed
# Semantic search across documentsnode document-analyzer.js search 'IBM Cloud infrastructure'

Features

  • Summarization: Generate concise summaries of any document
  • Analysis: Extract document type, topics, entities, and sentiment
  • Q&A: Ask natural language questions about document content
  • Embeddings: Generate 768-dimensional vectors for semantic search
  • Semantic Search: Find similar documents using vector similarity

Demo

Run the full demo:

bash
./demo-external-drive.sh

Embedding Index & RAG

The embedding-index.js tool provides semantic search and RAG (Retrieval Augmented Generation):

bash
# Build an embedding index (50 documents)node embedding-index.js build 50
# Semantic searchnode embedding-index.js search 'cloud infrastructure'
# RAG query - retrieves relevant docs and generates answernode embedding-index.js rag 'How do I set up AWS for Satellite?'
# Show index statisticsnode embedding-index.js stats

Batch Processor

The batch-processor.js tool processes multiple documents at once:

bash
# Classify documents into categoriesnode batch-processor.js classify 20
# Extract topics from documentsnode batch-processor.js topics 15
# Generate one-line summariesnode batch-processor.js summarize 10
# Full analysis (classify + topics + summary)node batch-processor.js full 10

Categories: technical, business, creative, personal, code, legal, marketing, educational, other

Files

  • index.js - MCP server implementation
  • document-analyzer.js - Document analysis CLI tool
  • embedding-index.js - Embedding index and RAG tool
  • batch-processor.js - Batch document processor
  • demo-external-drive.sh - Demo script
  • package.json - Dependencies
  • README.md - This file

Author

Matthew Karsten

License

MIT

来源:README.md,提交 ce09136

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分