watsonx Platform MCP Server
Summary: Exposes IBM watsonx Common Core Services (projects, assets, connections, jobs) as MCP tools so agents can discover, build in, and deploy to the watsonx platform (SaaS or CPD) after authenticating one session target.
Authenticate — set/replace the session's environment (
saas/cpd), region or cluster URL, credentials, and TLS options (verify_ssl / ca_bundle_path); all other tools use that session, no per-call credentials.Projects — list (filter by type/name), get, create (with environment-specific storage), update (name/description), delete (cascading, requires
confirm).Assets — list/search by type or name within a project, get full metadata, create generic typed assets, and (experimental) upload a file as a data asset.
Connections — list datasource types, list/get connections, create (validates credentials live against the external system, can fail with HTTP 460), plus experimental update/delete.
Jobs — create (simple asset_ref or opaque rich config), list, get, delete; update via JSON-Patch (schedule edits unverified).
Job runs — list, get, create (async, non-blocking), and cancel a run (requires
confirm).Project members — list, add, update role, remove (all experimental/untested).
Cross-cutting behavior — normalized pagination and error handling, generic secret redaction on outputs, and destructive/cancel operations gated by a
confirmflag; confidence varies by tool (production-verified, happy-path only, or experimental).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@watsonx Platform MCP Server list the assets in my Customer Churn watsonx project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpor 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 |
| yes |
|
| usually | IBM Cloud apikey (saas) or platform API key (cpd) |
| cpd only | required for cpd |
| yes | saas: region code (default |
| no | cpd fallback only, used instead of |
| no | cpd only, default |
| no | default |
| no | path to a CA bundle/cert to trust for |
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'sverify_sslparameter (orWX_VERIFY_SSL=false) skips TLS verification for calls toregion_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(orWX_CA_BUNDLE_PATH) when you have the cluster's CA certificate — it validates against that CA instead of skipping verification outright, and takes precedence oververify_sslwhen 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.
authenticatelogs an MCP warning and echoestls_verifyin 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'sschedulevalue 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]"
pytestUnit 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
CCS API docs (SaaS): https://cloud.ibm.com/docs/apis/data-ai-common-core
cpdctlcommand reference (Go CLI over the same APIs): https://github.com/IBM/cpdctl/blob/master/README_command_reference.md
Spec index
spec/00-overview.md— purpose, scope, non-goals, architecture, roadmapspec/01-auth-and-environments.md— SaaS/CPD auth, session/target modelspec/02-tools.md— full MCP tool catalog with I/O contractsspec/03-conventions.md— pagination, error handling, security conventionsspec/04-environment-differences.md— Software/CPD vs SaaS payload differences (storage config, write-path routing, etc.)
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 toolsadd_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).
authenticateAIdempotent
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_runCDestructiveIdempotent
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_connectionDDestructiveIdempotent
EXPERIMENTAL — Phase 3, never tested at all (spec/02-tools.md).
Inputs: project_id (required), connection_id (required), confirm.
delete_jobCDestructiveIdempotent
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_projectCDestructiveIdempotent
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_assetCRead-only
Full asset metadata document (attachments, attributes, relationships).
Inputs: asset_id (required), project_id (required).
get_connectionDRead-only
Inputs: project_id (required), connection_id (required).
get_jobDRead-only
Inputs: job_id (required), project_id (required).
get_job_runCRead-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_projectBRead-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_assetsCRead-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_connectionsDRead-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_typesDRead-only
Wraps GET /v2/datasource_types.
Inputs: name_contains.
list_job_runsCRead-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_jobsCRead-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_membersCRead-only
EXPERIMENTAL — untested. Wraps GET /v2/projects/{id}/members.
Inputs: project_id (required), limit, cursor.
list_projectsBRead-only
List projects, flattened to {id, name, description, created_at, updated_at, type, creator, public}.
Inputs: type, limit, cursor, name_contains.
remove_project_memberCDestructiveIdempotent
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_connectionCIdempotent
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_jobCIdempotent
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_projectCIdempotent
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_memberCIdempotent
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
Scored across 29 tools
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.
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.
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.
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
Related MCP Connectors
Build, validate, and deploy multi-agent AI solutions from any AI environment.
One place to build, share, and govern the skills and tools your AI agents use at work.
Connect assistants to your workspace knowledge, skills, and work tools.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceBridges AI agents with watsonx.data document libraries, enabling natural language queries and intelligent retrieval from document libraries.12 PyPI5Apache 2.0
IBM watsonx.data MCP Serverofficial
AlicenseBqualityBmaintenanceEnables AI assistants to interact seamlessly with IBM watsonx.data lakehouses using natural language for operations like querying, catalog browsing, engine management, and data ingestion.39180 PyPI9Apache 2.0
ibm-watsonx-gov-catalog-mcpofficial
AlicenseNot gradedqualityDmaintenanceBridges AI agents with tools on IBM watsonx governed agentic catalog, enabling secure governance and tool invocation via the Model Context Protocol.2Apache 2.0- AlicenseNot gradedqualityCmaintenanceConnects 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