MCP Server Setup#
Requirements#
Python: 3.12
Installation#
There are three ways to run the MCP server depending on your preferred toolchain.
Using uvx (Recommended)#
The fastest way to get started (no installation required).
If you don’t have uvx, install it first:
pip install uv
Verify it works (this will install all dependencies and may take a few minutes on first run):
uvx --python 3.12 --from ibm_watsonx_data_integration_mcp data-intg-mcp --help
You should see output similar to:
usage: data-intg-mcp [-h] [--clear-cache]
MCP Server for IBM watsonx.data Integration
options:
-h, --help show this help message and exit
--clear-cache Clear all cached documentation before starting (resources_cache/ and docs/)
MCP server configuration:
{
"mcpServers": {
"data-intg-mcp": {
"command": "uvx",
"args": [
"--python",
"3.12",
"--from",
"ibm_watsonx_data_integration_mcp",
"data-intg-mcp"
],
"env": {
"WATSONX_API_KEY": "YOUR_API_KEY"
}
}
}
}
Using uv as a Tool#
If you don’t have uv, install it first:
pip install uv
Install (this will install all dependencies and may take a few minutes):
uv tool install --python 3.12 ibm_watsonx_data_integration_mcp
Verify the installation:
data-intg-mcp --help
You should see output similar to:
usage: data-intg-mcp [-h] [--clear-cache]
MCP Server for IBM watsonx.data Integration
options:
-h, --help show this help message and exit
--clear-cache Clear all cached documentation before starting (resources_cache/ and docs/)
MCP server configuration:
{
"mcpServers": {
"data-intg-mcp": {
"command": "uv",
"args": [
"tool",
"run",
"data-intg-mcp"
],
"env": {
"WATSONX_API_KEY": "YOUR_API_KEY"
}
}
}
}
Using pip with a Virtual Environment#
python3.12 -m venv .venv
source .venv/bin/activate
pip install ibm_watsonx_data_integration_mcp
This will install the MCP server and all its dependencies into the virtual environment.
Verify the installation:
data-intg-mcp --help
You should see output similar to:
usage: data-intg-mcp [-h] [--clear-cache]
MCP Server for IBM watsonx.data Integration
options:
-h, --help show this help message and exit
--clear-cache Clear all cached documentation before starting (resources_cache/ and docs/)
MCP server configuration:
{
"mcpServers": {
"data-intg-mcp": {
"command": "<Path to .venv>/bin/data-intg-mcp",
"args": [],
"env": {
"WATSONX_API_KEY": "YOUR_API_KEY"
}
}
}
}
Client Integration#
Once you’ve added the MCP server configuration to your client, the server will start automatically when the client launches. You’ll know the server has finished initializing when you see the following message in the logs:
[INFO] Documentation bootstrap complete
Claude Desktop#
Navigate to Claude → Settings → Developer → Edit Config and add one of the MCP server configurations above
to your claude_desktop_config.json file.
Bob (VS Code)#
Navigate to VS Code → Open Bob → Settings (⚙️) → MCP → Open Global MCPs and add one of the MCP server configurations above to your Bob MCP config file.
Windows UTF-8 Configuration#
Important
Windows users must set the PYTHONUTF8 environment variable to avoid encoding errors when the server loads skill files.
Due to a limitation in fastmcp 3.2.4, the MCP server requires UTF-8 encoding to properly load skill files that contain emoji and special characters. On Windows, the default encoding is cp1252, which cannot decode UTF-8 characters like ✅, ❌, and → used in the skill documentation.
Add this to your MCP configuration on Windows:
{
"mcpServers": {
"data-intg-mcp": {
"command": "...",
"args": [...],
"env": {
"PYTHONUTF8": "1",
"WATSONX_API_KEY": "YOUR_API_KEY"
}
}
}
}
Why is this needed?
Windows defaults to cp1252 encoding, which cannot decode UTF-8 emoji in SKILL.md files
Setting
PYTHONUTF8=1forces Python to use UTF-8 encoding for all file operationsWithout this setting, the server will fail to start on Windows with a
UnicodeDecodeError
This applies to all installation methods (uvx, uv tool, pip install) when running on Windows.
Authentication#
The server supports both SaaS (IBM Cloud) and On-Premises (Cloud Pak for Data) authentication. It automatically detects which authentication method to use based on the environment variables you set.
SaaS Authentication (IBM Cloud)#
For SaaS deployments, set the WATSONX_API_KEY environment variable in the env block of your MCP client configuration:
{
"mcpServers": {
"data-intg-mcp": {
"command": "...",
"args": [...],
"env": {
"WATSONX_API_KEY": "your-ibm-cloud-api-key"
}
}
}
}
Note
For information on how to generate an IBM Cloud API key, see Authentication.
On-Premises Authentication (Cloud Pak for Data)#
For On-Premises deployments, you have two authentication options:
Option 1: Username + Password
{
"mcpServers": {
"data-intg-mcp": {
"command": "...",
"args": [...],
"env": {
"CP4D_USERNAME": "your-username",
"CP4D_PASSWORD": "your-password",
"CP4D_URL": "https://your-cp4d-cluster.com",
"CP4D_DISABLE_SSL_VERIFICATION": "false"
}
}
}
}
Option 2: Username + Zen API Key
{
"mcpServers": {
"data-intg-mcp": {
"command": "...",
"args": [...],
"env": {
"CP4D_USERNAME": "your-username",
"ZEN_API_KEY": "your-zen-api-key",
"CP4D_URL": "https://your-cp4d-cluster.com",
"CP4D_DISABLE_SSL_VERIFICATION": "false"
}
}
}
}
Note
SSL Verification:
CP4D_DISABLE_SSL_VERIFICATION: Set to"true"to disable SSL certificate verification for On-Premises deployments (useful for self-signed certificates). Default is"false".
Configuring TLS for On-Premises Deployments#
If your On-Premises cluster uses self-signed certificates or custom Certificate Authorities (CA), you may need to configure TLS properly instead of disabling SSL verification. Here’s how to set up TLS:
Step 1: Log in to your OpenShift cluster
oc login <CLUSTER_URL>
Step 2: Extract the cluster’s CA certificate
openssl s_client -showcerts \
-connect <CLUSTER>:443 </dev/null > ca.crt
Replace <CLUSTER> with your cluster hostname (e.g., your-cp4d-cluster.com).
Step 3: Clean up the certificate file
Open the ca.crt file and remove all text except the certificate blocks. The file should only contain lines like:
-----BEGIN CERTIFICATE-----
[certificate content]
-----END CERTIFICATE-----
Remove any connection information, verification messages, or other output from the openssl command.
Step 4: Configure the MCP server to use the CA certificate
Add the REQUESTS_CA_BUNDLE environment variable to your MCP server configuration, pointing to the cleaned ca.crt file:
{
"mcpServers": {
"data-intg-mcp": {
"command": "...",
"args": [...],
"env": {
"CP4D_USERNAME": "your-username",
"CP4D_PASSWORD": "your-password",
"CP4D_URL": "https://your-cp4d-cluster.com",
"CP4D_DISABLE_SSL_VERIFICATION": "false",
"REQUESTS_CA_BUNDLE": "/path/to/ca.crt"
}
}
}
}
Replace /path/to/ca.crt with the absolute path to your cleaned certificate file.
Authentication Detection Priority:
SaaS (IAMAuthenticator) - if
WATSONX_API_KEYis setOn-Premises (ICP4DAuthenticator) - if
CP4D_USERNAMEandCP4D_PASSWORDare setOn-Premises (ZenApiKeyAuthenticator) - if
CP4D_USERNAMEandZEN_API_KEYare set
The server validates authentication credentials on startup and will display which authentication method was detected.