VoucherVault MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VoucherVault MCP Server Show me my unused vouchers that expire within 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
VoucherVault MCP Server
MCP server for VoucherVault voucher/coupon management. Enables AI agents to list, search, create, update, mark used, and delete vouchers, coupons, gift cards, and loyalty cards programmatically.
Built with FastMCP, runs as a stdio subprocess — no HTTP server, no Docker.
Installation
pip install vouchervault-mcpOr install directly from GitHub (pin to a tag or commit):
pip install vouchervault-mcp@git+https://github.com/mmarquezs/vouchervault-mcp@<ref>Related MCP server: Bonus Pink MCP Server
Configuration
Set these environment variables:
Variable | Description | Example |
| Base URL of the VoucherVault container (the internal URL) |
|
| Bearer token for the token API (same token as the read stats endpoint; generate in the VoucherVault Django admin) |
|
That's all — no username/password, no session, no CSRF.
MCP Client Configuration
Add to your MCP client config (e.g. Claude Desktop, opencode, Cursor):
{
"mcpServers": {
"vouchervault": {
"command": "vouchervault-mcp",
"env": {
"VOUCHERVAULT_URL": "http://vouchervault.internal:8000",
"VOUCHERVAULT_API_TOKEN": "your-api-token"
}
}
}
}Or with uvx:
{
"mcpServers": {
"vouchervault": {
"command": "uvx",
"args": ["vouchervault-mcp"],
"env": {
"VOUCHERVAULT_URL": "http://vouchervault.internal:8000",
"VOUCHERVAULT_API_TOKEN": "your-api-token"
}
}
}
}How it works — token API (extapi overlay)
VoucherVault upstream exposes no write REST API. This repository publishes
the extapi overlay (overlay/) — a token-authenticated JSON API
applied on top of the pinned upstream image.
The server talks only to that API — the base URL is the internal container
URL (e.g. http://vouchervault.internal:8000), and every call carries
Authorization: Bearer ${VOUCHERVAULT_API_TOKEN} (the same token the legacy
read-stats endpoint uses).
No session login, no CSRF tokens, no local Django user needed.
Reads and writes all go through
/api/v1/*; responses are JSON and errors carry the server's payload (400 {"errors": {...}},401/403for a bad or missing token,404for unknown items). The client tolerates both trailing-slash variants of every route.days_leftis computed server-side; the client never re-derives it.
Endpoints used:
Method | Route | Purpose |
|
| list (ordered by |
|
| create |
|
| detail |
|
| partial update |
|
| toggle used/available |
|
| delete |
Pinning + overlay drift
The VoucherVault image is pinned to the tested 1.30.x series, and the
extapi overlay patch is rebuilt on top of it. The overlay build fails
loudly if the upstream files it touches drift from what the patch expects —
so a major upstream refactor cannot silently break this integration; it
breaks the image build instead and gets dealt with before deploy.
Tools
Tool | Description |
| List/search items with substring search, type filter, |
| Get full details of a single item by id (UUID) |
| Create a coupon/voucher/gift card/loyalty card (returns the created item) |
| Update item fields by id (only provided fields change; returns the updated item) |
| Toggle used status — calling again marks the item available |
| Permanently delete an item |
Field notes
issuershould be the merchant DOMAIN likeamazon.es— the checkout userscript matches on it.item_type:voucher|giftcard|coupon|loyaltycard(loyalty cards requirevalue0).value_type:money|percentage(0–100) |multiplier(≥ 1).Dates use
YYYY-MM-DD. Passexpiry_date=""to let upstream set it 50 years out.
Development
git clone https://github.com/mmarquezs/vouchervault-mcp
cd vouchervault-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
bandit -r vouchervault_mcp -ll -ii
ruff check vouchervault_mcp testsRun the server:
VOUCHERVAULT_URL=http://vouchervault.internal:8000 \
VOUCHERVAULT_API_TOKEN=token \
vouchervault-mcpLicense
MIT — applies to the MCP client (the vouchervault_mcp package and tests in
this repository).
The overlay/ directory is GPL-3.0: it is a derivative of
VoucherVault (see
overlay/LICENSE); per-file attribution headers note the
upstream copyright.
Available Tools
6 toolscoupon_createCoupon CreateA
Create a new item (coupon, voucher, gift card or loyalty card).
issuer should be the merchant DOMAIN like "amazon.es" — the checkout
userscript matches on it. redeem_code is the coupon/voucher code.
Dates use YYYY-MM-DD format; pass expiry_date as "" for no real expiry
(upstream then sets it 50 years out). value_type is one of
money | percentage | multiplier (percentage 0-100, multiplier >= 1).
item_type is one of voucher | giftcard | coupon | loyaltycard
(loyalty cards require value 0). Returns the created item.
Inputs: name (required), issuer (required), expiry_date (required), redeem_code (required), +5 more. Returns: object
coupon_deleteCoupon DeleteC
Permanently delete an item by its id. This cannot be undone.
Inputs: item_id (required). Returns: object
coupon_getCoupon GetA
Get full details of a single item by its id (UUID string).
Inputs: item_id (required). Returns: object
coupon_mark_usedCoupon Mark UsedA
Toggle the used status of an item.
Calling this once marks the item as USED; calling it again marks it available again. The returned item reflects the new state.
Inputs: item_id (required). Returns: object
coupons_listCoupons ListA
List vouchers, coupons, gift cards and loyalty cards.
Use search for substring matching over name, issuer and redeem_code.
Use item_type to filter: voucher | giftcard | coupon | loyaltycard.
By default used and expired items are hidden; enable them with
include_used / include_expired. Each item includes days_left
(negative means expired).
Inputs: search, item_type, include_used, include_expired. Returns: result
coupon_updateCoupon UpdateA
Update fields of an existing item by id. Only provided fields change.
Editable: name, issuer, redeem_code, expiry_date (YYYY-MM-DD), description, currency, value, value_type (money | percentage | multiplier). Returns the updated item.
Inputs: item_id (required), name, value, issuer, +5 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: list, get, create, update, mark used, and delete. There is no meaningful overlap between tools, and the toggle behavior of coupon_mark_used is clearly documented.
Tool names follow a consistent coupon_ prefix with action suffixes (get, create, update, delete, mark_used). The only deviation is coupons_list using the plural resource name instead of coupon_list, which is minor but noticeable.
Six tools provide a focused, well-scoped surface for managing vouchers, coupons, gift cards, and loyalty cards. Each tool covers a necessary part of the lifecycle without unnecessary bloat.
The tool set covers the full lifecycle: list/search, retrieve, create, update, mark as used, and delete. It also handles filtering and status behavior, making it complete for the stated domain.
Maintenance
Related MCP Connectors
Manage your NanoCart store from any AI agent: products, orders, coupons, subscribers, reports.
Directory of APIs, merchants, and tools AI agents can actually use.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Connect ChatGPT or Claude to your CRM, store or shipping API. Keys stay out of the chat.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI to view and manage e-commerce data such as products, orders, and coupons, and perform actions like updating prices, stock, and generating sales reports.-
- FlicenseNot gradedqualityDmaintenanceEnables Bonus Pink sub-accounts to manage loyalty programs via AI agents, offering 84 tools for card issuance, points, stamps, visits, rewards, and communications.-
- AlicenseAqualityDmaintenanceEnables AI agents to browse the giftcardshop catalog and purchase gift cards using Lightning payments, with no account or signup required.574 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to manage Valeria Store's VCC card purchasing, balance checking, and order tracking via its internal REST API.-