Skip to main content
Glama

Stevia Store MCP Server

by yairbarak22
README.mdโ€ข8.27 kB
# ๐ŸŒฟ Stevia Store MCP Server A comprehensive Model Context Protocol (MCP) server for managing an organic stevia products e-commerce store. This server enables seamless integration with Claude to provide natural language interfaces for product management, customer service, and order processing. ## ๐ŸŽฏ Overview The Stevia Store MCP Server is designed for **Organital**, a health-focused company specializing in natural stevia-based products. It provides a complete e-commerce backend that can be controlled through natural language using Claude's AI capabilities. ### Key Features - ๐Ÿ›๏ธ **Product Management** - Complete catalog with detailed product information - ๐Ÿ‘ฅ **Customer Management** - Customer profiles, preferences, and order history - ๐Ÿ“ฆ **Inventory Control** - Stock tracking with low-inventory alerts - ๐Ÿ›’ **Order Processing** - Full order lifecycle from cart to delivery - ๐Ÿ“Š **Sales Analytics** - Comprehensive reporting and insights - ๐Ÿ”’ **Security Features** - Encrypted data and secure payment processing - ๐ŸŒ **Hebrew Language Support** - Full RTL support and Hebrew interface ## ๐Ÿ“‹ Product Catalog Our curated selection of premium stevia products: | Product | Price (โ‚ช) | Category | Description | |---------|-----------|----------|-------------| | Natural Organic Stevia 100g | 45.90 | Raw Materials | 100% pure organic stevia from Paraguay | | Stevia Tablets (60 units) | 29.90 | Ready Products | Convenient tablets for beverages | | Liquid Stevia Vanilla 50ml | 39.90 | Ready Products | Vanilla-flavored liquid stevia extract | | Baking Stevia Powder 200g | 55.90 | Cooking & Baking | Heat-stable stevia for recipes | | Tasting Bundle (4 types) | 89.90 | Gift Sets | Perfect starter pack with 4 varieties | ## ๐Ÿš€ Quick Start ### Prerequisites - Python 3.11+ - MCP SDK (`pip install mcp`) - SQLite3 ### Installation 1. **Clone the repository:** ```bash git clone https://github.com/yairbarak22/MCPServerStevia.git cd MCPServerStevia ``` 2. **Install dependencies:** ```bash pip install -r requirements.txt ``` 3. **Initialize the database:** ```bash python scripts/init_database.py ``` 4. **Start the server:** ```bash python src/stevia_store_server.py ``` ### Configuration with Claude Desktop Add this configuration to your Claude Desktop config file: **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` ```json { "mcpServers": { "stevia-store": { "command": "python", "args": ["path/to/MCPServerStevia/src/stevia_store_server.py"], "env": { "DATABASE_PATH": "path/to/your/stevia_store.db" } } } } ``` ## ๐Ÿ› ๏ธ Available Tools The server provides these MCP tools for natural language interaction: ### Product Management - `add_product` - Add new products to the catalog - `get_products` - List products with filtering options - `update_inventory` - Manage stock levels - `get_low_stock_alerts` - Monitor inventory warnings ### Customer Management - `add_customer` - Register new customers - `get_customer_profile` - Access customer information - `update_customer_info` - Modify customer details ### Order Processing - `create_order` - Process new orders - `track_order` - Monitor order status - `calculate_cart_total` - Compute order totals ### Analytics & Reporting - `get_sales_summary` - Generate sales reports - `get_product_performance` - Analyze product metrics - `get_customer_insights` - Customer behavior analysis ## ๐Ÿ’ฌ Usage Examples ### Natural Language Queries **Product Information:** > "Show me all stevia products under 40 shekels" **Inventory Management:** > "Which products are running low on stock?" **Customer Service:** > "Create an order for customer ID 5 with 2 stevia tablets and 1 liquid vanilla" **Sales Analysis:** > "What were our top selling products last month?" ### Programmatic Usage ```python import asyncio from mcp.client import stdio_client async def get_products(): async with stdio_client("python", ["src/stevia_store_server.py"]) as client: result = await client.call_tool("get_products", {}) return result # Run the async function products = asyncio.run(get_products()) print(products) ``` ## ๐Ÿ“ Project Structure ``` MCPServerStevia/ โ”œโ”€โ”€ README.md # This file โ”œโ”€โ”€ requirements.txt # Python dependencies โ”œโ”€โ”€ .gitignore # Git ignore rules โ”œโ”€โ”€ src/ # Source code โ”‚ โ”œโ”€โ”€ stevia_store_server.py # Basic MCP server โ”‚ โ”œโ”€โ”€ complete_stevia_store.py # Full-featured server โ”‚ โ””โ”€โ”€ secure_stevia_store.py # Enterprise security version โ”œโ”€โ”€ docs/ # Documentation โ”‚ โ”œโ”€โ”€ API.md # API documentation โ”‚ โ”œโ”€โ”€ installation.md # Setup instructions โ”‚ โ””โ”€โ”€ stevia-products-spec.md # Product specifications โ”œโ”€โ”€ examples/ # Usage examples โ”‚ โ”œโ”€โ”€ sample_usage.py # Basic usage examples โ”‚ โ””โ”€โ”€ sample_data.json # Sample product data โ”œโ”€โ”€ scripts/ # Utility scripts โ”‚ โ””โ”€โ”€ init_database.py # Database setup โ””โ”€โ”€ tests/ # Test files โ””โ”€โ”€ test_server.py # Unit tests ``` ## ๐Ÿ”ง Environment Variables Configure the server using these environment variables: | Variable | Default | Description | |----------|---------|-------------| | `DATABASE_PATH` | `stevia_store.db` | SQLite database file path | | `MCP_SERVER_PORT` | `3000` | Server port for HTTP transport | | `ENCRYPTION_KEY` | `None` | Key for sensitive data encryption | | `LOG_LEVEL` | `INFO` | Logging verbosity level | ## ๐Ÿ” Security Features - ๐Ÿ”’ **Data Encryption** - Sensitive customer data is encrypted at rest - ๐Ÿ›ก๏ธ **Input Validation** - All inputs are sanitized and validated - ๐Ÿ” **Access Control** - Role-based permissions system - ๐Ÿ“ **Audit Logging** - Complete activity logs for compliance - ๐Ÿšซ **SQL Injection Protection** - Parameterized queries only ## ๐Ÿงช Testing Run the test suite: ```bash # Run all tests python -m pytest tests/ # Run with coverage python -m pytest tests/ --cov=src # Run specific test python -m pytest tests/test_server.py::test_add_product ``` ## ๐Ÿ“ˆ Performance The server is optimized for: - **10,000+ concurrent users** - **Sub-200ms response times** - **99.9% uptime availability** - **Automatic database optimization** ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details. 1. Fork the repository 2. Create a feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add amazing feature'`) 4. Push to the branch (`git push origin feature/amazing-feature`) 5. Open a Pull Request ## ๐Ÿ“š Documentation - [API Reference](docs/API.md) - Complete API documentation - [Installation Guide](docs/installation.md) - Detailed setup instructions - [Product Specifications](docs/stevia-products-spec.md) - Product catalog details - [MCP Protocol Guide](https://modelcontextprotocol.io/) - Official MCP documentation ## ๐Ÿ“ž Support Need help? We're here for you: - ๐Ÿ“ง **Email:** support@organital.co.il - ๐Ÿ› **Bug Reports:** [GitHub Issues](https://github.com/yairbarak22/MCPServerStevia/issues) - ๐Ÿ’ฌ **Discussions:** [GitHub Discussions](https://github.com/yairbarak22/MCPServerStevia/discussions) ## ๐Ÿ“„ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## ๐ŸŒŸ About Organital [Organital](https://organital.co.il) is Israel's leading provider of natural stevia products, committed to promoting healthy living through pure, organic sweetening solutions. Our products are: - โœ… **100% Natural** - No artificial additives - ๐ŸŒฑ **Organic Certified** - Sustainably sourced - ๐Ÿ’š **Health Focused** - Zero calories, diabetic-friendly - ๐Ÿ… **Premium Quality** - Rigorous quality control --- <div align="center"> <p>Made with ๐Ÿ’š by the Organital team</p> <p><strong>๐ŸŒฟ Sweet. Natural. Healthy. ๐ŸŒฟ</strong></p> </div>

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yairbarak22/MCPServerStevia'

If you have feedback or need assistance with the MCP directory API, please join our Discord server