Skip to main content

E-commerce Command Center MCP

Project description

E-commerce Command Center MCP

Core Problem

Multi-channel sellers operate across disconnected dashboards and miss stockouts, listing issues, and shipping failures.

What This Server Provides

This folder contains a production-minded MCP server scaffold with typed JSON tool responses, connector health metadata, OAuth-oriented configuration, rate-limit guards, stable error envelopes, and deterministic demo data until live vendor integrations are attached.

This server has received a production pass. It now includes local ecommerce operations models for multi-channel revenue, inventory coverage, listing health, shipping exceptions, daily operating briefs, restock recommendations, and channel performance comparisons.

Connectors

  • Shopify Admin API via OAuth scope read_orders; env prefix SHOPIFY
  • Amazon SP-API via OAuth scope sellingpartnerapi::notifications; env prefix AMAZON_SP
  • Walmart Marketplace API via OAuth scope marketplace.read; env prefix WALMART
  • TikTok Shop API via OAuth scope seller.read; env prefix TIKTOK_SHOP
  • ShipStation API via OAuth scope orders:read; env prefix SHIPSTATION
  • Inventory Platform API via OAuth scope inventory.read; env prefix INVENTORY
  • EasyPost API via OAuth scope shipments.read; env prefix EASYPOST

MCP Tools

  • get_multi_channel_revenue - Revenue, orders, margin, refunds, and channel mix.
  • get_inventory_alerts - Low-stock, stockout, and overstock alerts.
  • get_listing_health - Suppressed listings, buy box loss, policy flags, and severity.
  • get_shipping_exceptions - Late, stalled, and exception shipments.
  • get_daily_brief - One concise operating brief with priorities.
  • get_restock_recommendations - Restock quantities using velocity and lead time.
  • compare_channel_performance - Rank channels by margin, growth, fulfilment risk, or revenue.

Current Local Capabilities

  • Summarizes revenue, orders, refunds, net revenue, gross profit, AOV, and channel mix.
  • Flags stockouts, low-stock SKUs, and overstock cash tied up.
  • Reports marketplace listing suppression, buy box loss, policy flags, and severity.
  • Finds stalled, delayed, and exception shipments with value at risk.
  • Produces a daily operating brief composed from revenue, inventory, listing, and shipping signals.
  • Calculates restock quantities from velocity, lead time, and safety threshold.
  • Compares channels by margin, growth, fulfillment risk, or revenue.

Test

python -m pytest .\tests -q -p no:cacheprovider

Partial Platform Support

Customers only need to connect the commerce platforms they actually use. Missing Shopify, Amazon, Walmart, TikTok Shop, ShipStation, inventory, or EasyPost credentials do not prevent the server from starting or running local intelligence tools.

Use get_live_connector_status to see configured connectors. Use test_shopify_admin_connection for a read-only live smoke check when Shopify is connected.

Running Locally

powershell python -m venv .venv .\.venv\Scripts\pip install -e . .\.venv\Scripts\python -m ecommerce_command_center_mcp.server

Claude Desktop Config

json { "mcpServers": { "ecommerce-command-center": { "command": "python", "args": ["-m", "ecommerce_command_center_mcp.server"], "cwd": "D:\CUSTOMS\EARNALL\MCP Servers\02-ecommerce-command-center" } } }

Production Checklist

  • Create OAuth 2.1 apps for each connector and set *_CLIENT_ID plus *_CLIENT_SECRET.
  • Store refresh tokens in a secrets manager, never in repo files.
  • Replace deterministic demo rows in server.py with API adapter calls.
  • Persist raw snapshots and normalized warehouse tables for trend analysis.
  • Add integration tests with recorded fixtures for every connector.
  • Validate every tool in MCP Inspector before publishing.
  • Deploy with a /health route through FastMCP streamable HTTP on Railway or Render.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecommerce_command_center_mcp-0.1.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecommerce_command_center_mcp-0.1.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file ecommerce_command_center_mcp-0.1.1.tar.gz.

File metadata

File hashes

Hashes for ecommerce_command_center_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5dc0f395e5d32c31c882f440e2382996adb35f40d115ec125a1cddee4ba18eb4
MD5 9b1d81ff853646b192cfffb0ef5e8460
BLAKE2b-256 33bfd9dbe96d9a624aa397f06df8d25683d74a096289d72c1cf9ac5c7e763131

See more details on using hashes here.

File details

Details for the file ecommerce_command_center_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ecommerce_command_center_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a752aeb77cebf82162bd3cddb1ec2116550704154ecd3fa78858756334258d
MD5 b428c7a308b04ff65e2cb3dcec05c9a2
BLAKE2b-256 1d8f7116eee30ac355ed3c963420fd87fb9197f9b1a530e4ddffecd4b52c20a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page