GE

georgejeffers/etsy-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 7 forks 质量 56 趋势 20

Etsy MCP Server - Upload Listings, Edit Listings, All via an LLM through MCP!

概览

An MCP (Model Context Protocol) server for interacting with the Etsy API. This service handles authentication, API calls to Etsy for managing listings, shop details, shipping profiles, and image uploads. This service provides a set of tools accessible via the Model Context Protocol (MCP) to interact with the Etsy V3 API. It manages the OAuth 2.0 authentication flow (including PKCE token refresh), stores tokens securely, and exposes functionalities like creating listings, fetching shop data, managing shipping profiles, and uploading images. The goal is to simplify interactions with the Etsy API for MCP-compatible clients. This MCP server is primarily designed for development and tool integration. Please ensure you comply with Etsy's API Terms of Use. - 🔑 : Handles the complete Etsy OAuth2 flow with PKCE. - 🛍️ : Create, and retrieve Etsy listings. - ℹ️ : Fetch details for your Etsy shop. - 📦 : List and create shipping profiles for your shop.

README

以下为原文 README 节选,完整内容请查看原文。

Etsy MCP Server

An MCP (Model Context Protocol) server for interacting with the Etsy API. This service handles authentication, API calls to Etsy for managing listings, shop details, shipping profiles, and image uploads.

Overview

This service provides a set of tools accessible via the Model Context Protocol (MCP) to interact with the Etsy V3 API. It manages the OAuth 2.0 authentication flow (including PKCE token refresh), stores tokens securely, and exposes functionalities like creating listings, fetching shop data, managing shipping profiles, and uploading images. The goal is to simplify interactions with the Etsy API for MCP-compatible clients.

This MCP server is primarily designed for development and tool integration. Please ensure you comply with Etsy’s API Terms of Use.

Features

  • 🔑 OAuth2 Authentication: Handles the complete Etsy OAuth2 flow with PKCE.
  • 🛍️ Listing Management: Create, and retrieve Etsy listings.
  • ℹ️ Shop Information: Fetch details for your Etsy shop.
  • 📦 Shipping Profiles: List and create shipping profiles for your shop.
  • 🖼️ Image Uploads: Upload images and associate them with your listings.
  • 🔧 Default Shop Management: Set and get a default shop for easier multi-shop use.
  • 🔒 Secure Token Storage: Persists OAuth tokens securely.

Installation

Prerequisites

  • Node.js (version 18.0.0 or higher recommended - see package.json engines)
  • npm (usually comes with Node.js) or yarn

Manual Installation

  1. Clone the repository (replace with your repository URL if you host it on GitHub/GitLab etc.):

    git clone 
    cd etsy-mcp
    

    (If you’re working locally, you can skip the clone and just cd into the project directory.)

  2. Install dependencies:

    npm install
    

    Or if you use yarn:

    yarn install
    
  3. Configure Environment Variables: Copy the .env.example file to a new file named .env:

    cp .env.example .env
    

    Then, open .env and fill in your Etsy App credentials:

    ETSY_API_KEY=YOUR_ETSY_APP_API_KEY
    ETSY_CLIENT_SECRET=YOUR_ETSY_APP_CLIENT_SECRET
    # Optional: define a specific host and port for the OAuth callback redirect URI
    # ETSY_MCP_HOST=localhost
    # ETSY_MCP_OAUTH_PORT=3003
    # ETSY_MCP_REDIRECT_URI=http://localhost:3003/oauth/callback
    # Optional: define a custom path for token storage and logs
    # ETSY_MCP_TOKEN_PATH=/path/to/your/token_storage_directory
    # ETSY_MCP_LOG_PATH=/path/to/your/logs_directory
    # Optional: Your default shipping profile ID for physical items
    # SHIPPING_PROFILE_ID=YOUR_DEFAULT_SHIPPING_PROFILE_ID
    

    Note: The REDIRECT_URI in your .env file (or the default http://localhost:3003/oauth/callback) must match one of the redirect URIs configured for your Etsy App.

Usage

Run the Service

  • For production/built version:
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Etsy MCP": { "command": "npm", "args": ["run", "dev"], "env": { "ETSY_API_KEY": "YOUR_ETSY_API_KEY_HERE", "ETSY_CLIENT_SECRET": "YOUR_ETSY_CLIENT_SECRET_HERE" // Add other ENV VARS from your .env if needed, e.g., REDIRECT_URI // "REDIRECT_URI": "http://localhost:3003/oauth/callback" // "SHIPPING_PROFILE_ID": "YOUR_DEFAULT_SHIPPING_PROFILE_ID_HERE" }, "cwd": "/Users/name/Desktop/repos/ai gemini apps/etsy_api/etsy-mcp" // IMPORTANT: Update this to the correct absolute path of your project } } }