Skip to main content

Add your description here

Project description

Shopify MCP Server

A Model Context Protocol (MCP) server to connect clients like Claude with Shopify store data. This server exposes tools for retrieving product and customer information from your Shopify store.

Tools

  • get-product-list: Retrieve a list of products from your Shopify store
  • get-customer-list: Retrieve a list of customers from your Shopify store
  • More to come soon

Prerequisites

  • Python 3.12 or higher
  • A Shopify store with API access
  • Shopify API credentials (API Key, Password, and Access Token)

Installation

  1. Clone the repository:
git clone https://github.com/siddhantbajaj/shopify-mcp-server.git
cd shopify-mcp-server
  1. Create and activate a virtual environment using uv:
uv venv
source .venv/bin/activate  # On Unix/MacOS
# or
.venv\Scripts\activate  # On Windows
  1. Install the package:
uv pip install -e .

Configuration

  1. Create a .env file in the root directory with your Shopify credentials:
SHOPIFY_SHOP_URL="your-store.myshopify.com"
SHOPIFY_API_KEY="your_api_key"
SHOPIFY_PASSWORD="your_api_password"
SHOPIFY_ACCESS_TOKEN="your_access_token"

Replace the placeholder values with your actual Shopify API credentials.

Usage

  1. Start the MCP server:
python -m shopify_mcp_server.server
  1. The server exposes two tools:

get-product-list

Retrieves a list of products from your Shopify store.

  • Optional parameter: limit (default: 10) - Maximum number of products to return

get-customer-list

Retrieves a list of customers from your Shopify store.

  • Optional parameter: limit (default: 10) - Maximum number of customers to return

Tool Response Format

Products

Products (showing X):

Title: Product Name
ID: 123456789
Product Type: Type
Vendor: Vendor Name
Status: active
Price: $XX.XX
---

Customers

Customers (showing X):

Name: John Doe
ID: 123456789
Email: john@example.com
Orders Count: X
Total Spent: $XX.XX
---

Development

This project uses:

Security

  • Never commit your .env file to version control
  • Keep your Shopify API credentials secure
  • Use environment variables for sensitive information

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orange4_shopify_mcp_server-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orange4_shopify_mcp_server-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file orange4_shopify_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for orange4_shopify_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf078fd3e43746625d02d52a0b7656624b1dfc2410d99be8e7c0f6771cf7e6fe
MD5 1103507b9dbd7534448673d7d6ec4891
BLAKE2b-256 5fef0d74c660c66cb09ed838a099842aa9ad242ed129efe22f7bca54c469fdef

See more details on using hashes here.

File details

Details for the file orange4_shopify_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for orange4_shopify_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2167daccb16ec0930e948493d6d5f14c22bac3f72f8f58446f488949c64796e1
MD5 232340ea99370168c9cd2462538f74e5
BLAKE2b-256 4170cf886cfcb43b4b24a884e25e1e9d275f983e4d8ed7b8c69ad75fc0c1af24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page