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 SKUbranch: Store branch nameavailable_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da62782972dae6e51ee8a3272596c6c513a21ea14d3ac21713b6b22f657eee80
|
|
| MD5 |
f6c50e8acb619992496be9d6b2a83784
|
|
| BLAKE2b-256 |
1cbbc44803e9552d6da311a2944d11bbeeda87b1c005381cc1b79d749514ad36
|
File details
Details for the file sku_availability_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sku_availability_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f178b62bcb2a72691bff37252b23a5960f7029e6a77b464b1cff1e0cdf6d2bba
|
|
| MD5 |
84acda18f3f55a6178798447eebede91
|
|
| BLAKE2b-256 |
73756fc12f4534edfe041c07110b67a487dd8fcc643ea0491830384d7c967616
|