Skip to main content

Fashion discovery MCP server for Indian Gen Z

Project description

Klydo MCP Server

CI PyPI version Python 3.11+ License: MIT MCP Compatible

Fashion discovery MCP server for Indian Gen Z (18-32 age group).

Enables AI assistants like Claude to search and discover fashion products from Indian e-commerce sites. Built by Klydo โ€” a Bangalore-based startup for Gen-Z quick tech fashion commerce.

โœจ Features

  • ๐Ÿ” Search Products โ€” Search fashion items with filters (category, gender, price range)
  • ๐Ÿ“ฆ Product Details โ€” Get complete product info including images, sizes, colors, ratings
  • ๐Ÿ”ฅ Trending Products โ€” Discover what's popular right now
  • ๐Ÿ›’ Sources โ€” Built-in scrapers for Myntra and the Klydo brand (klydo.in)
  • ๐Ÿ“ Structured Logging โ€” Debug-friendly logs with Loguru
  • โšก Fast & Cached โ€” In-memory caching for quick responses

๐Ÿš€ Quick Start

Installation

Option 1: Install from PyPI (Recommended)

# Using pip
pip install klydo-mcp

# Or using pipx (isolated environment)
pipx install klydo-mcp

# Or using uvx (no installation needed)
uvx klydo-mcp

Option 2: Install from Source

# Clone the repository
git clone https://github.com/myselfshravan/klydo-mcp.git
cd klydo-mcp

# Install dependencies with uv
uv sync

Usage with Claude Desktop

If installed via PyPI (pip/pipx)

Add to your Claude Desktop configuration:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "klydo": {
      "command": "klydo"
    }
  }
}

If using uvx (recommended for easy updates)

{
  "mcpServers": {
    "klydo": {
      "command": "uvx",
      "args": ["klydo-mcp"]
    }
  }
}

If installed from source

{
  "mcpServers": {
    "klydo": {
      "command": "uv",
      "args": ["--directory", "/path/to/klydo-mcp", "run", "klydo"]
    }
  }
}

Then restart Claude Desktop.

Run Standalone

uv run klydo

๐Ÿ› ๏ธ MCP Tools

search_products

Search for fashion products.

Parameter Type Required Description
query string โœ… Search terms (e.g., "black dress", "nike shoes")
category string โŒ Filter by category (e.g., "dresses", "shoes")
gender string โŒ Filter by gender ("men" or "women")
min_price int โŒ Minimum price in INR
max_price int โŒ Maximum price in INR
limit int โŒ Max results (default 10, max 50)

get_product_details

Get complete product information.

Parameter Type Required Description
product_id string โœ… Product ID from search results

Returns: Full product details including all images, sizes, colors, ratings, and purchase link.

get_trending

Get currently trending/popular fashion products.

Parameter Type Required Description
category string โŒ Category filter
limit int โŒ Max results (default 10, max 50)

โš™๏ธ Configuration

Copy .env.example to .env and customize:

# Default scraper: "klydo" or "myntra"
KLYDO_DEFAULT_SCRAPER=klydo

# Request settings
KLYDO_REQUEST_TIMEOUT=30
KLYDO_CACHE_TTL=3600

# Debug mode (set to false in production)
KLYDO_DEBUG=false

# API token for klydo.in scraper (required for Klydo scraper)
KLYDO_KLYDO_API_TOKEN=your-token

๐Ÿ“ Project Structure

klydo-mcp/
โ”œโ”€โ”€ src/klydo/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ server.py          # MCP server entry point
โ”‚   โ”œโ”€โ”€ config.py          # Configuration (Pydantic Settings)
โ”‚   โ”œโ”€โ”€ logging.py         # Loguru configuration
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ””โ”€โ”€ product.py     # Product, Price models
โ”‚   โ””โ”€โ”€ scrapers/
โ”‚       โ”œโ”€โ”€ base.py        # Scraper protocol (interface)
โ”‚       โ”œโ”€โ”€ cache.py       # In-memory cache with TTL
โ”‚       โ”œโ”€โ”€ klydo_store.py # Klydo.in scraper
โ”‚       โ””โ”€โ”€ myntra.py      # Myntra scraper
โ”œโ”€โ”€ tests/                 # Test suite
โ”œโ”€โ”€ .github/workflows/     # CI/CD pipelines
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ README.md

๐Ÿงช Testing

# Run all tests
uv run pytest

# Run with verbose output
uv run pytest -v

# Run specific test file
uv run pytest tests/test_models.py

๐Ÿ”ง Development

# Install dev dependencies
uv sync --dev

# Run linting
uv run ruff check src/

# Format code
uv run ruff format src/

# Run the server locally
uv run klydo

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide 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

๐Ÿ” Security

For security issues, please see our Security Policy.

๐Ÿ“„ License

MIT License โ€” see LICENSE for details.

๐Ÿข About Klydo

Klydo is a Bangalore-based startup building quick tech fashion commerce for Gen-Z. This MCP server is part of our mission to make fashion discovery seamless across AI interfaces.


Made with โค๏ธ in Bangalore, India

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

klydo_mcp-0.1.3.tar.gz (125.8 kB view details)

Uploaded Source

Built Distribution

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

klydo_mcp-0.1.3-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file klydo_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: klydo_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 125.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for klydo_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a47af6689c36bf866bc32464dfd27e694a4e8c99b5d398dd99be5081e32da611
MD5 8a61120dbc8120e1000f318fec6138a1
BLAKE2b-256 df9aa21aff332b15b0501aed54a0f81874c4b3629c89aa581ce8a303636cf466

See more details on using hashes here.

Provenance

The following attestation bundles were made for klydo_mcp-0.1.3.tar.gz:

Publisher: publish.yaml on myselfshravan/klydo-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klydo_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: klydo_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for klydo_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b4b8f343e9609b4dccb552a571642c77d6faa6af1c8019aea8139fd422b0dcd
MD5 2eca2592f64a82815a27784dde23b2a6
BLAKE2b-256 25c93f77a9b831db497a75fd90073d59372781c7eceab9e67617de3249a562bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for klydo_mcp-0.1.3-py3-none-any.whl:

Publisher: publish.yaml on myselfshravan/klydo-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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