amElnagdy/mcp-server-for-woo-crash-course
If you are the rightful owner of mcp-server-for-woo-crash-course and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
MCP for WooCommerce is a Python-based server application designed to integrate the Model Context Protocol (MCP) with WooCommerce, enabling seamless communication and data exchange between the two platforms.
MCP for WooCommerce
A Python-based server application for integrating MCP with WooCommerce.
Getting Started
Follow these steps to set up the project after cloning the repository:
Prerequisites
- Python 3.12 or later
- uv package manager
Setup Instructions
-
Clone the repository
git clone https://github.com/amElnagdy/mcp-server-for-woo-crash-course.git cd mcp-for-woocommerce -
Set up a virtual environment
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate -
Install dependencies
uv pip install -e . -
Configure WooCommerce API credentials
Edit the
config.jsonfile and add your WooCommerce store details:{ "store_url": "https://your-woocommerce-store.com", "consumer_key": "your_consumer_key", "consumer_secret": "your_consumer_secret", "api_version": "wc/v3" } -
Run the application
uv run src/server.py
Project Structure
src/server.py: Main server implementation and entry point for the applicationsrc/woo_client.py: WooCommerce API clientconfig.json: Configuration for WooCommerce connection
Getting WooCommerce API Credentials
To generate your WooCommerce API credentials:
- Log in to your WordPress admin panel
- Navigate to WooCommerce → Settings → Advanced → REST API
- Click "Add key"
- Add a description, select a user, and set permissions to "Read/Write"
- Click "Generate API key"
- Copy the Consumer Key and Consumer Secret to your
config.jsonfile