Skip to main content
Glama
watsonx Platform MCP Server

watsonx Platform MCP Server

by manjotsidhu

watsonx Platform MCP Server

An MCP server exposing IBM watsonx's Common Core Services (CCS) — Projects, Assets, Connections, Jobs — so that other products, agents, and AI assistants can discover, build in, and deploy to the watsonx platform (SaaS and CPD on-prem) through a single, product-agnostic interface.

Status

v1 implemented, Python + the official MCP SDK, stdio transport. See spec/ for the full source-of-truth contract this implementation follows — read it before changing tool behavior.

Related MCP server: IBM watsonx.data MCP Server

Install & run

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Run directly:

watsonx-platform-mcp

or python -m watsonx_platform_mcp.server. It speaks MCP over stdio — point your MCP client (Claude Code, Claude Desktop, etc.) at that command.

Auth: call authenticate, or bootstrap from env vars

Every other tool operates against the current session; there's no per-call credential parameter. Call authenticate first, or set env vars for local stdio use — the server auto-authenticates on the first tool call if these are present:

Env var

Required

Notes

WX_ENVIRONMENT

yes

saas or cpd

WX_APIKEY

usually

IBM Cloud apikey (saas) or platform API key (cpd)

WX_USERNAME

cpd only

required for cpd

WX_URL_OR_REGION

yes

saas: region code (default us-south); cpd: full cluster base URL

WX_PASSWORD

no

cpd fallback only, used instead of WX_APIKEY for the /v1/authorize bearer flow

WX_PREFER_ZEN_API_KEY

no

cpd only, default true

WX_VERIFY_SSL

no

default true; set false to skip TLS verification for WX_URL_OR_REGION — see below

WX_CA_BUNDLE_PATH

no

path to a CA bundle/cert to trust for WX_URL_OR_REGION, instead of disabling verification

WX_PASSWORD/WX_PREFER_ZEN_API_KEY/WX_VERIFY_SSL/WX_CA_BUNDLE_PATH are extensions beyond the four vars named explicitly in spec/01-auth-and-environments.md, added for parity with authenticate's full parameter set (the spec's "Local convenience" bootstrap section names only the first four).

Self-signed / internal-CA certificates (CPD)

CPD clusters commonly serve a self-signed or internal-CA certificate that isn't in a default trust store, which otherwise makes every tool call fail with a TLS verification error. This isn't part of the spec (which covers API request/response shapes, not client TLS config) — it's a client-side option this server adds on top:

  • authenticate's verify_ssl parameter (or WX_VERIFY_SSL=false) skips TLS verification for calls to region_or_url (the CPD cluster itself, including its own /v1/authorize). It does not affect the SaaS IAM token endpoint, which is always a public IBM-operated host and is always verified.

  • Prefer ca_bundle_path (or WX_CA_BUNDLE_PATH) when you have the cluster's CA certificate — it validates against that CA instead of skipping verification outright, and takes precedence over verify_ssl when both are set.

  • Disabling verification removes protection against man-in-the-middle attacks on that connection; only do this for a cluster/network you trust. authenticate logs an MCP warning and echoes tls_verify in its response whenever verification is off, so it's never silent.

Session state is per-connection, never a module-level global — it's attached to the MCP SDK's per-connection ServerSession object (watsonx_platform_mcp/session.py). This is a hard design constraint from the spec: the same code should work unmodified under a future remote/multi-tenant transport, even though v1 only ships stdio.

Tool confidence tiers

Every tool is implemented; confidence varies because the spec's own live validation varied. Docstrings on each tool repeat these caveats — this table is just the map.

Production-confident (Phase 1 — live-verified against a real CPD cluster and non-production SaaS tenant)

authenticate · list_projects · get_project · create_project · update_project · delete_project · list_assets · get_asset · create_asset (generic asset_type case)

