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.9.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.9-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ee7c50fd8297602c22155df7bd2165e516ebaef938d39c06674ba3f3cbf7a254
MD5 102b2c8d30547fdd8941016103e6481a
BLAKE2b-256 8ee0d63bcd4fbb93d80eda60f884e5552dedad63e64217bbdc916e1ee654eb07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c1dbf9fa1bf4281c3cf0387b4415a02abb0b969ef3b2e61ef189a520e29fc7f9
MD5 efec35c9e6a48f126777cdf91455fc2a
BLAKE2b-256 d8f682154a44a6c8bf714f86462a2b9552d64b5f5fac2909af9e5bd152d76c58

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