Skip to main content

MCP server for real-time SKU availability queries via Confluent Cloud ksqlDB

Project description

SKU Availability MCP Server

A Model Context Protocol (MCP) server that provides real-time inventory availability queries from Confluent Cloud ksqlDB.

Features

  • 🔍 Real-time SKU availability queries
  • ☁️ Integration with Confluent Cloud ksqlDB
  • ⚡ FastMCP-based server implementation
  • 🎯 Filter by SKU and/or branch
  • 🔌 Easy integration with watsonx Orchestrate

Installation

pip install sku-availability-mcp

Configuration

Set the following environment variables:

export KSQLDB_API_KEY="your-api-key"
export KSQLDB_API_SECRET="your-api-secret"
export KSQLDB_ENDPOINT="https://your-ksqldb-endpoint.confluent.cloud:443"

Or create a .env file:

KSQLDB_API_KEY=your-api-key
KSQLDB_API_SECRET=your-api-secret
KSQLDB_ENDPOINT=https://your-ksqldb-endpoint.confluent.cloud:443

Usage

Run as a module

python -m sku_availability_mcp

Run as a command

sku-availability-mcp

Use with watsonx Orchestrate

Add the toolkit using the orchestrate CLI:

orchestrate toolkits add \
  --kind mcp \
  --name "sku-availability-toolkit" \
  --description "Real-time inventory availability from Confluent Cloud" \
  --language python \
  --package "sku-availability-mcp" \
  --tools "*"

Available Tools

get_sku_availability

Query real-time inventory availability for SKUs across branches.

Parameters:

  • sku (optional): SKU filter (e.g., 'LAPTOP-DELL-XPS-15')
  • branch (optional): Branch filter (e.g., 'DubaiMall', 'MallOfEgypt')

Returns: JSON object with availability records containing:

  • sku: Product SKU
  • branch: Store branch name
  • available_quantity: Current available quantity

Example:

# Get all inventory
get_sku_availability()

# Get specific SKU
get_sku_availability(sku="LAPTOP-DELL-XPS-15")

# Get inventory for specific branch
get_sku_availability(branch="DubaiMall")

# Get specific SKU at specific branch
get_sku_availability(sku="LAPTOP-DELL-XPS-15", branch="DubaiMall")

Architecture

This MCP server connects to Confluent Cloud ksqlDB to query the INVENTORY_AVAILABILITY table, which aggregates real-time inventory transactions from Kafka topics.

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please open an issue on GitHub.

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

sku_availability_mcp-1.0.0.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

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

sku_availability_mcp-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file sku_availability_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: sku_availability_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for sku_availability_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 da62782972dae6e51ee8a3272596c6c513a21ea14d3ac21713b6b22f657eee80
MD5 f6c50e8acb619992496be9d6b2a83784
BLAKE2b-256 1cbbc44803e9552d6da311a2944d11bbeeda87b1c005381cc1b79d749514ad36

See more details on using hashes here.

File details

Details for the file sku_availability_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sku_availability_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f178b62bcb2a72691bff37252b23a5960f7029e6a77b464b1cff1e0cdf6d2bba
MD5 84acda18f3f55a6178798447eebede91
BLAKE2b-256 73756fc12f4534edfe041c07110b67a487dd8fcc643ea0491830384d7c967616

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