Also production-grade as cross-cutting layers: pagination normalization (3 confirmed native shapes), error normalization (5 confirmed native error envelopes + HTTP 460), and credential redaction (applied generically to every tool's output, not per-tool).

Confirmed live, happy-path only (Phase 2)

create_job (simple asset_ref shape only — configuration is a fully opaque pass-through so the unverified Spark-style asset_ref_type shape can flow through without a code change) · list_jobs · get_job · delete_job · create_connection (⚠️ actively tests credentials live against the target system — fails with HTTP 460 on bad credentials; cannot be used speculatively) · list_connections · get_connection · list_connection_types

Experimental — low-confidence or entirely untested (Phase 3)

Implemented from the spec's contract, but treat the exact shapes as provisional pending a live re-verification pass:

  • upload_asset_file — live-verified on CPD (multipart file PUT, then asset + referenced attachment); not tested on SaaS.

  • run_spark_script, delete_asset, create_job(inject_wxd_credentials) — live-verified on CPD (catalog queries not exercised); not tested on SaaS.

  • get_job_run_logs — live-verified on CPD (Spark jobs); not tested on SaaS.

  • update_job — the JSON-Patch request format is confirmed, but two live attempts to actually change a job's schedule value had no visible effect.

  • list_job_runs, get_job_run, cancel_job_run, create_job_run — from an unverified example request, not independently re-verified live.

  • update_connection, delete_connection — never tested (creating a real connection to test against requires genuine external-system credentials).

  • list_project_members, add_project_member, update_project_member, remove_project_member — zero testing done during spec validation; every field name and endpoint is an unverified assumption.

Testing

pip install -e ".[dev]"
pytest

Unit tests mock HTTP responses using the real captured payloads and error envelopes quoted verbatim in spec/02-tools.md/spec/03-conventions.md. Phase 3 tools have unit tests for the plumbing this server controls (request shapes, confirm-guard enforcement), plus explicitly @pytest.mark.skip integration stubs for behavior that can't be known without a live cluster — see tests/test_phase3_experimental.py.

References

Spec index

Contributing

See CONTRIBUTING.md and the Code of Conduct. Report security issues privately as described in SECURITY.md.

License

Licensed under the Apache License 2.0.

Available Tools

29 tools
add_project_memberB

EXPERIMENTAL — untested. Wraps POST /v2/projects/{id}/members. identity is forwarded as-is (IAM id / username / service-id) — the exact expected request field name isn't confirmed; sent under a generically-named key.

Inputs: role (required), identity (required), project_id (required).

authenticateA
Idempotent

Establish (or replace) this session's target environment and credentials.

All other tools operate against the current authenticated session — there is no per-call credential parameter. Calling this again replaces the session's target; v1 supports one active target per session, not multiple concurrent ones.

Inputs: environment (required), region_or_url (required), stage, apikey, +5 more.

cancel_job_runC
DestructiveIdempotent

EXPERIMENTAL — from an unverified example request. Confirmed to be POST (not DELETE) in that example: POST /v2/jobs/{id}/runs/{run_id}/cancel?project_id=.... A separate DELETE .../runs/{run_id} endpoint also exists and is distinct from cancel (presumably deletes the run record instead of stopping it) — not exposed as its own tool in v1.

NOTE: confirm isn't listed in 02-tools.md's per-tool contract for this one, but 03-conventions.md's blanket destructive-operation rule ("any cancel_* tool requires confirm: true") applies here too — added for consistency with that stated hard requirement.

Inputs: job_id (required), run_id (required), project_id (required), confirm.

create_assetC

Generic asset creation — confirmed live at POST /v2/assets?project_id=... (not /transactional/v2/assets, which is 404). asset_id is present directly at the top level of the response, no defensive extraction needed for this one.

Inputs: name (required), asset_type (required), project_id (required), attributes, +1 more.

create_connectionA

IMPORTANT: this call actively tests the supplied credentials against the live external system at creation time and fails with a non-standard HTTP 460 ("connection_test_failed", non-retryable) if they don't work — confirmed live. It cannot be used speculatively or with placeholder credentials; only call it with genuinely reachable external-system credentials. properties may contain secrets (e.g. an access key) — they are forwarded to the API but never echoed back in this tool's output.

Inputs: name (required), project_id (required), properties (required), datasource_type (required), +1 more.

create_jobC

Wraps POST /v2/jobs?project_id=... — confirmed live. Request body is {"job": {...}}.

Inputs: name (required), job_type (required), project_id (required), schedule, +3 more.

create_job_runA

EXPERIMENTAL — from an unverified example request. Wraps POST /v2/jobs/{id}/runs?project_id=..., body {"job_run": {...}} (confirmed wrapper key in that example — NOT {"run": {...}}). Returns immediately with the run's current state; does not block until completion (see spec/03-conventions.md "Async operations"). Poll get_job_run/list_job_runs.

Inputs: job_id (required), project_id (required), configuration.

create_projectD

Inputs: name (required), type, public, storage, +2 more.

delete_connectionD
DestructiveIdempotent

EXPERIMENTAL — Phase 3, never tested at all (spec/02-tools.md).

Inputs: project_id (required), connection_id (required), confirm.

delete_jobC
DestructiveIdempotent

Confirmed live: 204, via the dedicated /v2/jobs/{id} path (the generic asset-delete path also works, since jobs are assets, but this uses the dedicated form for clarity).

Inputs: job_id (required), project_id (required), confirm.

delete_projectC
DestructiveIdempotent

Confirmed live: 204, immediate, cascades to the project's assets/jobs (not independently verified whether it cascades to connections/members).

Inputs: project_id (required), confirm.

get_assetC
Read-only

Full asset metadata document (attachments, attributes, relationships).

Inputs: asset_id (required), project_id (required).

get_connectionD
Read-only

Inputs: project_id (required), connection_id (required).

get_jobD
Read-only

Inputs: job_id (required), project_id (required).

get_job_runC
Read-only

EXPERIMENTAL — from an unverified example request. Wraps GET /v2/jobs/{id}/runs/{run_id}?project_id=.... A related GET .../runs/{run_id}/logs endpoint was also seen but is not called here — not one of the 13 capabilities as a separate tool in v1.

Inputs: job_id (required), run_id (required), project_id (required).

get_projectB
Read-only

Full project document. Redacted: entity.storage.properties.credentials and similarly-named secret fields are stripped — confirmed live that SaaS can embed real COS/S3 credentials here (see spec/03-conventions.md).

Inputs: project_id (required).

list_assetsC
Read-only

Wraps POST /v2/asset_types/asset/search — envelope {total_rows, results} confirmed live. NOTE: the exact query-DSL field names used below (asset.asset_type / asset.name) are inferred from the general watsonx asset search pattern, not independently confirmed in the spec — only the response envelope shape itself is confirmed. Re-verify the filter syntax against a live cluster with real data if filtered results look wrong.

Inputs: project_id (required), limit, cursor, asset_type, +1 more.

list_connectionsD
Read-only

Native envelope confirmed live: {resources: [], first: {href}, total_count} — a third, HAL-style pagination shape distinct from projects and asset search.

Inputs: project_id (required), limit, cursor, name_contains.

list_connection_typesD
Read-only

Wraps GET /v2/datasource_types.

Inputs: name_contains.

list_job_runsC
Read-only

EXPERIMENTAL — from an unverified example request. Wraps GET /v2/jobs/{id}/runs?project_id=...

Inputs: job_id (required), project_id (required), limit, cursor.

list_jobsC
Read-only

Wraps GET /v2/jobs?project_id=.... NOTE: the exact native pagination envelope for this endpoint isn't pinned down in the spec (only that the read path itself is confirmed reachable) — defensively checks the resources/results/items keys, matching whichever shape jobs (as assets) actually use.

Inputs: project_id (required), limit, cursor, name_contains.

list_project_membersC
Read-only

EXPERIMENTAL — untested. Wraps GET /v2/projects/{id}/members.

Inputs: project_id (required), limit, cursor.

list_projectsB
Read-only

List projects, flattened to {id, name, description, created_at, updated_at, type, creator, public}.

Inputs: type, limit, cursor, name_contains.

remove_project_memberC
DestructiveIdempotent

EXPERIMENTAL — untested. Wraps DELETE /v2/projects/{id}/members/{member_id}. Same unverified identity-as-member_id assumption as update_project_member.

Inputs: identity (required), project_id (required), confirm.

update_connectionC
Idempotent

EXPERIMENTAL — Phase 3, never tested at all (spec/02-tools.md). Assumes the same flat partial-object PATCH body as update_project; this is an assumption, not a confirmed fact — update_connection's PATCH format could just as easily match update_job's JSON-Patch-array format instead. Re-verify live once real external-system credentials are available to create a connection to test against.

Inputs: project_id (required), connection_id (required), name, properties, +1 more.

update_jobC
Idempotent

EXPERIMENTAL for schedule edits — Phase 3 (spec/02-tools.md).

The JSON-Patch (RFC 6902) body format is confirmed live: PATCH /v2/jobs/{id} rejects a flat object and requires an array. BUT two separate live attempts to change an existing job's schedule via this PATCH (tried both /job/schedule and /schedule as the path) returned 200 without visibly changing the stored schedule value on a follow-up GET. Treat schedule edits made through this tool as unverified — name/ configuration edits use the same confirmed format but weren't the specific field that failed to change, so they're more likely to work.

Inputs: job_id (required), project_id (required), name, schedule, +1 more.

update_projectC
Idempotent

PATCH with a flat, partial JSON object — confirmed live. NOTE: this PATCH body format is specific to projects; update_job needs a JSON Patch array instead (see spec/03-conventions.md).

Inputs: project_id (required), name, description.

update_project_memberC
Idempotent

EXPERIMENTAL — untested. Wraps PATCH /v2/projects/{id}/members/{member_id}. NOTE (unverified assumption): 02-tools.md's contract takes identity as input but the endpoint path uses {member_id} — no separate identity-to-member_id lookup is documented anywhere, so identity is used directly as the member_id path segment. This may be wrong; re-verify live.

Inputs: role (required), identity (required), project_id (required).

upload_asset_fileC

EXPERIMENTAL — Phase 3 / low-confidence (spec/02-tools.md).

Only the create-data-asset step is verified live. The attachment-creation body shape is from a real example request, not independently re-verified. The signed-URL PUT and "complete" steps are entirely unconfirmed — this implementation is a best-effort, defensive sequence that should be re-verified against a live cluster before being relied on. If it fails partway through, the data asset (and possibly a dangling attachment record) may be left behind — this tool does not attempt rollback.

Inputs: name (required), project_id (required), file_path, mime_type, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.5/5.0

    Scored across 29 tools

    Disambiguation4/5

    Tools are mostly cleanly separated by resource+action (projects, connections, jobs, job runs, assets, members). Some conceptual overlap exists because jobs are a kind of asset (get_job vs get_asset, delete_job but no delete_asset) and the run sub-resources (create/get/list/cancel_job_run) sit close to the job tools, but descriptions clarify intent.

    Naming Consistency4/5

    Nearly all tools follow a predictable verb_noun snake_case pattern (list_projects, create_job_run, delete_connection). Minor deviations: members use add/remove_project_member while other resources use create/delete, and 'authenticate' is a bare verb with no noun.

    Tool Count3/5

    At 29 tools this sits above the comfortable range, and several are flagged EXPERIMENTAL/untested. The breadth is partly justified by covering six distinct sub-domains (projects, connections, jobs, runs, assets, members), but the surface feels heavy and could be trimmed.

    Completeness4/5

    Most resources have full lifecycle coverage: projects (CRUD), connections (CRUD + types), jobs (CRUD), job runs (create/get/list/cancel), and members (list/add/update/remove). The notable gap is generic assets, which have create/get/list but no update or delete, and no job-run logs tool.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to interact seamlessly with IBM watsonx.data lakehouses using natural language for operations like querying, catalog browsing, engine management, and data ingestion.
      39
      180 PyPI
      9
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants directly to IBM Maximo so they can discover APIs, inspect schemas, query live data, generate Carbon UI, and create, update, or act on Maximo records through natural language.
      Apache 2.0