A Model Context Protocol (MCP) server for IBM Master Data Management (MDM) services
Project description
IBM MDM MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with seamless access to IBM Master Data Management (MDM) services through standardized REST API interactions.
๐ฏ Overview
This MCP server enables AI assistants like Claude to interact with IBM MDM services(formarly known as IBM Match 360), allowing users to search records, retrieve data models, and manage master data through natural language conversations. The server acts as a bridge between AI assistants and IBM MDM, exposing enterprise data management capabilities through the Model Context Protocol.
Key Features
- ๐ MCP Protocol Support - Standard interface for AI assistant integration
- ๐ Multi-Platform - Supports IBM MDM SaaS on IBM Cloud and IBM MDM on Software Hub
- ๐ Secure Authentication - Token-based authentication with automatic caching
- ๐ ๏ธ Flexible Tool Modes - Minimal or full tool exposure based on use case
- ๐ Type-Safe - Built with Pydantic models for robust data validation
- ๐๏ธ Clean Architecture - Layered design with adapter pattern for maintainability
๐ Table of Contents
- Prerequisites
- Installation
- Configuration
- Usage
- Integration with Claude Desktop
- Running the Server
- Available Tools
- Sample Queries
- Testing
- Architecture
- Troubleshooting
- Contributing
- Publishing to PyPI
- License
Prerequisites
Before you begin, ensure you have:
- Python 3.10+ - Download here
- Git - Installation guide
- IBM MDM Instance - Access to IBM MDM SaaS (IBM Cloud) or IBM MDM on Software Hub with credentials ready
- Claude Desktop (Optional) - Download here if you want AI assistant integration
๐ Need help getting started? See the detailed Setup Guide for step-by-step instructions on installing prerequisites and obtaining IBM MDM credentials.
๐ Security Note (IBM Cloud only): Generate a dedicated API key specifically for this MCP server - do not reuse existing API keys from other applications.
Installation
Choose the installation method that best fits your needs:
Option 1: Install from PyPI (Recommended)
The easiest way to install the IBM MDM MCP Server is via PyPI:
pip install ibm-mdm-mcp-server
After installation, you can run the server directly:
ibm_mdm_mcp_server
Note: You'll still need to configure your credentials. See the Configuration section below.
Option 2: Quick Start with Setup Wizard
For development or customization, clone the repository and use the automated setup:
# Clone the repository
git clone https://github.com/IBM/mdm-mcp-server.git
cd mdm-mcp-server
# Run the setup wizard
python setup_wizard.py
The setup wizard will guide you through:
- Virtual environment creation and dependency installation
- Platform selection (IBM Cloud or Software Hub)
- Credential configuration
- Tool mode selection (minimal or full)
- Setup mode selection (Claude Desktop or HTTP)
Setup Options:
python setup_wizard.py # Interactive setup (recommended)
python setup_wizard.py --claude # Claude Desktop integration only
python setup_wizard.py --http # HTTP mode only (for MCP Inspector)
๐ For detailed setup instructions, see the Setup Guide
Option 3: Manual Installation
For advanced users or custom deployments, see the Manual Installation Guide.
Configuration
After installation, configure your IBM MDM credentials:
Using Environment Variables
Create a .env file in your working directory or set environment variables:
For IBM MDM SaaS on IBM Cloud:
M360_TARGET_PLATFORM=cloud
API_CLOUD_BASE_URL=<your_mdm_base_url>
API_CLOUD_AUTH_URL=https://iam.cloud.ibm.com/identity/token
API_CLOUD_API_KEY=<your_api_key>
API_CLOUD_CRN=<your_instance_crn>
MCP_TOOLS_MODE=minimal
For IBM MDM on Software Hub:
M360_TARGET_PLATFORM=cpd
API_CPD_BASE_URL=<your_cpd_base_url>
API_CPD_AUTH_URL=<your_cpd_auth_url>
API_USERNAME=<your_username>
API_PASSWORD=<your_password>
MCP_TOOLS_MODE=minimal
Tool Mode Options:
minimal(default): Essential tools (search_master_data,get_data_model)full: All tools includingget_record,get_entity,get_records_entities_by_record_id
Usage
Command Line
Run the server directly from the command line:
# Start in HTTP mode (default)
ibm_mdm_mcp_server
# Start on a custom port
ibm_mdm_mcp_server --port 3000
# Start in STDIO mode (for MCP clients)
ibm_mdm_mcp_server --mode stdio
With Claude Desktop
Quick Setup:
Edit your Claude Desktop config file and add:
{
"mcpServers": {
"ibm-mdm": {
"command": "uvx",
"args": ["ibm_mdm_mcp_server", "--mode", "stdio"],
"env": {
"M360_TARGET_PLATFORM": "cloud",
"API_CLOUD_BASE_URL": "https://api.ca-tor.dai.cloud.ibm.com/mdm/v1/",
"API_CLOUD_AUTH_URL": "https://iam.cloud.ibm.com/identity/token",
"API_CLOUD_API_KEY": "<your_api_key>",
"API_CLOUD_CRN": "<your_crn>",
"MCP_TOOLS_MODE": "minimal"
}
}
}
}
๐ For comprehensive Claude Desktop setup including uvx, source installation, HTTP mode, and troubleshooting, see the Claude Desktop Setup Guide.
Testing with MCP Inspector
# Start the server
ibm_mdm_mcp_server
# In another terminal, run the inspector
npx @modelcontextprotocol/inspector
Integration with Claude Desktop
The IBM MDM MCP Server integrates seamlessly with Claude Desktop, enabling natural language interactions with your IBM MDM data.
Setup Methods
Choose the method that best fits your needs:
- PyPI Package (Recommended) - Simple
pip installand configure - uvx (Easiest) - No installation needed, automatic updates
- Source Code - For development and customization
- HTTP Mode - For debugging and advanced use cases
๐ Complete setup instructions for all methods: Claude Desktop Setup Guide
Quick Verification
After setup, ask Claude:
"What IBM MDM tools are available?"
You should see the configured tools listed.
Running the Server
The server supports two operational modes: HTTP (for testing/development) and STDIO (for Claude Desktop integration).
Quick Start
Using PyPI installation:
ibm_mdm_mcp_server # Start in HTTP mode
ibm_mdm_mcp_server --port 3000 # Custom port
From source:
python src/server.py # Start in HTTP mode
python src/server.py --port 3000 # Custom port
Testing with MCP Inspector
# Start server
ibm_mdm_mcp_server
# In another terminal
npx @modelcontextprotocol/inspector
๐ For detailed server operations, configuration, and troubleshooting, see the Running Server Guide.
Available Tools
Minimal Mode (Default)
Essential tools for common MDM operations:
| Tool | Description |
|---|---|
search_master_data |
Search for master data (records, entities, relationships, hierarchy nodes) in IBM MDM with flexible query parameters |
get_data_model |
Retrieve the complete MDM data model schema |
Full Mode
All available tools including advanced operations:
| Tool | Description |
|---|---|
search_master_data |
Search for master data with advanced filtering |
get_data_model |
Retrieve data model schema |
get_record |
Retrieve a specific record by ID |
get_entity |
Retrieve an entity by ID |
get_records_entities_by_record_id |
Get all entities associated with a record |
Enable full mode by setting MCP_TOOLS_MODE=full in your environment configuration.
Sample Queries
Want to see what you can do with this MCP server? Check out our comprehensive Sample Queries Guide which includes:
- ๐ Report Templates - Ready-to-use templates for dashboards and visualizations
- ๐ Common Usage Patterns - Real-world scenarios with concrete examples
- ๐ฏ Query Examples - From basic searches to complex nested queries
- ๐ Analytics Queries - Distribution analysis, comparisons, and data quality reports
- ๐ก Best Practices - Tips to prevent hallucination and ensure accurate results
Quick Examples:
"What entity types and searchable fields are available in my MDM system?"
"Find customer records where status equals active and region equals northeast"
"Create a regional distribution dashboard for customer records"
"Generate a data quality dashboard showing duplicates and missing data"
See the full samples documentation for detailed examples and templates.
Testing
The project uses pytest with comprehensive test coverage.
Quick Test Commands
Run all tests:
pytest tests/
Run with coverage:
pytest tests/ --cov=src --cov-report=term-missing
Generate HTML coverage report:
pytest tests/ --cov=src --cov-report=html
๐ For detailed testing instructions, code quality checks, and CI/CD setup, see the Testing Guide.
Architecture
This project implements a clean 3-tier layered architecture inspired by hexagonal architecture principles. For detailed architecture documentation, see ARCHITECTURE.md.
graph TD
A["<b>Tools Layer</b><br/>(MCP Interface)<br/><br/>search_master_data<br/>get_data_model"] --> B["<b>Service Layer</b><br/>(Business Logic)<br/><br/>SearchService<br/>ModelService"]
B --> C["<b>Adapter Layer</b><br/>(External APIs)<br/><br/>DataMSAdapter<br/>ModelMSAdapter"]
C --> D["<b>IBM MDM APIs</b><br/>(IBM MDM)<br/><br/>Data MS<br/>Model MS"]
style A fill:#e1f5ff,stroke:#01579b,stroke-width:2px
style B fill:#fff3e0,stroke:#e65100,stroke-width:2px
style C fill:#f3e5f5,stroke:#4a148c,stroke-width:2px
style D fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px
Project Structure
src/
โโโ server.py # MCP server entry point
โโโ config.py # Configuration management
โโโ data_ms/ # Data microservice
โ โโโ search/ # Search functionality
โ โโโ records/ # Record operations
โ โโโ entities/ # Entity operations
โโโ model_ms/ # Model microservice
โ โโโ model/ # Data model operations
โโโ common/ # Shared utilities
โโโ auth/ # Authentication
โ โโโ authentication_manager.py
โโโ core/ # Core components
โ โโโ base_adapter.py # Base adapter for HTTP
โ โโโ base_service.py # Base service class
โโโ domain/ # Domain models
Key Design Patterns
- Layered Architecture: Clear separation between presentation, business logic, and infrastructure
- Adapter Pattern: Isolates external API communication with platform-specific implementations
- Template Method: Consistent service implementation patterns via base classes
- Strategy Pattern: Platform-specific authentication strategies (IBM Cloud vs Software Hub)
- Dependency Injection: Services receive adapter instances for flexibility and testability
Hexagonal Architecture Inspiration: While not a pure hexagonal implementation, the architecture draws from hexagonal principles by using adapters to isolate external dependencies and maintaining clear boundaries between layers.
Troubleshooting
Having issues? Check our comprehensive troubleshooting guide:
๐ Troubleshooting Guide - Complete solutions for:
- Installation and configuration issues
- Claude Desktop integration problems
- Server runtime errors
- Authentication failures
- Network connectivity issues
- Testing problems
Quick Fixes:
- Server won't start: Check Python version (3.10+) and environment variables
- Tools don't appear in Claude: Verify config file location and restart Claude Desktop
- Authentication errors: Validate credentials and test connectivity
For detailed solutions and step-by-step guides, see the full troubleshooting documentation.
Contributing
Development Setup
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes and add tests
- Run tests:
pytest tests/ - Commit your changes:
git commit -m "Add your feature" - Push to your fork:
git push origin feature/your-feature - Submit a pull request
Publishing to PyPI
For maintainers who need to publish new versions to PyPI, see the PyPI Publishing Guide.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Support
For issues, questions, or contributions:
- Issues: GitHub Issues
- Documentation: Architecture Guide
- IBM MDM Documentation: IBM Master Data Management
References
Acknowledgments
Built with:
Made with โค๏ธ by IBM
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ibm_mdm_mcp_server-1.0.10.tar.gz.
File metadata
- Download URL: ibm_mdm_mcp_server-1.0.10.tar.gz
- Upload date:
- Size: 104.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
947d9810d258bc0585dee9e88c0242e88350f470d9a7e6fec56e2191384deb41
|
|
| MD5 |
881f26b7fc8e17ef232518a13efbe55a
|
|
| BLAKE2b-256 |
80aebb147238a000ce72cad954420e37b98549bdf184bee9d86a813120bfa2d7
|
File details
Details for the file ibm_mdm_mcp_server-1.0.10-py3-none-any.whl.
File metadata
- Download URL: ibm_mdm_mcp_server-1.0.10-py3-none-any.whl
- Upload date:
- Size: 69.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9d012dcf5b7dc8d4cb0a32c9a5bc3c4d2469a4276a033cc4d91f8e04e82ac6e
|
|
| MD5 |
189e249e7e2ed8788bb308c3cea7c27a
|
|
| BLAKE2b-256 |
0056e01cbf55017abeb22cf0e28dee941a629cf6131ad9611030a31eef9391d3
|