https://github.com/matlock08/watson_discovery_mcp
MCP implementation for Watson Discovery
https://github.com/matlock08/watson_discovery_mcp
Last synced: 3 months ago
JSON representation
MCP implementation for Watson Discovery
- Host: GitHub
- URL: https://github.com/matlock08/watson_discovery_mcp
- Owner: matlock08
- Created: 2025-03-19T02:50:04.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-05-17T23:31:19.000Z (5 months ago)
- Last Synced: 2025-06-18T00:25:08.551Z (4 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
WATSONX_DISCOVERY_APIKEY=
WATSONX_DISCOVERY_URL=
WATSONX_DISCOVERY_VERSION=2023-03-31
```## Usage
### With Claude Desktop
Add this to your `claude_desktop_config.json`:
```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
```bash
# Install dependencies
uv install# Run the server
uv run server/__main__.py
```## Development
```bash
# 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__.pyenv WATSONX_DISCOVERY_APIKEY= env WATSONX_DISCOVERY_URL= env WATSONX_DISCOVERY_VERSION=2023-03-31 uvx mcp-watson-discovery
```## License
MIT License - see LICENSE file for details.