Shopfront MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Shopfront MCP
Make any small shop buyable by AI agents.
People increasingly ask an AI assistant where to buy things. A neighbourhood bakery or a solo maker has no way to show up there. Most agentic-commerce projects build the buyer's agent; Shopfront builds the seller's side.
A merchant pastes their products in any format. Shopfront:
Writes agent-readable listings with Gemini (allergens, dietary info, sizes, lead times).
Gives the shop its own MCP server, so any MCP-capable assistant can search the catalog, ask questions and start a checkout.
Takes payment with PayPal on a hosted checkout page (PayPal JS SDK, sandbox).
Shows the merchant what AI agents did: orders placed, questions asked, and the questions the listings couldn't answer, each with a suggested fix.
Live demo
https://shopfront-mcp.vercel.app (PayPal sandbox; no account or keys needed)
Dashboard: https://shopfront-mcp.vercel.app/dash.html?shop=sweet-crumb-bakery
MCP connector URL:
https://shopfront-mcp.vercel.app/mcp/sweet-crumb-bakery
Related MCP server: AgentStall
Screenshots
Merchant onboarding (Gemini writes the listings) | PayPal checkout link an agent hands the buyer |
|
|
Merchant dashboard with listing gaps | Every question AI agents asked |
|
|
How it works
AI assistant ──MCP──▶ /mcp/:shop ──▶ cart (price set by server)
│
buyer ◀── checkoutUrl ──────────────────┘
│
▼
/pay.html ── PayPal JS SDK: create order ▶ approve ▶ capture
│
▼
POST /api/carts/:id/paid ──▶ merchant dashboard (orders, agent questions, listing gaps)MCP tools (per shop)
Tool | What it does |
| Shop policies and how ordering works |
| Keyword search over names, descriptions and attributes |
| Answers a question using only what the shop has published |
| Builds a cart from product ids and returns a PayPal checkout link |
Where PayPal is used
PayPal JS SDK (Orders) on
public/pay.html:actions.order.createwith itemisedpurchase_units, buyer approval, thenactions.order.capture.The captured order (id, status, amount, payer) is sent to the server, which checks status and amount against its own cart before marking it paid.
Where AI is used (Google Gemini, gemini-flash-lite-latest)
Turning raw merchant notes into structured listings (
generateListings).Answering agent questions strictly from shop data (
answerQuestion).Grouping unanswered requests into listing fixes (
summarizeGaps).
All three live in lib/ai.js. Each has a plain fallback, so the app still runs without an API key or when the Gemini free tier's rate limit is hit (the server log says when that happens).
Run it
Requires Node 20+.
npm install
cp .env.example .env # add GEMINI_API_KEY (optional, see above)
npm startOpen http://localhost:3000. A demo shop (Sweet Crumb Bakery) is preloaded:
Onboarding: http://localhost:3000
Dashboard: http://localhost:3000/dash.html?shop=sweet-crumb-bakery
MCP endpoint:
http://localhost:3000/mcp/sweet-crumb-bakery(Streamable HTTP)
To load your .env file: node --env-file=.env server.js.
Try it with an AI assistant
Add the shop's MCP URL as a custom connector (it must be a public HTTPS URL, so use the hosted demo or a tunnel), then ask:
Order a dozen gluten-free cupcakes for Saturday, under $40.
The assistant returns a checkout link. Pay with the Debit or Credit Card option using a PayPal sandbox test card; the order appears on the dashboard.
To poke at the tools directly: npx @modelcontextprotocol/inspector.
Tests
npm testProject layout
server.js HTTP routes: API, MCP endpoint, static pages
lib/shop.js Pure logic: search, cart totals, capture checks (unit-tested)
lib/mcp.js The per-shop MCP server and its four tools
lib/ai.js Gemini calls and their fallbacks
lib/store.js JSON-file storage
public/ index.html (onboarding), pay.html (checkout), dash.html (dashboard)
seed.json Demo shop loaded on first run
test/ node:test unit tests
api/index.js Vercel function entry (vercel.json routes /api and /mcp to it)
render.yaml One-click Render deployDeploy
Vercel (how the live demo runs): vercel link, vercel env add GEMINI_API_KEY production, then vercel deploy --prod. On Vercel only /tmp is writable and it belongs to one function instance, so demo data (new shops, carts, orders) resets when the instance goes idle; the seed shop always comes back. Use a database for real use.
Render: render.yaml is included: New → Blueprint → pick this repo, then set GEMINI_API_KEY. The free tier's disk resets on restart, so the demo shop from seed.json comes back on every boot.
Known limits
Capture is reported by the browser. This build uses PayPal's public sandbox client ID (
sb) and has no client secret, so the server cannot call PayPal to confirm a capture. It checks the reported status and amount against its own cart. With credentials, the fix is one server call toGET /v2/checkout/orders/{id}; the spot is marked inserver.js.No merchant login. The dashboard URL is the access. Add auth before real use.
JSON-file storage with no locking: fine for one process, not for scale.
Sandbox only. No real money moves.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Sell to people and AI agents: create products, a storefront, and USDC payment links from chat.
Run your online shop from your AI: products, prices, stock and orders. Payouts via your own Stripe.
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables external AI agents to search a PayPal sandbox storefront, create and track orders, request refunds, and open disputes within buyer-set spending mandates, while every charge still requires buyer approval in PayPal.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI shopping agents to discover social-only sellers’ products, ask sellers questions, create PayPal checkouts, and check order status through a public MCP endpoint.MIT

AgentShelfofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to browse a small shop's catalog, find products or free slots, create orders, and let buyers confirm payment through PayPal, while sellers can build a catalog from a photographed price list.MIT- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search a shop's products, retrieve product details, prepare PayPal checkout links, and check order status over MCP. Payment approval remains with the buyer in PayPal.1MIT



