A TypeScript-based MCP server for interacting with the Etsy API, featuring a simple notes system.
This project exposes a subset of the Etsy API through the Model Context Protocol. It allows tools to be called from an MCP client to retrieve shop data and manage listings.
The server requires a valid Etsy API keystring, shared secret, and OAuth refresh token. You can provide these credentials in two ways:
ETSY_API_KEY
, ETSY_SHARED_SECRET
, and ETSY_REFRESH_TOKEN
.etsy_mcp_settings.json
file by copying etsy_mcp_settings.example.json
and filling in your credentials.If you do not yet have a refresh token, run the following helper script:
npx tsx src/get-refresh-token --keystring YOUR_KEY --shared-secret YOUR_SECRET
The script opens a browser window for authentication and prints the refresh token to the console.
These instructions are for running the server directly on your machine for development purposes.
First, install dependencies:
npm install
Then, build the server:
npm run build
You can also use npm run watch
to automatically rebuild the server when you make code changes.
For local development, place your etsy_mcp_settings.json
file in the project root directory (same level as package.json
). The server will automatically detect and load it.
After building, start the server with:
npm start
Important: This MCP server communicates over stdio and is designed to be connected to by MCP clients (like Claude Desktop, Cline, or other MCP-compatible applications). When run directly, it will start and wait for MCP protocol messages. To test functionality, use the MCP Inspector (see Debugging section) or connect it to an MCP client.
To use this server with an MCP client, you typically need to:
The server will be started automatically by the MCP client when needed.
This is the recommended method for deployment or for running the server in a standardized environment.
First, build the Docker image from the repository root:
docker build -t etsy-mcp-server .
For Docker usage, your etsy_mcp_settings.json
file should be located in the same directory where you run the docker run
command. The ./
in the volume mount refers to your current working directory.
Important: MCP servers are not long-running background services. When you start the container, it will:
This is normal behavior. The container is designed to be started by MCP clients when needed, not to run continuously like a web server.
You can supply your Etsy credentials either as environment variables or by mounting your settings file.
Option 1: Using Environment Variables
Bash:
docker run --rm \
-e ETSY_API_KEY=YOUR_KEY \
-e ETSY_SHARED_SECRET=YOUR_SECRET \
-e ETSY_REFRESH_TOKEN=YOUR_TOKEN \
etsy-mcp-server
PowerShell:
docker run --rm `
-e ETSY_API_KEY=YOUR_KEY `
-e ETSY_SHARED_SECRET=YOUR_SECRET `
-e ETSY_REFRESH_TOKEN=YOUR_TOKEN `
etsy-mcp-server
Option 2: Using a Settings File
Create an etsy_mcp_settings.json
file in your current directory. Then, mount it into the container using the -v
flag:
Bash:
docker run --rm \
-v ./etsy_mcp_settings.json:/usr/src/app/etsy_mcp_settings.json \
etsy-mcp-server
PowerShell:
docker run --rm `
-v ./etsy_mcp_settings.json:/usr/src/app/etsy_mcp_settings.json `
etsy-mcp-server
To use this Docker container with MCP clients:
Example MCP client configuration:
{
"command": "docker",
"args": [
"run",
"--rm",
"-v",
"./etsy_mcp_settings.json:/usr/src/app/etsy_mcp_settings.json",
"etsy-mcp-server"
]
}
The MCP client will automatically start the container when it needs to use the Etsy tools and stop it when done.
getShop
Fetch information about a shop.
Required argument: shop_id
.
getMe
Return basic info about the authenticated user, including user_id
and
shop_id
. This endpoint takes no arguments.
getListingsByShop
List the listings in a shop. Supports an optional state
parameter (e.g. active
, draft
). Requires shop_id
.
createDraftListing
Create a new physical draft listing using POST /v3/application/shops/{shop_id}/listings
.
The tool accepts all fields supported by Etsy's createDraftListing
endpoint.
uploadListingImage
Upload an image to a listing. Requires shop_id
, listing_id
and image_path
.
(Implementation is currently a placeholder.)
updateListing
Update an existing listing. Requires shop_id
and listing_id
. Optional fields include title
, description
and price
.
getShopReceipts
Retrieve receipts for a shop. Requires shop_id
.
getShopSections
Retrieve the list of sections in a shop. Requires shop_id
.
getShopSection
Retrieve a single shop section by shop_id
and shop_section_id
.
getSellerTaxonomyNodes
Retrieve the full hierarchy of seller taxonomy nodes.
getPropertiesByTaxonomyId
List product properties supported for a specific taxonomy node. Requires taxonomy_id
.
For debugging and testing the server functionality, use the MCP Inspector with the local development setup:
npm run inspector
The inspector will:
Important: The MCP Inspector only works with the local development setup, not with Docker. This is because:
For Development and Testing: Use local development with the MCP Inspector
npm run build
npm run inspector
For Deployment: Use Docker with MCP clients
docker build -t etsy-mcp-server .
# Then use with your MCP client
This approach gives you the best of both worlds: interactive debugging locally and reliable deployment with Docker.
A collection of Model Context Protocol (MCP) servers for various tasks and integrations, supporting both Python and Node.js environments.
FastAPI and MCP service providing Islamic prayer times and other useful calculations.
A virtual travel environment for an avatar on Google Maps, utilizing various Google Maps and optional AI image generation APIs.
Access real-time gaming data across popular titles like League of Legends, TFT, and Valorant, offering champion analytics, esports schedules, meta compositions, and character statistics.
Send Nano currency and retrieve account and block information using the Nano node RPC.
Provides AI agents with read-only access to SignalK marine data systems, enabling queries of vessel navigation data, AIS targets, and system alarms.
MCP Server for DealX platform
Enable AI Agents to purchase anything in a secure way using Fewsats
Connects Large Language Models (LLMs) with Guild Wars 2 data sources. Requires a Guild Wars 2 API key for wallet functionality.
An MCP server for accessing Bazi (Chinese astrology) data, requiring an API key.