MCP server for watson discovery
Project description
MCP Watson Discovery Server
A Model Context Protocol (MCP) server that enables secure interaction with Watson Discovery. This server allows AI assistants to list projects, list collections in projects, execute queries through natural language process.
Features
- List available projects
- List available collections in project
- Execute queries in NLP in a collection
Configuration
Set the following environment variables:
WATSONX_DISCOVERY_APIKEY=
WATSONX_DISCOVERY_URL=
WATSONX_DISCOVERY_VERSION=2023-03-31
Usage
With Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"watsonx-discovery": {
"command": "wsl.exe",
"args": [
"bash",
"-c",
"/home/morpheus/.local/bin/uv --directory /home/morpheus/workspace/mcp-discovery run 'server/__main__.py'"
]
}
}
}
As a standalone server
# Install dependencies
uv install
# Run the server
uv run server/__main__.py
Development
# Clone the repository
git clone https://github.com/matlock08/watson_discovery_mcp.git
cd watson_discovery_mcp
# Create virtual environment
uv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install development dependencies
uv install
# Run
uv run run server/__main__.py
License
MIT License - see LICENSE file for details.
Project details
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 mcp_watson_discovery-0.1.8.tar.gz.
File metadata
- Download URL: mcp_watson_discovery-0.1.8.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4975cb04c5623871a2bf8816768604f8ed2dd753efb53bbeca92db89925237d6
|
|
| MD5 |
c9ff127d7b9a5e93ba92e8c6f72ee84f
|
|
| BLAKE2b-256 |
5bfbb1c0ed3d2df91d6f2178deaf42ddf90622c559d1c655a7d0b4fb8b7a8c9b
|
File details
Details for the file mcp_watson_discovery-0.1.8-py3-none-any.whl.
File metadata
- Download URL: mcp_watson_discovery-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5ffa2c842a1d075acc7559f359f064092c0e59c50ae158ca141e66edd35e04
|
|
| MD5 |
8b8da95ed7f305b50499e8ec6be08c92
|
|
| BLAKE2b-256 |
19ec761e17f62124255e23aafe4426eb726470a6bc76c06a9aa7723d8ca3f9d7
|