Skip to main content

Documentation Index

Fetch the complete documentation index at: https://algolia.com/llms.txt

Use this file to discover all available pages before exploring further.

AI assistants can write integration code, manage your indices, and power search inside your own agents. This page shows how to connect AI assistants to Algolia and which tools to use.

Install the Algolia Productivity MCP

Model Context Protocol (MCP) is an open standard for connecting AI assistants to external systems. Productivity MCP lets you query your Algolia data from your AI assistant. Enable it in your Algolia dashboard, then connect it to your AI assistant.
claude mcp add --transport http algolia https://mcp.algolia.com/mcp
Then run /mcp in a Claude Code session and sign in when prompted.
For more details, see Productivity MCP.
Your favorite AI tool isn’t listed? Reach out to Algolia support and request it.

Productivity MCP example prompts

Once connected, you can ask your assistant questions like:
  • “What are the top searches with no results this week?”
  • “List all indices in this application and show their record counts.”
  • “Which filters are most used on the products index?”
  • “Find products matching ‘noise cancelling headphones’ and rank them by sales.”
  • “Show the click-through rate for black friday sale over the last 30 days.”

Use Algolia Public MCP for unauthenticated access

For agent-facing search and recommendations on a curated set of indices, use Algolia Public MCP instead. It serves search and recommendations to your own agents without requiring sign-in.

Install the Algolia CLI

Command-line tools are part of most developer workflows. With coding agents running in the terminal, they’re even more useful. The Algolia CLI lets agents script index setup, update settings, and run admin tasks—without extra integration code.
brew install algolia/algolia-cli/algolia
After installing, run algolia profile add to sign in. This lets your agent run commands without exporting keys each session. For other install options and authentication, see Get started with the Algolia CLI.

What agents can do with the CLI

Pair the CLI with your coding assistant to automate Algolia tasks as it writes integration code:
  • Bootstrap a new index: create the index, upload sample records, and apply searchable attributes and ranking in one script.
  • Sync data from a file: import records from JSON or CSV with algolia objects import.
  • Tune relevance: update searchableAttributes, customRanking, and other settings with algolia settings set.
  • Manage rules and synonyms: create, browse, and export rules and synonyms across environments.
  • Promote between environments: export an index config from staging and import it into production.
  • Run searches and inspect results: query an index from the terminal to validate changes before shipping.
For more examples, see Usage examples.

Install Algolia skills

Algolia skills are agent skills for Claude Code, Cursor, OpenAI Codex, and OpenCode. Add them to your assistant to teach it how to work with Algolia. While Productivity MCP and the Algolia CLI give your assistant the building blocks, skills package the patterns. They tell your assistant which tool to reach for, what conventions to follow (such as which InstantSearch widgets to use for a given UI), and how to chain steps for common tasks—so you don’t have to re-explain them in every prompt. The repository includes these skills:
  • algolia-mcp: search, analytics, and recommendations through the Algolia MCP server.
  • algolia-cli: manage indices, settings, rules, and synonyms through the Algolia CLI.
  • algobot-cli: build AI agents, chat experiences, and RAG on Algolia.
  • instantsearch: build search interfaces with autocomplete, results, and facets.
To install one or more skills, run the following command and select the skill you want to add:
npx skills add https://github.com/algolia/skills

Build no-code data pipelines

Not all Algolia workflows require coding. Connectors let merchandisers and operators build data pipelines from sources (JSON, CSV, BigQuery, Supabase, and more) to an Algolia index, with no-code transformations that change attributes, filter records, or compute new values from existing ones. For complex logic, use AI-assisted transformations to describe what you want in plain English and let AI generate the configuration. Examples of prompts you can give the AI assistant:
  • “If price is greater than 100, add the label ‘expensive’.”
  • “Add a discount percentage attribute computed from full_price and sale_price.”
  • “Remove records where status is draft or archived.”
  • “Combine popularity and recency into a single ranking signal.”
Last modified on April 30, 2026