Are you the author? Sign in to claim
Tennis Warehouse MCP Update
🎾 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.
Create virtual environment:
cd tennis-warehouse-mcp
python3 -m venv .venv
source .venv/bin/activate
Install dependencies:
pip install "mcp[cli]" httpx requests pydantic
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"
}
}
}
}
Restart Claude Desktop to load the new MCP server
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"
| 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 |
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/..."
}
]
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)Test the API client:
source .venv/bin/activate
python3 -c "
from tennis_warehouse_api import TennisWarehouseAPI
api = TennisWarehouseAPI()
print('✅ Tennis Warehouse API client working!')
"
🤖 LLM (Claude)
↓ (MCP Protocol)
🛡️ Tennis Warehouse MCP Server
↓ (HTTP/JSON)
🔒 Tennis Warehouse Internal Solr API
↓
📊 Product Database
Once configured, LLMs can use natural language to search Tennis Warehouse:
The MCP server handles all the complexity of mapping these requests to the internal Solr API while keeping sensitive data protected! 🎾✨
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows