Skip to main content
Glama

hertwill-mcp

An MCP server for the Hertwill dropshipping API (API docs). Use it to search the catalog, manage your store's import list, and publish products to your Shopify or WooCommerce store, all from Claude or any other MCP client.

  • Built on the MCP TypeScript SDK v2 (@modelcontextprotocol/server). It serves the 2026-07-28 protocol revision and still works with clients on the 2025 revisions.

  • Uses the stdio transport. It needs Node.js 20 or newer.

Tools

Tool

What it does

API key

search_products

Full-text search, or browse with filters (brand, category, price, stock, on sale, ships-to country, attributes) plus sorting and pagination

optional¹

get_product

Full product details by id or slug, including variations; optionally translated (21 languages)

optional¹

list_categories / get_category

The category tree, or a single category

–

list_brands / get_brand

Brand listing, or full details for one brand (return policy, GPSR, …)

–

get_brand_shipping_prices

A brand's shipping price lists, optionally filtered to one destination country

–

list_import_list

Your store's import list, filterable by status

required

add_to_import_list

Add 1–50 products to the import list (idempotent)

required

remove_from_import_list

Remove a product from the import list

required

sync_product

Publish a product to your store at an absolute selling price. Variant pairs are resolved automatically

required

get_sync_health

Your store's sync health, counts, and failing products

required

list_sync_jobs / get_sync_status

Sync status for all products, or for one

required

¹ Catalog tools work without a key, but wholesale price comes back null unless a key is set.

The API's account endpoints (/v1/auth/* and /v1/api-keys) are deliberately left out. They need your email and password, and you manage them in the Hertwill dashboard.

Related MCP server: horoshop-mcp

Setup

  1. Create a store-scoped API key (hw_live_…) in your Hertwill account dashboard.

  2. Add the server to your MCP client.

Claude Code

claude mcp add -s user hertwill -e HERTWILL_API_KEY=hw_live_xxx -- npx -y github:aanndryyyy/hertwill-mcp

Claude Desktop, Cursor, and other clients using mcpServers JSON

{
  "mcpServers": {
    "hertwill": {
      "command": "npx",
      "args": ["-y", "github:aanndryyyy/hertwill-mcp"],
      "env": { "HERTWILL_API_KEY": "hw_live_xxx" }
    }
  }
}

From a local clone

git clone https://github.com/aanndryyyy/hertwill-mcp.git
cd hertwill-mcp && npm install   # builds dist/ automatically
claude mcp add -s user hertwill -e HERTWILL_API_KEY=hw_live_xxx -- node "$PWD/dist/index.js"

Environment variables

Variable

Default

Purpose

HERTWILL_API_KEY

–

Store-scoped API key. Required for the import-list and sync tools, and it unlocks prices

HERTWILL_API_URL

https://api.hertwill.com

Override the API base URL

Example prompts

  • "Find alpaca throws under €150 that ship to Finland."

  • "Add products 11167 and 9292 to my import list."

  • "Sync product 11167 to my store at €219."

  • "Is anything failing to sync in my store?"

