Marketplace Hub MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
title: Marketplace Hub MCP emoji: 📦 colorFrom: blue colorTo: green sdk: docker app_port: 7860
Marketplace Hub MCP
Open-source, read-only FastMCP server for Shopee and TikTok Shop e-commerce integrations, supporting DEMO (offline synthetic fixtures) and LIVE modes, stdio and Streamable HTTP transports, and an interactive Gradio interface.
Derived from the production marketplace connectors of Loja3D, a real multi-channel e-commerce management application. The Shopee and TikTok Shop integrations are operationally validated in daily production use; this repository packages a clean, read-only, security-audited MCP layer on top of that architecture for AI agents, portfolio demonstration, and the Hugging Face MCP Course.
GitHub Repository: https://github.com/91wallace/marketplace-hub-mcp
License: Apache 2.0 (
LICENSE)Security Policy:
SECURITY.md
flowchart LR
Client[MCP Client / AI Agent] -->|stdio or /mcp| FastMCP
Browser[Browser] -->|/demo| Gradio
FastMCP --> Services[Validated Read-Only Services]
Gradio --> Services
Services --> Registry[Provider Registry]
Registry --> Demo[DEMO Synthetic Fixtures]
Registry --> Live[LIVE Store APIs]Related MCP server: MCP Shopline
Capabilities
MCP Tools (Read-Only)
Tool | Purpose |
| Channels, capabilities, and effective mode ( |
| Minimal paged order records |
| Estimated gross paid/completed order sales across every page |
| SKU and warehouse balances, with unknown stock as |
MCP Prompts
Prompt | Purpose |
| Guides AI assistants through currency-safe sales analysis using |
| Guides AI assistants through stock auditing using |
Tool Parameters
Parameter | Tools | Meaning |
| orders, summary, inventory | Optional |
| orders, summary | Optional inclusive ISO dates, |
| orders, inventory | Opaque continuation returned by the previous page |
| orders, inventory | Page size from 1 to 100 |
| inventory | Optional exact SKU filter |
Install and Run (Local)
py -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe -m marketplace_hub_mcpMCP Client Configuration (stdio)
Claude Desktop:
examples/claude_desktop.jsonCursor:
examples/cursor.json(.cursor/mcp.json)
{
"mcpServers": {
"marketplace-hub-mcp": {
"command": "C:\\path\\to\\marketplace-hub-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "marketplace_hub_mcp"],
"env": { "DEMO_MODE": "true" }
}
}
}Streamable HTTP + Gradio
Run python space.py and open http://localhost:7860/ (redirects to /demo/). Connect MCP clients to http://localhost:7860/mcp. space.py calls create_server(force_demo=True), so it strictly enforces DEMO mode even if LIVE environment variables are present.
DEMO vs. LIVE Modes
DEMO mode (
DEMO_MODE=true, default): Uses exclusively synthetic offline fixtures. Zero credentials, database, or network egress required. Public deployments (space.py) always force DEMO mode.LIVE mode (
DEMO_MODE=false): Connects to official Shopee and TikTok Shop APIs using store credentials supplied via environment variables or a local.env(see.env.example). SetLIVE_CHANNEL=shopee,tiktok_shop, orshopee,tiktok_shop. OAuth/token renewal is handled externally. No demo records are returned on LIVE errors.
Hugging Face Spaces & MCP Course Alignment
This project is packaged with a Dockerfile (python:3.12-slim, port 7860, DEMO_MODE=true) for Hugging Face Docker Spaces. Note that hosting Docker or Gradio Spaces on Hugging Face currently requires a Hugging Face PRO subscription (the free tier returns 402 Payment Required for Docker Spaces).
MCP Course Mapping
Course Enrollment: https://huggingface.co/mcp-course
Unit 1 (Fundamentals Certificate): Covers MCP architecture, tools, transports, and SDKs. Quiz Space: https://huggingface.co/spaces/mcp-course/unit_1_quiz (page).
Unit 2 (End-to-End Application): Aligned via
space.py(Gradio/demo/+ FastMCP/mcp), client configs (examples/), and Docker Space packaging (Dockerfile).Unit 3 (Advanced MCP Workflows): Aligned via typed read-only Tools, MCP Prompts (
sales_analysis_prompt,inventory_audit_prompt), and GitHub Actions CI/CD (.github/workflows/quality.yml). Certificate of Completion Quiz Space: https://huggingface.co/spaces/mcp-course/unit_3_quiz (page).
Publishing this repository does not automatically grant certification; passing the official quiz Spaces while logged into Hugging Face is required.
Quality & Security Checks
Verified locally and in GitHub Actions (.github/workflows/quality.yml):
python -m pytest -q— 20 automated tests passing (unit, regression, and stdio/HTTP transport tests with synthetic HTTP responses)ruff check .— 0 lint errorspip-audit -r requirements.txt— 0 known vulnerabilitiesgitleaks— 0 secrets/leaks detected
Future Extensibility
The modular provider registry in marketplace_hub_mcp/core.py is designed to support additional marketplaces (such as Mercado Livre, Amazon, and Shein) without changing the MCP tool surface.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shopee MCP and TikTok Shop MCP server for Claude and ChatGPT: orders, ads, stock and profit.
MCP server for AI agents: WhatsApp, Instagram, TikTok, Facebook and Google Business Profile.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseBqualityDmaintenanceA read-only MCP server for SimpleShop accounting data, enabling AI agents to find documents, download PDFs, inspect products, and review sales exports.5MIT
- AlicenseAqualityDmaintenanceAn open-source MCP server that wraps the Shopline Open API into 143 AI-callable tools for e-commerce data analysis, enabling AI agents to query orders, products, inventory, customer behavior, and promotions from Shopline stores through natural language.10050 PyPI21MIT
- AlicenseCqualityDmaintenanceRead-only MCP server for buy123 vendor portal, enabling AI assistants to query orders, returns, shipments, products, inventory, and more.61MIT
- FlicenseNot gradedqualityDmaintenanceDemo MCP server that exposes order and customer data as read-only tools for AI assistants, simulating a business API or internal data source.-