๐Ÿ›’ WooCommerce MCP Server | Python Edition

by Slava12233

2 138 downloads Not rated yet MIT

About

An MCP (Model Context Protocol) server that provides full integration with WooCommerce stores via the WordPress REST API. It allows AI assistants to manage products, orders, customers, shipping, taxes, coupons, and store configuration using a comprehensive set of tools.

Details

License
MIT

Explore

- Full coverage of WooCommerce REST API (products, orders, customers, shipping, taxes, coupons, reports, settings)
- WordPress content management (posts and meta data)
- Batch operations for product variations, tax rates, and coupons
- Deployable on Railway with automatic SSL, monitoring, and scaling
- Environment-based configuration for all credentials
- Supports both WooCommerce and WordPress authentication methods


pip install -r requirements.txt

The server is ready for immediate deployment on the Railway platform:


- ๐Ÿ”„ Automatic deployment from GitHub
- ๐Ÿ”’ Automatic SSL
- ๐Ÿ“Š Built-in monitoring and logging
- ๐Ÿ” Free subdomain on railway.app
- โšก Automatic scaling based on demand

Create a .env file in the project root with your credentials:

<div align="left" dir="ltr">

WORDPRESS_SITE_URL=https://your-wordpress-site.com
WOOCOMMERCE_CONSUMER_KEY=your-woocommerce-consumer-key
WOOCOMMERCE_CONSUMER_SECRET=your-woocommerce-consumer-secret
WORDPRESS_USERNAME=your-wordpress-username
WORDPRESS_PASSWORD=your-wordpress-password

</div>

| Variable | Description | Required |
|--------|-------------|:-----:|
| WORDPRESS_SITE_URL | Your WordPress site URL (WooCommerce is a WordPress plugin) | โœ… |
| WOOCOMMERCE_CONSUMER_KEY | WooCommerce REST API consumer key | โœ… |
| WOOCOMMERCE_CONSUMER_SECRET | WooCommerce REST API consumer secret | โœ… |
| WORDPRESS_USERNAME | WordPress username with appropriate permissions | โš ๏ธ |
| WORDPRESS_PASSWORD | WordPress password for authentication | โš ๏ธ
|

\* Required only for WordPress API methods

WooCommerce API access requires consumer keys that you can generate in your WordPress dashboard under WooCommerce โ†’ Settings โ†’ Advanced โ†’ REST API.

For WordPress-specific methods (like managing posts), you need to provide:
- Username/password credentials for basic authentication
- The WordPress REST API must be enabled on your site

load_dotenv()

```python
import asyncio
from woocommerce_mcp.products import get_products

async def list_products():

</div>

<div dir="rtl">

> ืคืชืจื•ืŸ ืคืฉื•ื˜ ื•ื™ืขื™ืœ ืœื—ื™ื‘ื•ืจ ื—ื ื•ื™ื•ืช WooCommerce ืขื Model Context Protocol

<div align="right">

Version
Python
License

</div>

๐Ÿ‡บ๐Ÿ‡ธ English Version | <b>๐Ÿ‡ฎ๐Ÿ‡ฑ ื’ืจืกื” ืขื‘ืจื™ืช</b>

๐Ÿ“Œ ืžื” ื–ื”?

ืฉืจืช Model Context Protocol (MCP) ื”ืžืืคืฉืจ ืื™ื ื˜ื’ืจืฆื™ื” ืžืœืื” ืขื ื—ื ื•ื™ื•ืช WooCommerce ื‘ืืžืฆืขื•ืช ื”-WordPress REST API. ื”ืกืคืจื™ื™ื” ืžืกืคืงืช ื›ืœื™ื ืžืงื™ืคื™ื ืœื ื™ื”ื•ืœ ื›ืœ ื”ื™ื‘ื˜ื™ ื”ืžื•ืฆืจื™ื, ื”ื–ืžื ื•ืช, ืœืงื•ื—ื•ืช, ืžืฉืœื•ื—, ืžื™ืกื™ื, ื”ื ื—ื•ืช ื•ืงื•ื ืคื™ื’ื•ืจืฆื™ื™ืช ื”ื—ื ื•ืช.

๐Ÿš€ ื”ืชืงื ื” ืžื”ื™ืจื”

```bash

No reviews yet โ€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.