Ucp MCP
KituDigital β UCP (Universal Commerce Protocol) backend + FastMCP server. Agentic digital goods checkout for Claude and other AI agents.
Ask AI about Ucp MCP
Powered by Claude Β· Grounded in docs
I know everything about Ucp MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
ucp-mcp
KituDigital β UCP (Universal Commerce Protocol) backend + FastMCP server.
Agentic digital goods checkout for Claude and other AI agents.
What's inside
| File | Purpose |
|---|---|
ucp_backend.py | FastAPI app β 9 fully UCP-compliant REST endpoints |
server.py | FastMCP server β 10 Claude-callable tools wrapping the backend |
catalog.json | Product catalog β 6 digital goods (dev tools, CTF bundles, study packs) |
docker-compose.yml | Runs the FastAPI backend on port 8100 |
requirements.txt | Python deps |
setup.sh | One-shot bootstrap (venv + install) |
Business: KituDigital
A Kenya-based digital goods marketplace. Zero inventory, instant downloads, agentic-first.
Products:
kitu-001Kenya Developer Starter Pack β $4.99kitu-002University CS Exam Study Pack β $3.49kitu-003CTF Quickstart Bundle β $5.99kitu-004Self-Hosted Infrastructure Playbook β $7.99kitu-005UI Design Starter Kit (Figma + SVG) β $6.49kitu-006MCP Server Development Guide β $9.99
Coupons: KITU10 (10%), DEVDAY (20%), WELCOME (15%)
Quick start
# 1 β clone and bootstrap
git clone https://github.com/karanjaofficial25flow-hue/ucp-mcp.git
cd ~/MCP/ucp-mcp
chmod +x setup.sh && ./setup.sh
# 2 β start the UCP backend
docker compose up -d
# 3 β verify
curl http://localhost:8100/.well-known/ucp | python3 -m json.tool
# 4 β restart Claude Desktop to activate the MCP server
MCP tools exposed to Claude
| Tool | What it does |
|---|---|
ucp_business_profile | Fetch /.well-known/ucp β capabilities + endpoints |
ucp_search_products | Discover products with text/category/price/tag filters |
ucp_get_product | Single product detail |
ucp_create_session | Open a checkout session |
ucp_get_session | Read session state |
ucp_update_session | Change items / apply coupon / add email |
ucp_complete_checkout | Submit AP2 payment mandate β confirm order |
ucp_get_order | Order status + download links |
ucp_cancel_order | Cancel an order |
ucp_generate_token | Dev-mode AP2 payment token for testing |
UCP endpoints
GET /.well-known/ucp
GET /ucp/products/search
GET /ucp/products/{id}
POST /ucp/checkout/sessions
GET /ucp/checkout/sessions/{sid}
PUT /ucp/checkout/sessions/{sid}
POST /ucp/checkout/sessions/{sid}/complete
GET /ucp/orders/{oid}
POST /ucp/orders/{oid}/cancel
Claude Desktop config entry
Already written to ~/.config/claude/claude_desktop_config.json and
~/.config/Claude/claude_desktop_config.json by the setup process.
"ucp-mcp": {
"command": "/home/kamau/MCP/ucp-mcp/venv/bin/python",
"args": ["/path/to/MCP/ucp-mcp/server.py"],
"env": {
"UCP_BASE_URL": "http://localhost:8100",
"UCP_PAYMENT_SECRET": "kitudigital-dev-secret-2026"
}
}
Protocol compatibility
UCP is interoperable with MCP, A2A, and AP2. This server uses MCP as the transport binding, with REST as the underlying backend protocol β exactly the architecture described in the UCP spec.
License
MIT
