Provides platform-specific code generation and implementation guidance for integrating Searchspring's e-commerce APIs (search, autocomplete, recommendations, tracking) into BigCommerce stores
Provides platform-specific code generation and implementation guidance for integrating Searchspring's e-commerce APIs (search, autocomplete, recommendations, tracking) into Shopify stores
Searchspring Integration Assistant (MCP Server)
MCP server designed as an integration assistant to help customers implement Searchspring APIs correctly.
This Model Context Protocol (MCP) server provides implementation guidance, code validation, and troubleshooting tools for Searchspring's e-commerce APIs. Instead of making direct API calls, it serves as an intelligent assistant that helps developers properly implement search, autocomplete, IntelliSuggest tracking, and recommendations in their applications.
Features
The server provides integration assistance for all major Searchspring APIs:
- Implementation Guidance: Step-by-step code examples and API endpoint construction
- Platform-Specific Code Generation: Ready-to-use code for Shopify, Magento, BigCommerce, etc.
- Code Validation & Troubleshooting: Analyze existing implementations and identify issues
- Best Practices: Security, performance, and reliability recommendations
- Documentation Links: Direct links to relevant Searchspring documentation
Supported API Integrations:
- Search API: Implementation guides for product search with filtering and pagination
- Autocomplete API: Real-time search suggestions implementation patterns
- Suggest API: Spell correction and alternative query suggestions
- IntelliSuggest Tracking: Behavioral event tracking implementation (product views, cart, purchases)
- Recommendations API: Personalized product recommendation integration
- Trending API: Popular search terms and trending content
- Beacon API: Analytics event tracking for recommendations
- Bulk Indexing API: Product data indexing guidance (requires secret key)
- Finder API: Advanced product discovery interfaces
Installation
- Clone this repository
- Install dependencies:
- Build the project:
Configuration
Configure your Searchspring credentials as environment variables:
Usage
Running the Server
Start the MCP server:
For development with auto-reload:
Available Tools
1. Search API Implementation (searchspring_search
)
Get implementation guidance for product search integration:
Returns: Complete API endpoint URL, required parameters, JavaScript implementation example, and documentation links.
2. Autocomplete Implementation (searchspring_autocomplete
)
Get implementation guidance for real-time search suggestions:
Returns: Complete autocomplete implementation with debouncing, error handling, and UI integration examples.
3. Search Suggestions (searchspring_suggest
)
Get product discovery suggestions:
4. IntelliSuggest Tracking (searchspring_intellisuggest_track
)
Track behavioral events for IntelliSuggest analytics and personalization:
Available event types:
product
: Product page viewcart
: Cart addition/viewsale
: Purchase completion
5. Platform Implementation (searchspring_platform_implementation
)
Get platform-specific IntelliSuggest tracking code:
Available platforms:
shopify
,bigcommerce-stencil
,magento2
,custom
, etc.
6. Search Result Click Guide (searchspring_search_result_click
)
Get implementation guide for search result click tracking:
7. Beacon Tracking (searchspring_beacon_track
)
Track user events for recommendations analytics:
Available event types:
profile.render
: Profile rendered on pageprofile.impression
: Profile viewed by userprofile.click
: Profile clicked by userprofile.product.render
: Product rendered in profileprofile.product.impression
: Product viewed in profileprofile.product.click
: Product clicked in profile
8. Recommendations (searchspring_recommendations
)
Get personalized product recommendations:
Required parameters:
tags
: Array of recommendation profile tags/IDs
Optional parameters:
products
: Product SKUs being viewed (for cross-sell/similar)limits
: Maximum products per profileshopper
: Logged-in shopper ID for personalizationcart
: Product SKUs in current cartlastViewed
: Recently viewed product SKUsbought_together
: Frequently bought together
9. Trending Data (searchspring_trending
)
Get trending products or search terms:
10. Finder API (searchspring_finder
)
Get product facets for building product finder interfaces:
12. Code Validation (searchspring_code_validator
)
NEW: Validate and troubleshoot your Searchspring implementation:
Returns:
- ✅ Validation results (what's working correctly)
- ⚠️ Warnings (potential issues)
- 💡 Suggestions (improvements)
- 🔧 Troubleshooting (specific issue diagnosis)
Supported code types:
tracking
: IntelliSuggest event tracking validationsearch
: Search API implementation validationautocomplete
: Autocomplete implementation validationrecommendations
: Recommendation integration validation
9. Finder API (searchspring_finder
)
Advanced product discovery with faceting:
Integration with MCP Clients
This server can be used with any MCP-compatible client. Here's how to configure it with Claude Desktop:
- Add to your MCP settings file (
claude_desktop_config.json
):
- Restart Claude Desktop
API Documentation
For detailed information about Searchspring APIs, visit:
Development
Project Structure
Adding New Tools
To add a new tool:
- Add the tool definition to the
tools
array inindex.ts
- Add the corresponding method to
SearchspringClient
- Add the case handler in the tool call switch statement
Error Handling
The server includes comprehensive error handling:
- Configuration validation on startup
- API request/response error handling
- Proper error messages returned to MCP clients
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides implementation guidance, code validation, and troubleshooting tools for Searchspring's e-commerce APIs including search, autocomplete, recommendations, and tracking. Helps developers properly integrate Searchspring functionality with platform-specific code examples and best practices.