Skip to main content

MCP server for watson discovery

Project description

Watson Discovery MCP 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 processing.

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 main.py"
			]
		}
	}
}

As a standalone server

# Install dependencies
uv install 

# Run the server
uv run 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 main-py

Security Considerations

  • Never commit environment variables or credentials
  • Use a database user with minimal required permissions
  • Consider implementing query whitelisting for production use
  • Monitor and log all database operations

Security Best Practices

License

MIT License - see LICENSE file for details.

uv run main.py

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.7.tar.gz (3.7 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.7-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.7.tar.gz
Algorithm Hash digest
SHA256 6446b444b435173e7465f385f5b9a75f46d0b2a32ab0b7236b6cb79fe70bff6e
MD5 fdc5fad4704333cd18ce6603f4d7369a
BLAKE2b-256 e6bd6e7de393de0eeb56053aac2616078247cb94692d5eb1b6dc36c619fa2027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_watson_discovery-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 27951a403138ff55631238c57f1b6b186da2523c7dca1d13d5e8e2712ba59cff
MD5 30fd7fe5ef4fc1efc8aecfad80c7bb05
BLAKE2b-256 139a8815d4820af58513e5c79001dd726c72ce425a9be6f025a8de3259a2a90f

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