@three-ws/ibm-x402-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WATSONX_URL | No | IBM watsonx.ai URL (default: https://us-south.ml.cloud.ibm.com). | |
| WATSONX_API_KEY | Yes | IBM Cloud API key for watsonx.ai. | |
| WATSONX_MODEL_ID | No | Granite model ID for chat (default: ibm/granite-3-8b-instruct). | |
| WATSONX_SPACE_ID | No | watsonx.ai deployment space ID (alternative to WATSONX_PROJECT_ID). | |
| WATSONX_PROJECT_ID | No | watsonx.ai project ID (alternative to WATSONX_SPACE_ID). | |
| X402_FACILITATOR_URL | No | x402 facilitator URL (default: https://facilitator.payai.network). | |
| X402_FEE_PAYER_SOLANA | No | Solana address of the fee payer (default: three.ws fee payer). | |
| WATSONX_EMBED_MODEL_ID | No | Granite embedding model ID (default: ibm/granite-embedding-278m-multilingual). | |
| MCP_SVM_PAYMENT_ADDRESS | Yes | Solana wallet address to receive USDC payments. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
x402 pay-per-use IBM Granite AI tools from three.ws. Each tool lists its USDC price. New here? Call ibm_granite_getting_started (free, no payment) for an overview, prices, and the payment flow. Tool calls without an x402 payment payload in _meta return a PaymentRequired envelope (v2 MCP transport spec). Tools: ibm_granite_getting_started (FREE — overview & how to pay), ibm_granite_chat ($0.02 — conversational AI), ibm_granite_code ($0.025 — generate/review/refactor/explain/test/document code), ibm_granite_embed ($0.005 — batch embeddings for RAG/search), ibm_granite_analyze ($0.04 — structured document analysis), ibm_granite_forecast ($0.05 — zero-shot time-series forecasting). No IBM Cloud account required — pay USDC on Solana. Powered by IBM Granite foundation models.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ibm_granite_getting_startedA | FREE — start here. Returns an overview of this server: the IBM Granite tools available, their per-call USDC prices, how the x402 pay-per-call flow works, setup requirements, and runnable example calls. No payment required. Call this first to orient before invoking a paid tool. |
| ibm_granite_chatA | Chat completion powered by IBM Granite foundation models (default: ibm/granite-3-8b-instruct). Send a conversation as role/content message pairs and receive the assistant reply with token usage. Use this for open-ended conversation or free-form text generation; for code tasks call ibm_granite_code, and for structured JSON extraction call ibm_granite_analyze. No IBM Cloud account required — pay $0.02 USDC per call via x402. |
| ibm_granite_codeA | Code generation, review, refactoring, and explanation via IBM Granite instruct models. Provide a task type and code/prompt; receive the generated or reviewed code with explanation. Use this when the input is source code or a request to write code; for general conversation call ibm_granite_chat instead. No IBM Cloud account required — pay $0.025 USDC per call via x402. |
| ibm_granite_embedA | Generate embedding vectors for one or more texts using IBM Granite (default: ibm/granite-embedding-278m-multilingual). Returns one float array per input, suitable for semantic search, RAG retrieval, and similarity scoring. Use this to index documents or compare texts by meaning; it returns vectors, not prose, so call ibm_granite_chat when you need a written answer. Up to 64 texts per call. No IBM Cloud account required — pay $0.005 USDC per call via x402. |
| ibm_granite_analyzeA | Structured document analysis powered by IBM Granite: extract entities, sentiment, risk signals, a concise summary, and recommended next steps from any text (contracts, reports, emails, code reviews, etc.). Returns a machine-readable JSON analysis. Use this when you need machine-readable fields (entities, sentiment, risks) from a document rather than the free-text reply ibm_granite_chat gives. No IBM Cloud account required — pay $0.04 USDC per call via x402. |
| ibm_granite_forecastA | Zero-shot time-series forecasting via IBM Granite TTM (Tiny Time Mixer). Provide a numeric series with ISO-8601 timestamps and a cadence, receive the forecast horizon. No training required. Suitable for revenue, traffic, sensor, energy, and financial series. Use this to project a numeric series of at least 64 timestamped points forward; it returns numbers only, so pass the result to ibm_granite_analyze if you need commentary. No IBM Cloud account required — pay $0.05 USDC per call via x402. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct Granite capability: chat for free-form text, analyze for structured JSON extraction, code for source-code tasks, forecast for time-series, embed for vectors, and getting_started for orientation. The descriptions explicitly cross-reference siblings (e.g., 'for code tasks call ibm_granite_code') to steer away from misselection.
All six tools share a predictable ibm_granite_ prefix with a short descriptive suffix. Minor deviation: getting_started is a phrase while the others are single nouns/verbs, but the overall pattern remains clear and readable.
Six tools is well-scoped for a pay-per-call Granite model gateway: one tool per model modality plus a free onboarding tool. Nothing is redundant and each tool has a clear, distinct role.
Covers the main Granite modalities — chat, code, embeddings, forecasting, and structured document analysis — plus free setup guidance. Minor gaps: no explicit model-list/selection tool and no batch chat beyond embed's 64-text limit, but agents can orient via getting_started.