Notes

  • Selling price is absolute. sync_product takes the retail price in your store's currency (e.g. 24.99), not a markup multiplier. The API rejects prices below wholesale with PRICE_BELOW_COST.

  • Variants. sync_product first adds the product to the import list (a no-op if it's already there), so it gets the authoritative (id, dropship_id) pairs. Every variant then gets selling_price, unless you override individual variants with variation_prices.

  • Confirmation before writes. If your client supports elicitation, sync_product and remove_from_import_list ask you to confirm first. For a sync, the prompt shows the product, your selling price and the wholesale cost. If you decline, nothing is synced or removed, and the tool returns status: "declined" (or "cancelled" if you dismissed the prompt). A declined sync still leaves the product in your import list, because sync_product stages it there before asking. The confirmation is bound to the exact arguments through a signed requestState, so a client cannot answer it in advance or reuse it for other arguments. Clients without form elicitation skip this step and rely on their own tool-approval prompt.

  • Structured output. Every tool declares an outputSchema and returns structuredContent, with the same JSON as text. List tools return objects: { categories }, { brands }, { price_lists }, { results }.

  • Rate limits. The API allows 60 requests/min per IP on public endpoints and 300/min per key on authenticated ones. A 429 comes back as a tool error that includes the retry delay.

  • Response size. List responses leave out HTML descriptions and facets by default. Pass include_description / include_facets to get them.

Development

npm install
npm run build
npx @modelcontextprotocol/inspector node dist/index.js   # interactive testing

# End-to-end smoke test against the live API. It's read-only; authenticated tools run only when a key is set.
HERTWILL_API_KEY=hw_live_xxx npm test                  # 2026-07-28 protocol
PROTOCOL=legacy HERTWILL_API_KEY=hw_live_xxx npm test  # 2025-era protocol

License

MIT

Available Tools

14 tools
add_to_import_listAdd products to import listA
Idempotent

Add 1–50 catalog products to your store's import list. Idempotent: re-adding returns status 'already_exists'. The response includes each product's variations (id, dropship_id) pairs. Requires HERTWILL_API_KEY.

Inputs: product_ids (required). Returns: results

get_brandGet brandA
Read-only

Get full details for one brand by numeric id, including return policy, GPSR and responsible person.

Inputs: brand_id (required). Returns: id, name, slug

get_brand_shipping_pricesGet brand shipping pricesA
Read-only

Get a brand's shipping price lists: per destination country price and delivery days. Optionally filter to one destination country.

Inputs: brand_id (required), destination. Returns: price_lists

get_categoryGet categoryB
Read-only

Get one category by id or slug.

Inputs: id_or_slug (required). Returns: id, name, slug, children, +1 more

get_productGet product detailsA
Read-only

Get full details for one catalog product by numeric id or slug, including variations (with their catalog variation ids), its public page url, images, attributes, shipping, packaging and compliance data. Note: wholesale price is null unless HERTWILL_API_KEY is configured.

Inputs: id_or_slug (required), lang. Returns: data, meta

get_sync_healthStore sync healthA
Read-only

Get your store's sync health (healthy / degraded / disabled), per-status counts and the failing products with their error class. Requires HERTWILL_API_KEY.

Inputs: no named parameters. Returns: object

get_sync_statusGet product sync statusB
Read-only

Get the sync status of one product in your store. Requires HERTWILL_API_KEY.

Inputs: product_id (required). Returns: object

list_brandsList brandsA
Read-only

List all brands (id, name, slug, dispatch days, shipping origin…). Long descriptions are omitted unless include_description is true. Use slugs as the brand filter in search_products.

Inputs: include_description. Returns: brands

list_categoriesList categoriesA
Read-only

List the product category tree (id, slug, name, children). Use slugs as the category filter.

Inputs: no named parameters. Returns: categories

list_import_listList import listA
Read-only

List products in your store's import list. Defaults to status 'not-synced' (products not yet in your store); pass status 'synced' for already-synced ones. Each item's id is the catalog product id to use with sync_product; variations holds the (id, dropship_id) pairs. Link a product as product_url_template with its slug filled in. Requires HERTWILL_API_KEY.

Inputs: page, order, status, order_by, +2 more. Returns: data, pagination, product_url_template

list_sync_jobsList sync jobsC
Read-only

List products by sync status (omit status for all). Requires HERTWILL_API_KEY.

Inputs: page, status, per_page. Returns: data, pagination

remove_from_import_listRemove product from import listA
DestructiveIdempotent

Remove a product from your store's import list. When the client supports it, the user is asked to confirm first; if they decline, nothing is removed and the result has status 'declined' (or 'cancelled' if they dismissed the prompt). Requires HERTWILL_API_KEY.

Inputs: product_id (required). Returns: object

search_productsSearch / browse productsA
Read-only

Search or browse the Hertwill dropshipping catalog with filters, sorting and pagination. Pass query for full-text search; omit it to browse. Returns compact product summaries without the HTML description or variations; call get_product for full details and variation ids. Link a product as meta.product_url_template with its slug filled in. Note: wholesale price is null unless HERTWILL_API_KEY is configured.

Inputs: page, brand, query, on_sale, +12 more. Returns: data, meta

sync_productSync product to storeA
Idempotent

Publish a product from your import list to your connected Shopify/WooCommerce store at the selling price you choose. selling_price is the ABSOLUTE retail price in your store currency (e.g. 24.99) — NOT a markup multiplier or percentage; it must be at or above the wholesale price. For products with variants, the variation (id, dropship_id) pairs are resolved automatically (the product is added to the import list first if needed); every variant gets selling_price unless overridden in variation_prices. When the client supports it, the user is asked to confirm the product, price and wholesale cost first; if they decline, nothing is synced and the result has status 'declined' (or 'cancelled' if they dismissed the prompt). Either way the product stays in the import list. Runs asynchronously — check progress with get_sync_status. Requires HERTWILL_API_KEY.

Inputs: product_id (required), selling_price (required), lang, currency, +1 more. Returns: status, variations_submitted

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 14 tools

    Disambiguation3/5

    Catalog-side tools (search_products, get_product, list/get_category, list/get_brand) are clearly distinct, but the store-side tools overlap heavily: get_sync_status, list_sync_jobs, get_sync_health and list_import_list all expose product sync state with different shapes, and an agent could plausibly reach for any of them to answer 'is this product synced?'.

    Naming Consistency5/5

    Names consistently follow a snake_case verb_noun pattern (get_, list_, search_, add_to_, remove_from_), with sync_product as the only bare verb_noun, which still fits the same convention. Prefixes map cleanly to read vs write operations.

    Tool Count4/5

    14 tools is well within a healthy range for a catalog-browse plus store-sync domain, and each maps to a recognizable operation. The sync-status trio (get_sync_status, list_sync_jobs, get_sync_health) is slightly redundant rather than essential.

    Completeness4/5

    The surface covers discovery (search/products/categories/brands/shipping prices), import-list add/remove/list, publish, and sync monitoring — a full lifecycle. Gaps exist around post-sync management: no explicit unpublish/delete-from-store tool and no dedicated price-update operation beyond re-running sync_product.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a multilingual, region-aware brand catalogue and click-through URL generation for MCP-compatible agents, enabling commerce recommendations with attribution tracking.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to work with one or many Horoshop stores through the public API, control panel and storefront cart — reading and updating the catalog, processing orders, managing SEO, redirects, marketplace feeds, design and settings. Write operations preview changes by default, require confirmations for bulk or irreversible actions, and verify results by reading them back.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Unifies Taobao, JD, and Pinduoduo product search, item detail lookup, and affiliate link conversion (including coupons) into one set of tools exposed to MCP clients, using only official open-platform APIs. Runs in mock mode with realistic fake data until per-platform credentials are supplied, so the full flow can be wired up and tested before appkeys are approved.
      4
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to search a product catalogue and safely change product prices and stock. It offers bounded read and write tools with version-checked, dry-run updates, least-privilege access modes, and actionable errors that help the model recover from conflicts.
      6
      MIT