Algolia Search & Analytics
Need to write/modify data? Use algolia-cli instead — it handles imports, exports, backups, settings changes, synonyms, rules, API keys, and all admin operations.
Connection setup
Use /algolia-mcp:mcp-connect to configure the MCP client with the Algolia MCP server.
For manual client setup, see connection-setup.
Tool selection
Search
| Task |
Tool |
| Search an index |
algolia_search_index |
| List available indices |
algolia_search_list_indices |
| Explore facet values |
algolia_search_for_facet_values |
Analytics
| Task |
Tool |
| Top searches |
algolia_analytics_top_searches |
| Searches with no results |
algolia_analytics_searches_no_results |
| No-results rate |
algolia_analytics_no_results_rate |
| Click positions |
algolia_analytics_click_positions |
| No-click rate |
algolia_analytics_no_click_rate |
| Searches without clicks |
algolia_analytics_top_searches_without_clicks |
| Search volume |
algolia_analytics_number_of_searches |
| Top search results |
algolia_analytics_top_search_results |
| Unique users |
algolia_analytics_number_of_users |
| Top filters |
algolia_analytics_top_filters |
| Filters with no results |
algolia_analytics_top_filters_no_results |
| Top countries |
algolia_analytics_top_countries |
Recommendations
| Task |
Tool |
model parameter |
| Frequently bought together |
algolia_recommendations |
bought-together |
| Related products |
algolia_recommendations |
related-products |
| Trending items |
algolia_recommendations |
trending-items |
| Trending facets |
algolia_recommendations |
trending-facets |
| Visually similar items |
algolia_recommendations |
looking-similar |
Search Filter Syntax
Filters go in the algolia_search_index call alongside query:
facetFilters (array-based):
[["color:red", "color:blue"]] → OR (red OR blue)
[["brand:Nike"], ["category:running"]] → AND (Nike AND running)
[["size:10"], ["color:red", "color:blue"]] → mixed (size 10 AND (red OR blue))
Each inner array is OR'd; outer arrays are AND'd.
numericFilters (string-based):
["price < 100"] → single condition
["price >= 50", "price <= 200"] → range (AND'd)
Date filtering: Dates must be stored as Unix timestamps. Use numericFilters: ["timestamp >= 1704067200"].
Attribute selection: Use attributesToRetrieve: ["name", "price"] to limit response size.
Analytics Key Details
clickAnalytics: true: Set this on algolia_analytics_top_searches or algolia_analytics_top_search_results to include CTR, conversion rate, and click count. Only these two tools support it.
revenueAnalytics: true: Set on the same tools to also include add-to-cart rate, purchase rate, and revenue.
- Data delay: Recent data has a 1–4 hour processing delay. Use date ranges ending at least 4 hours ago for complete data.
Interpreting Results
| No-results rate |
Assessment |
| < 5% |
Excellent |
| 5–10% |
Good |
| 10–20% |
Needs improvement |
| > 20% |
Poor |
Click positions: Healthy = 30–40% of clicks at position 1, decreasing through 10. Even distribution = poor relevance. Concentrated at positions 5–10 = ranking issues.
Low CTR + high search volume = poor result relevance. Common causes: missing synonyms, content gaps, mismatched query intent.
Recommendation Thresholds
| Threshold |
Behavior |
| 50 |
More results, lower relevance |
| 60 |
Balanced (good default) |
| 75 |
Fewer results, higher relevance |
Model parameter requirements:
bought-together, related-products, looking-similar → require objectID
trending-items → does NOT require objectID. Use facetName + facetValue to filter by category
trending-facets → requires facetName
Required Workflow
- Discover first: Always call
algolia_search_list_indices before other tools to resolve applicationId and indexName. The applicationId parameter is an enum — select from the values in the tool schema, never guess.
- Index names are case-sensitive: Use the exact name returned by
algolia_search_list_indices.
- Date parameters: Analytics tools accept
startDate and endDate in YYYY-MM-DD format. Default period is the last 8 days.
- Permissions: Not all tools are available to every user. Analytics tools require the Analytics permission; recommendations require the Recommend feature.
Common Workflows
Search Quality Audit
algolia_search_list_indices → get applicationId and index name
algolia_analytics_no_results_rate → check overall health (< 5% is excellent)
algolia_analytics_searches_no_results → find the specific failing queries
algolia_analytics_top_searches with clickAnalytics: true → find high-volume queries with low CTR
algolia_analytics_click_positions → check if clicks are concentrated at position 1 (good) or spread evenly (poor relevance)
- For each problematic query:
algolia_search_index with that query to see what results look like
Recommendation Setup Check
algolia_search_list_indices → resolve applicationId
- Start with
trending-items (requires least data) to verify Recommend is working
- Then try
bought-together or related-products with a known product objectID
- If results are empty, check event volume requirements in recommendations reference
Reference Docs
- connection-setup — MCP server configuration and authentication
- search — Search parameters, filter syntax (
facetFilters, numericFilters), pagination
- analytics — Analytics metrics interpretation, date ranges, click/conversion tracking
- recommendations — Recommendation models, thresholds, facet-based filtering
- troubleshooting — Common errors and resolution steps
1---2name: algolia-mcp3description: Search Algolia indices via the Algolia MCP server, retrieve analytics (top searches, no-result rates, click positions, user counts), and get product recommendations (bought-together, related, trending). Triggers on search, indexing, analytics, Algolia, recommendations, MCP.4license: MIT5---67# Algolia Search & Analytics89> **Need to write/modify data?** Use **algolia-cli** instead — it handles imports, exports, backups, settings changes, synonyms, rules, API keys, and all admin operations.1011## Connection setup1213Use `/algolia-mcp:mcp-connect` to configure the MCP client with the Algolia MCP server.14For manual client setup, see [connection-setup](references/connection-setup.md).1516## Tool selection1718### Search1920| Task | Tool |21|------------------------|-----------------------------------|22| Search an index | `algolia_search_index` |23| List available indices | `algolia_search_list_indices` |24| Explore facet values | `algolia_search_for_facet_values` |2526### Analytics2728| Task | Tool |29|--------------------------|-------------------------------------------------|30| Top searches | `algolia_analytics_top_searches` |31| Searches with no results | `algolia_analytics_searches_no_results` |32| No-results rate | `algolia_analytics_no_results_rate` |33| Click positions | `algolia_analytics_click_positions` |34| No-click rate | `algolia_analytics_no_click_rate` |35| Searches without clicks | `algolia_analytics_top_searches_without_clicks` |36| Search volume | `algolia_analytics_number_of_searches` |37| Top search results | `algolia_analytics_top_search_results` |38| Unique users | `algolia_analytics_number_of_users` |39| Top filters | `algolia_analytics_top_filters` |40| Filters with no results | `algolia_analytics_top_filters_no_results` |41| Top countries | `algolia_analytics_top_countries` |4243### Recommendations4445| Task | Tool | `model` parameter |46|----------------------------|---------------------------|--------------------|47| Frequently bought together | `algolia_recommendations` | `bought-together` |48| Related products | `algolia_recommendations` | `related-products` |49| Trending items | `algolia_recommendations` | `trending-items` |50| Trending facets | `algolia_recommendations` | `trending-facets` |51| Visually similar items | `algolia_recommendations` | `looking-similar` |5253## Search Filter Syntax5455Filters go in the `algolia_search_index` call alongside `query`:5657**facetFilters** (array-based):58```59[["color:red", "color:blue"]] → OR (red OR blue)60[["brand:Nike"], ["category:running"]] → AND (Nike AND running)61[["size:10"], ["color:red", "color:blue"]] → mixed (size 10 AND (red OR blue))62```63Each inner array is OR'd; outer arrays are AND'd.6465**numericFilters** (string-based):66```67["price < 100"] → single condition68["price >= 50", "price <= 200"] → range (AND'd)69```7071**Date filtering**: Dates must be stored as Unix timestamps. Use `numericFilters: ["timestamp >= 1704067200"]`.7273**Attribute selection**: Use `attributesToRetrieve: ["name", "price"]` to limit response size.7475## Analytics Key Details7677- **`clickAnalytics: true`**: Set this on `algolia_analytics_top_searches` or `algolia_analytics_top_search_results` to include CTR, conversion rate, and click count. Only these two tools support it.78- **`revenueAnalytics: true`**: Set on the same tools to also include add-to-cart rate, purchase rate, and revenue.79- **Data delay**: Recent data has a 1–4 hour processing delay. Use date ranges ending at least 4 hours ago for complete data.8081### Interpreting Results8283| No-results rate | Assessment |84|----------------|------------|85| < 5% | Excellent |86| 5–10% | Good |87| 10–20% | Needs improvement |88| > 20% | Poor |8990**Click positions**: Healthy = 30–40% of clicks at position 1, decreasing through 10. Even distribution = poor relevance. Concentrated at positions 5–10 = ranking issues.9192**Low CTR + high search volume** = poor result relevance. Common causes: missing synonyms, content gaps, mismatched query intent.9394## Recommendation Thresholds9596| Threshold | Behavior |97|-----------|----------|98| 50 | More results, lower relevance |99| **60** | **Balanced (good default)** |100| 75 | Fewer results, higher relevance |101102**Model parameter requirements**:103- `bought-together`, `related-products`, `looking-similar` → require `objectID`104- `trending-items` → does NOT require `objectID`. Use `facetName` + `facetValue` to filter by category105- `trending-facets` → requires `facetName`106107## Required Workflow1081091. **Discover first**: Always call `algolia_search_list_indices` before other tools to resolve `applicationId` and `indexName`. The `applicationId` parameter is an enum — select from the values in the tool schema, never guess.1102. **Index names are case-sensitive**: Use the exact name returned by `algolia_search_list_indices`.1113. **Date parameters**: Analytics tools accept `startDate` and `endDate` in `YYYY-MM-DD` format. Default period is the last 8 days.1124. **Permissions**: Not all tools are available to every user. Analytics tools require the Analytics permission; recommendations require the Recommend feature.113114## Common Workflows115116### Search Quality Audit1171. `algolia_search_list_indices` → get applicationId and index name1182. `algolia_analytics_no_results_rate` → check overall health (< 5% is excellent)1193. `algolia_analytics_searches_no_results` → find the specific failing queries1204. `algolia_analytics_top_searches` with `clickAnalytics: true` → find high-volume queries with low CTR1215. `algolia_analytics_click_positions` → check if clicks are concentrated at position 1 (good) or spread evenly (poor relevance)1226. For each problematic query: `algolia_search_index` with that query to see what results look like123124### Recommendation Setup Check1251. `algolia_search_list_indices` → resolve applicationId1262. Start with `trending-items` (requires least data) to verify Recommend is working1273. Then try `bought-together` or `related-products` with a known product objectID1284. If results are empty, check event volume requirements in [recommendations reference](references/recommendations.md)129130## Reference Docs131132- [connection-setup](references/connection-setup.md) — MCP server configuration and authentication133- [search](references/search.md) — Search parameters, filter syntax (`facetFilters`, `numericFilters`), pagination134- [analytics](references/analytics.md) — Analytics metrics interpretation, date ranges, click/conversion tracking135- [recommendations](references/recommendations.md) — Recommendation models, thresholds, facet-based filtering136- [troubleshooting](references/troubleshooting.md) — Common errors and resolution steps