Skip to main content
Glama
@shareawish/mcp

@shareawish/mcp

Official
by shareawish

@shareawish/mcp

CI npm

Two Model Context Protocol servers (stdio) so that Claude, Cursor, Copilot & Co. can work with Share a Wish directly:

Server

Binary

For whom

What it does

Creator Shop

shareawish-creator-mcp

Creators / affiliates

Create and manage creator shops: handle check, shop create/update/publish, logo & cover upload, lists, products by URL (scraped) or manual, affiliate-link and title/image/price overrides, catalog search, product videos (upload, hide, delete), analytics, earnings. Also docs_search, snippet_save_button, snippet_basket (no credentials) so an agent can embed the save button / basket on the creator's own site.

Wishlist Integration

shareawish-wishlist-mcp

Shop developers / agencies

API keys (test/live) and domain allowlists, basket (wishlist drawer + checkout) configurations and webhook test, save-button and basket embed snippets (HTML/React/Vue/Shopify/WooCommerce), usage vs. plan limits, plan table, docs search and OpenAPI lookup.

Both are single-file bundles without runtime dependencies (Node ≥ 18).

Install

  1. Create a personal access token in the Partner Portal → Account Settings → Access tokens & AI agents (saw_pat_…, shown once).

  2. Add the server to your MCP client. Every Partner Portal account can use it, the Free plan included; plan limits apply exactly as in the portal.

Claude Code:

claude mcp add shareawish-creator  -e SHAREAWISH_TOKEN=saw_pat_… -- npx -y -p @shareawish/mcp shareawish-creator-mcp
claude mcp add shareawish-wishlist -e SHAREAWISH_TOKEN=saw_pat_… -- npx -y -p @shareawish/mcp shareawish-wishlist-mcp

Cursor / Windsurf / Claude Desktop / VS Code (mcpServers in the client config):

{
  "mcpServers": {
    "shareawish-creator": {
      "command": "npx",
      "args": ["-y", "-p", "@shareawish/mcp", "shareawish-creator-mcp"],
      "env": { "SHAREAWISH_TOKEN": "saw_pat_…" }
    },
    "shareawish-wishlist": {
      "command": "npx",
      "args": ["-y", "-p", "@shareawish/mcp", "shareawish-wishlist-mcp"],
      "env": { "SHAREAWISH_TOKEN": "saw_pat_…" }
    }
  }
}

From source: git clone https://github.com/shareawish/mcp && cd mcp && npm install && npm run build, then use node dist/creator.js / node dist/wishlist.js as the command.

Related MCP server: MCP Affiliate Server

Authentication

Variable

Notes

SHAREAWISH_TOKEN

Recommended. Personal access token from the Partner Portal. Revocable, expires after 365 days by default, cannot create other tokens.

SHAREAWISH_EMAIL + SHAREAWISH_PASSWORD

Local use only. Signs in on first use, refreshes automatically.

SHAREAWISH_ACCESS_TOKEN

A session access token (valid ~1 h, no refresh).

SHAREAWISH_REFRESH_TOKEN

Refresh token of a Partner Portal session.

Docs, snippet and plan tools of the Wishlist server work without credentials. Nothing is written to disk. Use one token per machine or agent and revoke it when you are done.

Optional: SHAREAWISH_API_BASE, SHAREAWISH_PARTNER_API_BASE, SHAREAWISH_DOCS_URL, SHAREAWISH_SUPABASE_URL, SHAREAWISH_SUPABASE_ANON_KEY (defaults point at production).

Typical sessions

Creator: whoami → shops_check_handle → shops_create → shops_upload_image(type=logo, source=./logo.png) → lists_create → products_add_by_url(source_url, affiliate_url) → media_upload_video(product_id, source=./clip.mp4) → shops_publish(status=live). The public shop is https://shareawish.shop/<handle>.

