Skip to main content
Glama
Thebeardedambivert

Shopify AI Ops Agent

๐Ÿ›๏ธ Shopify AI Operations Agent

Python 3.11+ FastAPI LangGraph License: MIT

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

  1. Pre-Execution Risk & Policy Gate: Destructive deletions, financial budgets, and outbound communications trigger a LangGraph interrupt (interrupt_before) requiring human approval.

  2. Decoupled MCP Tool Layer: All business capabilities are packaged as 5 stateless MCP tool servers (Shopify, Analytics, Meta Ads, Communications, Trend Intelligence).

  3. Deterministic Business Analytics: Financial metrics are computed using deterministic SQL routines, eliminating LLM arithmetic hallucinations.

  4. Anti-Early-Victory Sensors: The agent re-queries live state to mathematically verify that mutations occurred before reporting completion.

  5. 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 8000
  • Dashboard UI: http://localhost:8000/ (Press Ctrl + K for Command Palette)

  • Interactive API Docs: http://localhost:8000/docs

  • Architecture 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_agent
F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A 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.
  • A
    license
    Not graded
    quality
    F
    maintenance
    A comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.
    34
    18
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Hosted 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.

View all related MCP servers

Related MCP Connectors

  • Get recommended by Amazon's AI. Hosted MCP server for Amazon listing compliance & generation.

  • Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.

  • Connect e-commerce and marketing data to AI assistants via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Thebeardedambivert/shopify-ai-ops-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server