shop_mcp_server
An MCP server in Rails that gives Claude real access to a store's products, orders and inventory, with semantic search on pgvector.
Project · AI team for a Shopify store, on n8n and Ruby on Rails (in progress)
An AI team that finds where a Shopify store is quietly losing sales, drafts the fix and waits for the owner's approval. Self-hosted n8n runs the workflows, Rails agents do the AI work.
In progress. Phase 1 of 4, the workflow backbone, is nearly done: Shopify events reach a self-hosted n8n safely and turn into alerts on the owner's phone. It has no AI yet, on purpose. The AI agents come in phases 2 to 4. This page marks what works today and what is planned.
A small store has no operations team. A product sells out at midnight and stays sold out for three days. A one-star review sits unanswered where every visitor can read it. An AI shopping assistant is asked for a waterproof jacket and cannot find the one the store sells, because the size and returns details are missing.
None of these show up as an error. They are sales the owner never knew were lost.
A small crew of AI agents watches for those moments. Each one drafts a fix, such as a reorder email, a reply to the review or a corrected product description. Then it stops and asks. The owner gets a message on their phone and approves or rejects it. Nothing changes in the store without that approval.
Two parts share the work:
Phase 1 builds the part every later agent depends on: receiving store events reliably.
Now in progress: running the stack on a hardened server reached only over a private network (Tailscale), then on a free cloud machine, so alerts keep working with the laptop closed.
| Phase | What it adds | Status |
|---|---|---|
| 1. Backbone | Self-hosted n8n, Shopify webhooks, Slack alerts, one low-stock workflow. No AI yet. | Nearly done |
| 2. Ops agent | An agent drafts a supplier reorder or a review reply; the owner approves from the phone. | Planned |
| 3. AI mystery shopper | AI shoppers test the store every night, a second agent drafts fixes, and the same shoppers run again to prove the fix worked. | Planned |
| 4. Proof page | Pass rate over time, cost per run, traces, and two models compared. | Planned |
It reuses my earlier projects: ai_shop_assistant for the shopping agent, product_geo_agent for the audit logic and shop_mcp_server for the store tools. Progress is tracked step by step in the repo.
Need something like this in your own product? See AI engineering and integration and Shopify, BigCommerce and e-commerce.
An MCP server in Rails that gives Claude real access to a store's products, orders and inventory, with semantic search on pgvector.
A shopping chat where the AI searches Shopify's live catalog over MCP instead of making products up.
An AI agent that scores how discoverable a Shopify product is to AI shopping assistants (GEO and AEO).
A Rails AI support agent, in progress, that looks up real order data with tools and is designed to ask a human before any risky action.