Skip to main content

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

mcp_watson_discovery-0.1.10.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_watson_discovery-0.1.10-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_watson_discovery-0.1.10.tar.gz.

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.10.tar.gz
Algorithm Hash digest
SHA256 bb4085a11bb8ded0255af993ed9b81eaa522a4ea0216f6a495a3ccaa0b742cea
MD5 b22b3304da769da693cac4e1b21b1b71
BLAKE2b-256 e2324be45c1bd0670fa8e93f167c74f761f03cc3e6168391a81cd99e2382c03d

See more details on using hashes here.

File details

Details for the file mcp_watson_discovery-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc7d880aae04b6ca0252fcebd5ee566254519c8cc9f882e43ecf7bb7fdf815d
MD5 2c00a89dcc06393536d5971cd12a97c0
BLAKE2b-256 42ef13738f77104c9ce2ef2e4a28a6324e79372f4b18d8cfb03924b2c84ea741

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page