MCP server for the Tuma250 WooCommerce grocery site (Kigali, Rwanda)
Project description
tuma250-mcp
An MCP server for the Tuma 250 WooCommerce grocery site (Kigali, Rwanda).
Gives any MCP-compatible AI client (Cursor, Claude Desktop, etc.) the ability to search products, manage a shopping cart, and browse order history on Tuma250 — using a headless Playwright browser under the hood.
Tools
| Tool | Description |
|---|---|
login |
Authenticate and persist the browser session |
search_products |
Search for products by keyword |
get_product_variations |
List available variants (size/weight) for a variable product |
add_to_cart |
Add a product (or specific variant) to the cart |
get_cart |
Retrieve cart contents with full cost breakdown |
list_recent_orders |
List recent orders from My Account |
get_order_details |
Fetch line items for a specific order |
Installation
pip install tuma250-mcp
playwright install chromium
Configuration
The server reads credentials from environment variables (or a .env file):
TUMA250_BASE_URL=https://tuma250.com
TUMA250_USERNAME=your-email@example.com
TUMA250_PASSWORD=your-password
# Optional
TUMA250_SESSION_FILE=.tuma250_session.json # persists login between runs
TUMA250_DEBUG=false # set true for headed browser
Usage
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"tuma250": {
"command": "tuma250-mcp",
"env": {
"TUMA250_BASE_URL": "https://tuma250.com",
"TUMA250_USERNAME": "your-email@example.com",
"TUMA250_PASSWORD": "your-password"
}
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tuma250": {
"command": "tuma250-mcp",
"env": {
"TUMA250_BASE_URL": "https://tuma250.com",
"TUMA250_USERNAME": "your-email@example.com",
"TUMA250_PASSWORD": "your-password"
}
}
}
}
Direct (stdio)
TUMA250_USERNAME=you@example.com TUMA250_PASSWORD=secret tuma250-mcp
Session persistence
After the first successful login, the browser session (cookies) is saved to TUMA250_SESSION_FILE (default: .tuma250_session.json). Subsequent runs reuse the saved session and skip the login step entirely.
Variable products
Some products on Tuma250 require a size/weight selection before they can be added to the cart. Use get_product_variations to discover the available options first:
1. search_products("fresh carrots") → returns product URL
2. get_product_variations(product_url) → lists 250g / 500g / 1kg variants
3. add_to_cart(product_id, variation_id, variation_attributes)
License
MIT
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 tuma250_mcp-0.1.1.tar.gz.
File metadata
- Download URL: tuma250_mcp-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e180e0ec775754c9ca58dd560f0255fd08f4f11d578d3b01074b44e62daa8e46
|
|
| MD5 |
a5e8b35cbe269bd9fb235c29e26d81f8
|
|
| BLAKE2b-256 |
a6a19797549ec8947ddf78ff3a5f905dfa53ff288a033a867009e057fe48d41f
|
File details
Details for the file tuma250_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tuma250_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca20216bc62ca463c6e616815e9cc8621b82c130e0b3035b198a4d998c47839a
|
|
| MD5 |
632d7608b47dab59c61c1bb08c4e9924
|
|
| BLAKE2b-256 |
47344b803526dd5c4937b82057b22149b8facf8e5f63b8a7b768032c57dd5d22
|