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.0.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.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ecommerce_command_center_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ddea3f7d2e5e786356415688b39998fd5a55e1664ba204eed5defa318ddcae5
MD5 71fefa67b784662d80cfb599fe6e47b3
BLAKE2b-256 c4d799a0a195ac12679a7d2c19303d0c7c438d5b8e6d9e3908dfe1dd68d73f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecommerce_command_center_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67265fc99fbb802facd0b47ccf7a67c2aa330fbc831406d018ae5f7823777234
MD5 bf9d3d1556dd71984578f62e2770ccd0
BLAKE2b-256 e69220d427ae42e6d806f5e47f9036b3861f2b4f947f0f79878f1a7c992d2996

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