loading…
Search for a command to run...
loading…
Bridges AI agents with watsonx.data document libraries, enabling natural language queries and intelligent retrieval from document libraries.
Bridges AI agents with watsonx.data document libraries, enabling natural language queries and intelligent retrieval from document libraries.
The Watsonx.data Document Library Retrieval MCP Server is a Model Context Protocol (MCP)-compliant service that seamlessly connects AI agents with document libraries in watsonx.data, enabling intelligent data retrieval and interaction.
Dynamic Discovery & Registration
Automatically detects and registers document libraries as MCP tools.
Natural Language Interface
Query document libraries using conversational language and receive human-readable responses.
Minimal Configuration
Deploy with simple setup requirements and zero complex configurations.
Framework-Agnostic Integration
Plug directly into the preferred agentic frameworks with native MCP compatibility.
Login to your OpenShift cluster:
oc login -u kubeadmin -p '<your_openshift_password>' https://<your_openshift_cpd_url>:6443
Extract the root CA bundle:
oc get configmap kube-root-ca.crt -o jsonpath='{.data.ca\.crt}' > cabundle.crt
NOTE: Please use open shift login command. The user and password will be open shift portal login username and password
python -m venv .venv
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
uv package managerpip install uv
uv package: https://pypi.org/project/uv/pip install ibm-watsonxdata-dl-retrieval-mcp-server
export CPD_ENDPOINT="<cpd-endpoint>"
export CPD_USERNAME="<cpd-username>"
export CPD_PASSWORD="<cpd-password>"
export CA_BUNDLE_PATH="<absolute_path_to_cabundle.crt>"
export LH_CONTEXT="CPD"
NOTE:
export WATSONX_DATA_API_KEY="<api-key>"
export WATSONX_DATA_RETRIEVAL_ENDPOINT="<retrieval-service-endpoint>"
export DOCUMENT_LIBRARY_API_ENDPOINT="<document-library-endpoint>"
export WATSONX_DATA_TOKEN_GENERATION_ENDPOINT="<token-generation-endpoint>"
export LH_CONTEXT="SAAS"
NOTE:
uv run ibm-watsonxdata-dl-retrieval-mcp-server
By default, the server runs in sse transport mode on port 8000.
uv run ibm-watsonxdata-dl-retrieval-mcp-server --port <desired_port> --transport sse
uv run ibm-watsonxdata-dl-retrieval-mcp-server --port <desired_port> --transport stdio
Prerequisite:
Install WXO ADK and complete the initial setup. Refer documentation for more details: https://developer.watson-orchestrate.ibm.com
To add the MCP server in stdio transport with WXO refer the example below.
orchestrate connections add -a <app id>
orchestrate connections configure --app-id <app id> --environment draft -t team -k key_value
orchestrate connections set-credentials --app-id=<app id> --env draft -e WATSONX_DATA_API_KEY="<api_key>" -e WATSONX_DATA_RETRIEVAL_ENDPOINT="<wxd retrieval endpoint>" -e DOCUMENT_LIBRARY_API_ENDPOINT="<DL endpoint>" -e WATSONX_DATA_TOKEN_GENERATION_ENDPOINT="<token generation endpoint>" -e LH_CONTEXT="SAAS"
Example for Saas:
orchestrate toolkits import \
--kind mcp \
--name "mcp-toolkit" \
--description "mcp server for watsonx retrival service" \
--package "ibm-watsonxdata-dl-retrieval-mcp-server" \
--command "uv run ibm-watsonxdata-dl-retrieval-mcp-server --port <port> --transport stdio" \
--language python \
--tools "*" \
--app-id <app id>
pip install mcp-proxy
Once prerequisites are met, the tools can be added as toolkit in WXO.
Example :
orchestrate toolkits import \
--kind mcp \
--name mcp_toolkit \
--description "MCP server (hosted, SSE)" \
--package "mcp-proxy" \
--language python \
--command "uvx mcp-proxy https://<mcp server endpoint>/sse" \
--tools "*"
NOTE:
When running wxo in SAAS and MCP server locally, expose the mcp server endpoint if required.
Refer wxo documentation for more details: https://www.ibm.com/docs/en/watsonx/watson-orchestrate/base?topic=tools-importing-from-mcp-server
For more examples on using Watsonx.data Document Library Retrieval MCP Server with agentic framework refer examples
Each document library is registered with a unique tool name:
tool_name = <library_name><library_id>
Example:
invoice_document_library77e4b4dd_479e_4406_acc4_ce154c96266c
Выполни в терминале:
claude mcp add watsonx-data-document-library-retrieval-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.