Shopify AI Ops Agent
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., "@Shopify AI Ops AgentAnalyze product sales trends and recommend inventory restock"
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.
๐๏ธ Shopify AI Operations Agent
A production-grade autonomous ecommerce operations agent built with LangGraph v1, Model Context Protocol (MCP 2026-07-28), FastAPI, PostgreSQL + pgvector, Redis, OpenTelemetry, and strict Human-in-the-Loop (HITL) risk governance.
๐ Complete Technical Documentation
For in-depth architecture, terminologies, and Architectural Decision Records (ADRs) written in ASD-STE100 (Simplified Technical English), see:
๐ DOCUMENTATION.md
Download the visual presentation PDF:
๐ architecture_diagram.pdf (or at http://localhost:8000/architecture.pdf)
Related MCP server: MCP Shopify
๐๏ธ Core Architectural Invariants
Pre-Execution Risk & Policy Gate: Destructive deletions, financial budgets, and outbound communications trigger a LangGraph interrupt (
interrupt_before) requiring human approval.Decoupled MCP Tool Layer: All business capabilities are packaged as 5 stateless MCP tool servers (
Shopify,Analytics,Meta Ads,Communications,Trend Intelligence).Deterministic Business Analytics: Financial metrics are computed using deterministic SQL routines, eliminating LLM arithmetic hallucinations.
Anti-Early-Victory Sensors: The agent re-queries live state to mathematically verify that mutations occurred before reporting completion.
Shift-Left Evals & Tracing: 28 automated pytest test suites, 17-case golden eval benchmark, and an independent Critic Agent audit (Score: 98.5/100, Grade: A+).
๐ Repository Structure
shopify-ai-ops-agent/
โโโ DOCUMENTATION.md # Full technical documentation (ASD-STE100)
โโโ architecture_diagram.pdf # 2-slide landscape architecture diagram
โโโ docker-compose.yml # Postgres (pgvector) + Redis + Jaeger + API
โโโ pyproject.toml # Dependencies & packaging
โโโ app/
โ โโโ api/ # FastAPI routes (agent, approvals, health)
โ โโโ agent/ # LangGraph state machine & specialized nodes
โ โโโ mcp_servers/ # 5 Stateless MCP tool servers
โ โโโ core/ # Security (HMAC-SHA256), Idempotency, Database
โ โโโ rag/ # Hybrid Vector + BM25 search & brand guidelines
โ โโโ static/ # Executive SaaS Cockpit UI & Command Palette
โ โโโ evals/ # Golden datasets & Critic Agent audit
โโโ tests/ # 28 automated unit, safety, and integration tests๐ Quickstart & Setup
1. Local Development
# Install dependencies
pip install -r requirements.txt
# Start the application server & dashboard
python -m uvicorn app.api.main:app --reload --port 8000Dashboard UI:
http://localhost:8000/(PressCtrl + Kfor Command Palette)Interactive API Docs:
http://localhost:8000/docsArchitecture PDF:
http://localhost:8000/architecture.pdf
๐งช Verification & Evaluations
# Run full automated test suite (28 tests)
python -m pytest tests/ -v
# Run independent Critic Agent technical audit
python -m app.evals.judge_agentThis server cannot be deployed
Maintenance
Related MCP Connectors
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Multi-tenant MCP gateway for AI commerce. One connection, every store.
AI commerce for Shopify: product search, comparison, recommendations, and checkout via MCP.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA Shopify-focused MCP server that enables AI agents to manage store operations like order tracking, product discovery, and checkout link generation. It facilitates customer-facing interactions including shipping estimates and real-time inventory searches.-
- AlicenseNot gradedqualityFmaintenanceA comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.2018MIT
- FlicenseNot gradedqualityCmaintenanceHosted MCP server connecting Shopify, Klaviyo, GA4, Meta Ads, Google Ads, Xero, Gorgias and 20+ e-commerce data sources so AI assistants can answer merchant questions that span every source at once.-
- AlicenseNot gradedqualityCmaintenanceMCP server for e-commerce operations including product catalog management, cart/checkout, and Stripe integration, with built-in EU AI Act compliance.MIT