A Model Context Protocol (MCP) server that provides implementation guidance, code validation, and troubleshooting for Searchspring's e-commerce APIs.
Important: This is an integration assistant, not an API proxy. It returns implementation guidance and code examples rather than live API data.
-
Install and build:
git clone <repo-url> cd searchspring-api-mcp npm install && npm run build
-
Configure Claude Desktop - Add to your
claude_desktop_config.json
:{ "mcpServers": { "searchspring": { "command": "node", "args": ["/absolute/path/to/searchspring-api-mcp/dist/index.js"] } } }
-
Restart Claude Desktop and ask:
"Show me how to implement Searchspring search API"
The Searchspring tools will activate automatically - no special commands needed!
-
Install dependencies:
npm install npm run build
-
Start the server:
npm start
Note: SEARCHSPRING_SITE_ID is optional - the LLM can provide example site IDs or ask users for their specific ID when needed.
✅ Implementation Guidance - Step-by-step API integration instructions for all 8 Searchspring APIs
✅ Code Validation - Analyze existing implementations for issues with platform-specific checks
✅ Platform-Specific Code - Generate code for Shopify, BigCommerce, Magento, and 7+ platforms
✅ Troubleshooting - Diagnose common integration problems with targeted solutions
✅ Modern Platform Support - Includes Shopify checkout extensibility and Web Pixel guidance
✅ Documentation Links - Direct links to relevant Searchspring docs
❌ Not an API Proxy - Does not make live API calls or return product data
Tool | Input | Output |
---|---|---|
searchspring_api_guide |
API name | Complete implementation guide with endpoints, examples, and best practices |
searchspring_parameter_guide |
API name + parameter | Detailed parameter explanation with usage examples and best practices |
Supported APIs: search
, autocomplete
, suggest
, trending
, recommendations
, finder
, beacon
, bulk-index
Tool | Input | Output |
---|---|---|
searchspring_code_generator |
API + platform (+ eventType for tracking) | Platform-specific implementation code |
searchspring_code_validator |
Code + codeType (+ platform + issue) | Validation results, warnings, suggestions, and troubleshooting |
Supported Platforms: shopify
, bigcommerce
, magento1
, magento2
, miva
, commercev3
, 3dcart
, volusion
, javascript
, php
, python
, custom
Supported Code Types: search
, autocomplete
, suggest
, trending
, recommendations
, finder
, beacon
, bulk-index
, tracking
// Get comprehensive guidance for any API
Input: {"api": "search"}
Output: Complete implementation guide with endpoints, examples, and best practices
// Understand specific API parameters
Input: {"api": "search", "parameter": "filters"}
Output: Detailed explanation of filters parameter with examples and best practices
// Generate platform-specific implementation
Input: {"api": "beacon", "platform": "shopify", "eventType": "product"}
Output: Ready-to-use Shopify tracking code with Liquid template syntax
// Validate existing code and get troubleshooting help
Input: {
"code": "<script>ss.track.product.view({sku: 'ABC'});</script>",
"codeType": "tracking",
"platform": "shopify",
"issue": "Events not showing in analytics"
}
Output: ❌ Missing IntelliSuggest script, ⚠️ No safety check, 🔧 Troubleshooting steps
- Planning → Use
searchspring_api_guide
to understand API structure and requirements - Deep Dive → Use
searchspring_parameter_guide
for specific parameter details - Implementation → Use
searchspring_code_generator
to create platform-specific code - Validation → Use
searchspring_code_validator
to check your implementation - Troubleshooting → Use validator with specific issues for detailed diagnosis
npm test
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"searchspring": {
"command": "node",
"args": ["/absolute/path/to/searchspring-api-mcp/dist/index.js"]
}
}
}
Use any MCP-compatible client:
# Start the MCP server
npm start
# Test with mcp-client or similar tools
npx @modelcontextprotocol/inspector
Test individual tools directly:
# Example: Test API guide tool
echo '{"method": "tools/call", "params": {"name": "searchspring_api_guide", "arguments": {"api": "search"}}}' | npm start
Once configured in Claude Desktop, the Searchspring MCP tools are automatically available. No special activation command needed!
Available Tools:
searchspring_api_guide
- Get implementation guidance for any APIsearchspring_parameter_guide
- Get detailed parameter explanationssearchspring_code_generator
- Generate platform-specific codesearchspring_code_validator
- Validate and troubleshoot existing code
Sample Prompts to Activate Tools:
"Show me how to implement Searchspring search API"
"Generate Shopify tracking code for product views"
"Explain the filters parameter for the search API"
"Validate this search implementation code: [paste code]"
"Create BigCommerce autocomplete code"
"How do I implement bulk indexing for Magento?"
-
Start development server:
npm run dev
-
Test API guidance:
- Ask Claude: "Show me how to implement Searchspring search API"
- Ask Claude: "Generate Shopify tracking code for product views"
- Ask Claude: "Validate this search implementation code: [paste code]"
-
Test platform-specific generation:
- Test all platforms: Shopify, BigCommerce, Magento1/2, Miva, CommerceV3, 3dCart, Volusion
- Test modern Shopify Web Pixel tracking scenarios
- Test bulk indexing guidance (with and without secret key)
-
Validate cross-references:
- Ensure all generated code references match
docs.searchspring.com
- Verify platform-specific template syntax (Liquid, Handlebars, PHP)
- Check that troubleshooting advice matches Zendesk Knowledge Base
- Ensure all generated code references match
Variable | Required | Description |
---|---|---|
SEARCHSPRING_SITE_ID |
❌ Optional | Your Searchspring site identifier (LLM can provide examples) |
SEARCHSPRING_SECRET_KEY |
❌ Optional | Only needed for bulk indexing guidance |
SEARCHSPRING_TIMEOUT |
❌ Optional | Request timeout in ms (default: 10000) |
Ready for production deployment with Docker:
# Build the Docker image
docker build -t searchspring-mcp .
# Run without environment variables (LLM will handle site IDs)
docker run searchspring-mcp
# Or with optional environment variables
docker run -e SEARCHSPRING_SITE_ID=your_site_id searchspring-mcp
Security Features: Non-root user, minimal Alpine base, production-optimized
apiVersion: apps/v1
kind: Deployment
metadata:
name: searchspring-mcp
spec:
replicas: 2
selector:
matchLabels:
app: searchspring-mcp
template:
metadata:
labels:
app: searchspring-mcp
spec:
containers:
- name: searchspring-mcp
image: searchspring-mcp:latest
ports:
- containerPort: 3000
# Environment variables are optional
env:
- name: SEARCHSPRING_TIMEOUT
value: "10000"
New Searchspring Customer: Get implementation guidance for search, autocomplete, and tracking Existing Implementation Issues: Validate code and get troubleshooting help Platform Migration: Generate platform-specific tracking code Development Team Onboarding: Understand API structure and best practices Modern Shopify Stores: Get guidance for checkout extensibility and Web Pixel tracking
- 📖 Documentation: https://docs.searchspring.com/
- 🎯 Help Center: https://help.searchspring.net/
MIT