๐ WooCommerce MCP Server | Python Edition
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">
</div>
๐บ๐ธ English Version | <b>๐ฎ๐ฑ ืืจืกื ืขืืจืืช</b>
๐ ืื ืื?
ืฉืจืช Model Context Protocol (MCP) ืืืืคืฉืจ ืืื ืืืจืฆืื ืืืื ืขื ืื ืืืืช WooCommerce ืืืืฆืขืืช ื-WordPress REST API. ืืกืคืจืืื ืืกืคืงืช ืืืื ืืงืืคืื ืื ืืืื ืื ืืืืื ืืืืฆืจืื, ืืืื ืืช, ืืงืืืืช, ืืฉืืื, ืืืกืื, ืื ืืืช ืืงืื ืคืืืืจืฆืืืช ืืื ืืช.
๐ ืืชืงื ื ืืืืจื
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



