Skip to main content
Glama
Tennis Warehouse MCP Server

Tennis Warehouse MCP Server

by avimunk1

Tennis Warehouse MCP Server

🎾 Secure MCP wrapper for Tennis Warehouse's internal APIs

This MCP server provides LLMs with safe, business-friendly access to Tennis Warehouse product data through their internal Solr search API.

πŸ›‘οΈ Security Benefits

  • API Gateway: Protects internal Tennis Warehouse APIs from direct LLM access

  • Data Filtering: Only exposes customer-relevant product information

  • Input Validation: Sanitizes and validates all search parameters

  • Rate Limiting: Controls API usage and prevents abuse

  • Error Handling: Clean error messages instead of internal stack traces

Related MCP server: Sneaker Catalog MCP Server

πŸ”§ Installation

  1. Create virtual environment:

    cd tennis-warehouse-mcp
    python3 -m venv .venv
    source .venv/bin/activate
  2. Install dependencies:

    pip install "mcp[cli]" httpx requests pydantic
  3. Configure Claude Desktop: Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

    {
      "mcpServers": {
        "tennis-warehouse": {
          "command": "/path/to/tennis-warehouse-mcp/.venv/bin/python3",
          "args": ["/path/to/tennis-warehouse-mcp/main.py"],
          "env": {
            "TW_API_TIMEOUT": "10",
            "TW_MAX_RESULTS": "20"
          }
        }
      }
    }
  4. Restart Claude Desktop to load the new MCP server

🎯 Available Tools

search_tennis_products(query, category, max_results)

Search Tennis Warehouse products with intelligent filtering.

Example:

πŸ€– "Find Wilson racquets under $200"

search_tennis_bags(style, brand, max_results)

Search specifically for tennis bags with advanced filtering.

Example:

πŸ€– "Show me Head backpack tennis bags"

search_tennis_racquets(brand, weight_range, max_results)

Search for tennis racquets with brand and weight filtering.

Example:

πŸ€– "Find Babolat lightweight racquets"

search_tennis_shoes(gender, brand, court_type, max_results)

Search for tennis shoes with gender, brand, and court type filtering.

Example:

πŸ€– "Find Nike men's hard court tennis shoes"

get_product_categories()

Get all available product categories with product counts.

check_product_availability(product_name)

Check if a specific product is in stock.

Example:

πŸ€– "Is the Wilson Pro Staff 97 available?"

get_tennis_deals(category, max_results)

Find current deals and discounted tennis products.

Example:

πŸ€– "Show me current racquet deals"

πŸ“Š What LLMs Get vs. Internal API

LLM Gets (Safe)

Internal API Has (Protected)

βœ… Product name, brand, price

❌ Internal product IDs

βœ… Availability status

❌ Exact inventory counts

βœ… Public product URLs

❌ Supplier costs

βœ… Category information

❌ Restock schedules

βœ… Clean error messages

❌ Database stack traces

πŸ” Example Tennis Warehouse API Mapping

Internal Solr API:

https://static.tennis-warehouse.com/solr/solr_query.php?search=products&facet_set%5B%5D=facet_set_BAGFILTER&filter_cat=SHOULDBAGS

MCP Tool:

search_tennis_bags(style="backpack", brand="Wilson")

LLM Result:

[
  {
    "name": "Wilson Pro Staff Backpack",
    "brand": "Wilson", 
    "price": "$89.99",
    "availability": "Available",
    "product_url": "https://www.tennis-warehouse.com/..."
  }
]

βš™οΈ Configuration

Environment variables can be set in Claude Desktop config:

  • TW_API_TIMEOUT: API timeout in seconds (default: 10)

  • TW_MAX_RESULTS: Maximum results per query (default: 20)

πŸ§ͺ Testing

Test the API client:

source .venv/bin/activate
python3 -c "
from tennis_warehouse_api import TennisWarehouseAPI
api = TennisWarehouseAPI()
print('βœ… Tennis Warehouse API client working!')
"

πŸ—οΈ Architecture

πŸ€– LLM (Claude)
    ↓ (MCP Protocol)
πŸ›‘οΈ Tennis Warehouse MCP Server
    ↓ (HTTP/JSON)
πŸ”’ Tennis Warehouse Internal Solr API
    ↓
πŸ“Š Product Database

🎾 LLM Usage Examples

Once configured, LLMs can use natural language to search Tennis Warehouse:

  • "Find me Wilson tennis bags under $100"

  • "What Nike tennis shoes are available for women?"

  • "Show me current deals on Babolat racquets"

  • "Is the Head Speed MP racquet in stock?"

  • "Find lightweight tennis racquets for beginners"

The MCP server handles all the complexity of mapping these requests to the internal Solr API while keeping sensitive data protected! 🎾✨

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides secure access to Tennis Warehouse product data via natural language queries, enabling product search, availability checks, and deal discovery.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides access to TCGplayer trading card data, including search, product details, pricing, and market information, enabling natural language queries for card analysis.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to answer tennis string questions from lab measurements rather than marketing copy, covering stiffness, tension loss, energy return, spin and price. Supports searching, comparing and recommending strings for a player's needs and racquet, with measurements and estimates kept separate.
      MIT