CtrlK
BlogDocsLog inGet started
Tessl Logo

algolia-mcp

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.

80

Quality

100%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

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

TaskTool
Search an indexalgolia_search_index
List available indicesalgolia_search_list_indices
Explore facet valuesalgolia_search_for_facet_values

Analytics

TaskTool
Top searchesalgolia_analytics_top_searches
Searches with no resultsalgolia_analytics_searches_no_results
No-results ratealgolia_analytics_no_results_rate
Click positionsalgolia_analytics_click_positions
No-click ratealgolia_analytics_no_click_rate
Searches without clicksalgolia_analytics_top_searches_without_clicks
Search volumealgolia_analytics_number_of_searches
Top search resultsalgolia_analytics_top_search_results
Unique usersalgolia_analytics_number_of_users
Top filtersalgolia_analytics_top_filters
Filters with no resultsalgolia_analytics_top_filters_no_results
Top countriesalgolia_analytics_top_countries

Recommendations

TaskToolmodel parameter
Frequently bought togetheralgolia_recommendationsbought-together
Related productsalgolia_recommendationsrelated-products
Trending itemsalgolia_recommendationstrending-items
Trending facetsalgolia_recommendationstrending-facets
Visually similar itemsalgolia_recommendationslooking-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 rateAssessment
< 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

ThresholdBehavior
50More results, lower relevance
60Balanced (good default)
75Fewer 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

  1. 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.
  2. Index names are case-sensitive: Use the exact name returned by algolia_search_list_indices.
  3. Date parameters: Analytics tools accept startDate and endDate in YYYY-MM-DD format. Default period is the last 8 days.
  4. 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

  1. algolia_search_list_indices → get applicationId and index name
  2. algolia_analytics_no_results_rate → check overall health (< 5% is excellent)
  3. algolia_analytics_searches_no_results → find the specific failing queries
  4. algolia_analytics_top_searches with clickAnalytics: true → find high-volume queries with low CTR
  5. algolia_analytics_click_positions → check if clicks are concentrated at position 1 (good) or spread evenly (poor relevance)
  6. For each problematic query: algolia_search_index with that query to see what results look like

Recommendation Setup Check

  1. algolia_search_list_indices → resolve applicationId
  2. Start with trending-items (requires least data) to verify Recommend is working
  3. Then try bought-together or related-products with a known product objectID
  4. 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
Repository
algolia/skills
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.