Skip to main content
Glama
Etsy Store MCP

Etsy Store MCP

by Minagera

Etsy Store MCP

An MCP (Model Context Protocol) server that connects Claude to the Etsy Open API v3 for your own shop — search and manage listings, set required category attributes, fix prices through the correct endpoint, upload images and digital files, and publish, all as tools Claude can call directly.

Features

  • Digital and physical listings — create_draft_listing takes an explicit listing_type (physical | download | both), so digital goods don't get stuck behind a shipping_profile_id requirement that only applies to physical items.

  • Category properties — get_taxonomy_properties, get_listing_properties, and update_listing_property handle categories (e.g. Clip Art & Image Files) that reject publishing until a required attribute like "Craft type" is set.

  • Price updates that actually work — update_listing_price goes through Etsy's inventory/offerings endpoint, since the plain listing PATCH endpoint silently ignores price and quantity for most listings.

  • Automatic OAuth token refresh — once you provide a refresh token, the server refreshes its own access token proactively before it expires and reactively on a 401, persisting the rotated token to a local cache file so you don't have to re-run the OAuth script by hand.

  • Filterable taxonomy search — search_taxonomy accepts an optional query/parent_id filter instead of always pulling the entire category tree.

Related MCP server: etsy-mcp-server

Setup

1. Install dependencies

npm install

2. Get Etsy API credentials

  1. Create an app in the Etsy Developer Portal to get an API key (keystring and shared_secret).

  2. Run Etsy's OAuth 2.0 authorization flow once to get an access token and refresh token with the scopes you need (listings_r, listings_w, shops_r, and listings_d if you want delete_listing).

3. Configure environment variables

Variable

Required

Description

ETSY_TOKEN

Yes

<keystring>:<shared_secret> from your app, joined with a colon. Sent as the x-api-key header on every request; the keystring half also acts as client_id for token refresh.

ETSY_OAUTH_TOKEN

No

OAuth access token with listings_w (and listings_r/shops_r/listings_d as needed). Required for any write, and for a few reads Etsy itself scopes to OAuth (shipping profiles, listing properties). Only used to seed the token cache on first run if ETSY_REFRESH_TOKEN is also set.

ETSY_REFRESH_TOKEN

No

Enables automatic token refresh. When set, the server keeps its access token fresh on its own — see below.

ETSY_SHOP_ID

No

Default shop ID, so you don't need to pass shop_id on every call.

4. Run

node index.js

The server speaks MCP over stdio. Point your MCP client (e.g. Claude Desktop, or a claude_desktop_config.json entry) at node index.js in this directory, or package it as a .dxt extension using manifest.json.

Automatic token refresh

If you set ETSY_REFRESH_TOKEN, the server maintains its own token cache at .etsy-token-cache.json next to index.js. It refreshes the access token:

  • proactively, within 5 minutes of the cached token's expiry, and

  • reactively, if a call ever comes back with an expired/invalid token error, retrying that call once with the new token.

Etsy rotates the refresh token on every use, so the newly issued refresh token is saved back to the cache each time. Concurrent tool calls that all observe a near-expiry token share a single in-flight refresh instead of each triggering their own, which would otherwise race against Etsy's rotation.

.etsy-token-cache.json holds a live, working OAuth token pair once the server has run. It is gitignored — never commit it. Anyone with that file can act on your shop until the tokens are revoked.

Without ETSY_REFRESH_TOKEN, the server falls back to the static ETSY_OAUTH_TOKEN, which you'll need to refresh yourself once it expires (Etsy access tokens are typically valid for about an hour).

Available tools

Read (API key only, unless noted):

  • ping — health check against the Etsy API.

  • get_shop, find_shops — shop lookup and search.

  • get_active_listings, get_listing, get_listing_images, get_listing_inventory — listing lookup.

  • search_taxonomy — seller taxonomy tree, filterable by query/parent_id.

  • get_taxonomy_properties — required/optional product properties for a taxonomy category, with their valid values.

  • get_shipping_profiles (requires OAuth, shops_r) — a shop's shipping profiles.

  • get_listing_properties (requires OAuth) — properties currently set on a listing, plus which required properties are still missing.