Shop integrator: whoami → keys_create(environment=test) → snippet_save_button(framework=react, public_key=pk_test_…) → widget_init_check(public_key, origin=http://localhost:3000) → baskets_create(name, cart_url|webhook_url) → snippet_basket(config_id=bkt_…) → later keys_create(environment=prod, allowed_domains=[…]), usage_get.

Test

npm run smoke                  # offline: protocol, tool list, snippets, docs, error surfacing
SHAREAWISH_EMAIL=… SHAREAWISH_PASSWORD=… node scripts/smoke.mjs all --live   # against the live API
SHAREAWISH_EMAIL=… SHAREAWISH_PASSWORD=… npm run e2e:creator    # creates a draft shop, uploads logo + video, adds a product, publishes, reads it publicly, sets it back to draft
SHAREAWISH_EMAIL=… SHAREAWISH_PASSWORD=… npm run e2e:wishlist   # test key → widget init → basket config → snippets → allowlist → revoke

Run the end-to-end scripts with a dedicated test partner: they write real rows (shops stay behind as drafts).

Which server for what

Need

Server / tool

Public API key (pk_test_… / pk_live_…), domain allow-list

shareawish-wishlist: keys_create, keys_domains_set, widget_init_check — or Partner Portal → API & Integrations

Basket configuration (bkt_…)

shareawish-wishlist: baskets_create — or Partner Portal → Basket Integration

Embed snippets, docs search, basket know-how

both servers: snippet_save_button, snippet_basket (drawer / inline / page), basket_guide, docs_search (no credentials)

Creator shops, lists, products, videos, analytics

shareawish-creator

Each server's instructions point to the other one. whoami on both servers returns the partner (email, name, plan) and the session type.

Basket needs https (localhost excepted). https://shareawish.shop/basket is served with Content-Security-Policy: frame-ancestors 'self' https: http://localhost:* http://127.0.0.1:* — http://localhost works for local tests, any other http:// page shows an empty iframe. The basket SDK logs insecure_origin and dispatches sharewish:basket.error in that case.

Notes

  • Tool names use snake_case (shops_create, keys_domains_set) for maximum client compatibility.

  • shops_list and lists_list return compact rows (id, name, handle/slug, public, counts, …) with q, limit/offset paging and next_offset; pass full=true for the raw records or use shops_get / lists_get. Raw output for a partner with 170 shops is ~250 KB and exceeds most clients' tool-result limits.

  • shops_update merges settings with the current values (the API overwrites the whole JSON otherwise).

  • products_add_by_url first calls the scrape preview to reuse an existing catalog product, then adds the item with your affiliate_url.

  • media_upload_video: MP4/MOV up to 200 MB; Creator Free allows 5 ready videos per shop. Every video belongs to one primary product (product_id); product_ids links further products that are shown next to the video in the shop's video feed (https://shareawish.shop/<handle>, "Videos" row). media_update(product_ids=[...]) replaces those links.

  • Live keys created after 2026-09-01 need at least one allowed domain; localhost is always allowed.

Changelog

  • 0.1.5 — Basket: basket_guide (config fields, drawer/inline/page embedding, checkout mechanics, events) on both servers; snippet_basket gets mode (drawer default) and the add-to-cart bridge; basket schema aligned with the API (layout cards, checkout add-to-cart|direct-checkout|custom-callback, cart_button_text, view_button_text, shop_name, explore_url, popular_url, every field described). Requires basket-integration.js with drawer() (deployed 2026-09-14).

  • 0.1.4 — Creator server: whoami returns the partner profile (email, name, plan) and shop counts; shops_list / lists_list return compact, filterable, paged rows (full=true for raw records); docs_search, snippet_save_button, snippet_basket added; instructions point to the wishlist server for keys and baskets. Wishlist server: whoami includes the partner profile; baskets_create and snippet_basket state the https requirement of the basket iframe (localhost excepted). Shared docs/snippet module.

  • 0.1.3 — Product videos: product_ids on media_upload_video / media_update.

Available Tools

31 tools
analytics_kpisAnalytics KPIsB

Shop visits, product clicks, saves and list clicks over a date range (one shop or all).

Inputs: to, from, list_id, shop_id.

analytics_top_productsTop productsC

Most clicked/saved products of a shop.

Inputs: to, from, shop_id.

basket_guideBasket guideA

How the wishlist basket works and how to integrate it well: config fields (layout, colours, typography, animation, labels, empty state), embedding patterns (drawer/side panel, inline, standalone page, Shopify), checkout mechanics (webhook, add-to-cart bridge, cart URL pattern, view product), events. No credentials needed. Read before baskets_create.

Inputs: topic.

earnings_summaryEarningsC

Affiliate earnings, clicks, conversions and payouts of a shop (70/30 rev-share on Awin conversions).

Inputs: shop_id (required), months.

lists_createCreate listC

Create a product list in a shop (e.g. "Herbst-Favoriten").

Inputs: name (required), shop_id (required), is_public, cover_image, +3 more.

lists_deleteDelete listB

Delete a list (products stay in the shop catalog).

Inputs: list_id (required), shop_id (required).

lists_getGet listC

A list with its products (each with listItemId, offerId, overrides).

Inputs: list_id (required), shop_id (required).

lists_listList listsB

Lists (collections) of a shop as compact rows (id, name, slug, public, featured, product count, market, short description). full=true returns the raw records.

Inputs: shop_id (required), q, full, limit, +1 more.

lists_updateUpdate listA

Rename/describe a list, toggle public/featured, or reorder+prune products by passing the full ordered product id array.

Inputs: list_id (required), shop_id (required), name, products, +4 more.

media_deleteDelete product videoB

Delete a product video and its files.

Inputs: id (required).

media_listList product videosA

Product videos of the partner (optionally filtered by product/shop) plus the plan limit.

Inputs: shop_id, product_id.

media_updateUpdate product videoA

Change title/caption/language/position, hide/show (status hidden|ready) or replace the additionally linked products (product_ids; the primary product_id is kept).

Inputs: id (required), title, status, caption, +3 more.

media_upload_videoUpload product videoB

Upload an MP4/MOV (max 200 MB) for a product from a local path or URL, optionally with a poster image, and publish it (status ready). A video always belongs to at least one product (product_id); product_ids links further products that are shown next to the video in the shop's video feed. Creator Free: 5 ready videos per shop.

Inputs: source (required), product_id (required), title, width, +7 more.

products_add_by_urlAdd product by URLA

Add a product to a list from its shop URL. The page is scraped for title/image/price; affiliate_url is the link visitors will click (may equal source_url). Optional overrides for title/image/description/price.

Inputs: list_id (required), shop_id (required), source_url (required), affiliate_url (required), +9 more.

products_add_existingAdd catalogue product to listA

Place a catalogue product into a list. Pass product_id when the catalog_search hit has one (Amazon/existing product – Amazon gets the shop's Amazon tag automatically), otherwise its raw_product_id (Awin feed row – product, affiliate link and feed price are created automatically). An explicit affiliate_url and overrides win over these defaults.

Inputs: list_id (required), shop_id (required), product_id, market_code, +6 more.

products_add_manualAdd manual productA

Add a product with your own data (no scraping) to the shop catalog. Use lists_update(products) or products_add_existing to place it in a list.

Inputs: title (required), shop_id (required), affiliate_url (required), tags, +8 more.

products_preview_urlPreview product URLA

Scrape a product page (title, image, price, brand) without adding it. Returns productId to reuse in products_add_by_url.

Inputs: url (required), market_code.

products_remove_itemRemove list itemC

Remove a product from a list.

Inputs: item_id (required), list_id (required), shop_id (required).

products_update_itemUpdate list itemC

Change the affiliate link or overrides of a product in a list (item_id = listItemId from lists_get).

Inputs: item_id (required), list_id (required), shop_id (required), available, +9 more.

shops_check_handleCheck handleA

Check whether a shop handle (URL slug, e.g. "lenas-picks") is available. Returns a slugified suggestion.

Inputs: handle (required), exclude_shop_id.

shops_createCreate shopA

Create a creator shop (draft). Handle becomes the public URL https://shareawish.shop/. Publish later with shops_publish.

Inputs: name (required), handle (required), settings, template, +2 more.

shops_getGet shopB

Full shop record (name, handle, description, template, settings, images, markets, publish state).

Inputs: shop_id (required).

shops_listList shopsA

Creator shops of the partner as compact rows (id, name, handle, public, url, template, markets, followers, updated_at). Filter with q, page with limit/offset; full=true returns the raw records (large – settings, description, images).

Inputs: q, full, limit, offset, +1 more.

shops_publishPublish shopA

Set the shop live (public) or back to draft.

Inputs: status (required), shop_id (required).

shops_updateUpdate shopC

Update name/description/template/handle/markets/settings. Settings are merged with the existing ones.

Inputs: shop_id (required), name, domain, handle, +4 more.

shops_upload_imageUpload shop imageA

Upload a logo or cover image from a local file path or an http(s) URL (max 10 MB; jpg/png/webp) and attach it to the shop.

Inputs: type (required), source (required), shop_id (required).

snippet_basketBasket snippetA

Copy-paste code for the wishlist basket: mode "drawer" (side panel opened from a header button – recommended), "inline" (section on a page) or "page" (standalone wishlist page); frameworks html, react, shopify, woocommerce. Includes the add-to-cart bridge (onAddToCart → respond). Needs a basket config id (bkt_…, created with baskets_create on the shareawish-wishlist server or in the Partner Portal). The embedding page must be https (http://localhost is allowed).

Inputs: mode, config_id, framework, public_key.

snippet_save_buttonSave-button snippetA

Copy-paste code for the save-to-wishlist button on any website (html, react, vue, shopify). Keys come from the shareawish-wishlist server (keys_create) or the Partner Portal → API & Integrations → API Keys; without a key a placeholder is used.

Inputs: framework, public_key.

whoamiWho am IA

Verify credentials and show the signed-in partner (email, name, plan) and the number of shops. Call this first.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 31 tools

    Disambiguation4/5

    Domains are clearly separated by prefix (shops_, lists_, products_, media_, analytics_, snippet_), so most tools are easy to select. The main soft spot is the trio products_add_existing / products_add_by_url / products_add_manual plus products_preview_url, which all revolve around getting a product in; the descriptions do distinguish them (catalog hit vs scraped URL vs manual data vs dry-run preview), but the agent must read carefully to pick correctly.

    Naming Consistency4/5

    A predictable <domain>_<verb>_<object> convention holds almost everywhere (shops_list, shops_check_handle, products_add_by_url, media_upload_video, lists_delete). Minor deviations exist: whoami and basket_guide have no domain prefix, and products_update_item / products_remove_item use an item suffix that relies on the description to be understood, but overall the pattern is readable and stable.

    Tool Count3/5

    31 tools is heavy for a single server, though the surface genuinely spans several domains (shops, lists, products, media, analytics/earnings, snippets, docs). The prefix grouping keeps it navigable, but the products family in particular carries five near-adjacent tools that inflate the count.

    Completeness3/5

    Lists have full CRUD, shops have create/read/update/publish/image, and media has full lifecycle, so core flows are covered. Notable gaps remain: there is no tool to list, update or delete a shop-catalog product created via products_add_manual (only list-item overrides and removal), no shop deletion, and analytics/earnings are summary-only with no conversion-level or product-catalog enumeration.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to save product URLs to a user's Wishfinity wishlist. When recommending products, the AI can generate a clickable link that saves items for later purchase or gifting.
      1
      1,168 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search products and generate affiliate links across European and global affiliate networks, automating product discovery and link creation for monetization.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI shopping agents to search products, check stock, apply promotions, manage cart sessions, and create cryptographically signed checkout sessions on e-commerce storefronts, while giving merchants analytics into agent intent and catalog demand gaps.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to browse public wishlists, check available gifts within budget, reserve items, and draft coordination messages without scraping or clicking through the UI.
      MIT