Write (require an OAuth access token with listings_w):

  • create_draft_listing — create a physical, digital, or combined draft listing.

  • upload_listing_image — attach an image to a listing.

  • upload_listing_file — attach the digital deliverable to a download/ both listing.

  • update_listing — update title, description, tags, category (taxonomy_id), or state (e.g. publish a draft). Does not change price/quantity — use update_listing_price instead.

  • update_listing_price — change price (and optionally quantity) through the listing's inventory/offerings endpoint.

  • update_listing_property — set a required or optional product property (e.g. Craft type, Occasion, Color).

  • delete_listing_property — remove one property from a listing (e.g. a Craft type that doesn't fit).

  • delete_listing (requires listings_d) — permanently delete a listing.

Hosting on Cloudflare (remote connector)

The worker/ folder is the same server built as a Cloudflare Worker, so you can add it to Claude as a custom connector and use it from anywhere (Claude on the web, the phone app, cloud sessions) instead of only from the computer running node index.js. The local stdio server above is unchanged.

What's different in the hosted version:

  • Sign-in through Etsy. Connecting it in Claude shows a consent page, then sends you to Etsy to sign in. The server checks that the Etsy account that signed in owns ETSY_SHOP_ID and refuses anyone else. There's no separate password to manage.

  • Tokens live in Cloudflare KV, saved when you sign in and refreshed automatically. No token cache file, and no OAuth script to run by hand.

  • One shop only. Shop-scoped tools no longer take a shop_id.

  • Images and files by URL. upload_listing_image takes image_url (or image_base64) and upload_listing_file takes file_url (or file_base64), since a hosted server can't read paths on your computer. Links have to be direct downloads over https, up to 20 MB.

  • Private files from GitHub. Both upload tools also take github_path (and an optional github_ref branch, tag or commit) to read a file from one private repo, set by the GITHUB_FILES_REPO var in wrangler.jsonc. That covers files too big for base64 that shouldn't sit at a public link, like the PDFs a buyer pays for. It needs a GITHUB_TOKEN secret that can read that repo (npx wrangler secret put GITHUB_TOKEN). The worker only ever does a GET on that one repo's contents, and only for plain relative paths.

  • New get_shop_listings tool lists drafts, inactive, sold out or expired listings, not just active ones.

Setup

You need Node 20 or newer and a Cloudflare account. All commands run from the worker/ folder.

  1. Install and log in.

    cd worker
    npm install
    npx wrangler login
  2. Create the KV namespace and paste the id it prints into wrangler.jsonc in place of REPLACE_ME_KV_NAMESPACE_ID.

    npx wrangler kv namespace create etsy-mcp-oauth
  3. Fill in the two vars in wrangler.jsonc: ETSY_SHOP_ID (your shop's numeric ID) and PUBLIC_URL. The Worker's address is https://etsy-mcp.<your-subdomain>.workers.dev; your subdomain is shown in the Cloudflare dashboard under Workers & Pages. No trailing slash.

  4. Set the Etsy API key as a secret. Paste <keystring>:<shared_secret> when it asks. It never goes in a file.

    npx wrangler secret put ETSY_TOKEN
  5. Deploy.

    npx wrangler deploy

    Open PUBLIC_URL in a browser. It should say etsy-mcp is running.

  6. Register the callback with Etsy. In the Etsy developer portal, open your app and add this callback URL (it has to match exactly):

    https://etsy-mcp.<your-subdomain>.workers.dev/etsy/callback
  7. Add it to Claude. Settings, Connectors, Add custom connector. Use the URL https://etsy-mcp.<your-subdomain>.workers.dev/mcp and leave the OAuth client fields empty. Click Connect, approve the consent page, and sign in to Etsy as the shop owner.

To use a domain of your own instead of workers.dev, add a custom domain to the Worker in the Cloudflare dashboard, then change PUBLIC_URL, the Etsy callback URL, and the connector URL to match, and deploy again.

If something goes wrong

  • "Etsy access has lapsed" in a tool result: the Etsy refresh token expired or was revoked. Disconnect and reconnect the connector in Claude.

  • "That Etsy account doesn't own the shop": you signed in to Etsy as a different account, or ETSY_SHOP_ID is wrong.

  • Etsy shows an error about the redirect URI: the callback URL in the Etsy app doesn't exactly match PUBLIC_URL plus /etsy/callback.

  • Logs: npx wrangler tail.

Developing

cp .dev.vars.example .dev.vars   # then fill in ETSY_TOKEN
npm run typecheck
npm test
npm run dev                      # http://localhost:8787

The tests run the whole connect flow (registration, consent, Etsy sign-in, token exchange) and the MCP endpoint against an in-memory KV and a fake Etsy, so they need no keys or network.

Security notes

  • Never commit ETSY_TOKEN, ETSY_OAUTH_TOKEN, ETSY_REFRESH_TOKEN, .etsy-token-cache.json, or worker/.dev.vars. All are gitignored by default in this repo. On Cloudflare, ETSY_TOKEN is a Worker secret and the OAuth tokens live in KV.

  • If a refresh or access token is ever exposed (e.g. pasted into a chat or committed by mistake), revoke it from the Etsy Developer Portal and re-run the OAuth flow immediately.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search for products, retrieve listing details, get shop information, discover trending items, and access reviews on Etsy through the Etsy API v3.
      7
      21
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A full-featured MCP server for the Etsy Open API v3 that enables managing an Etsy shop, including listings, inventory, images, digital files, and orders, through Claude or any MCP-compatible client.
      26
      2
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables Claude to read shop data, listings, inventory, and orders from the WandPad Etsy shop using the official Etsy API v3, with optional write capabilities for listings when explicitly enabled and confirmed.
      22
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Wraps the Etsy Open API v3 in pure capability primitives so AI agents can read and manage shops, listings, images, inventory, translations, digital files, receipts, payments, shipping profiles, taxonomy, reviews, users and buyer addresses, plus bulk listing and alt-text updates. It contains no baked-in scoring, SEO or tag-generation heuristics, leaving all judgment to the calling model.
      MIT