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.Documentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
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 Code
- Cursor
- VS Code
- Gemini CLI
- ChatGPT
- Claude AI & Desktop
/mcp in a Claude Code session and sign in when prompted.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
productsindex?” - “Find products matching ‘noise cancelling headphones’ and rank them by sales.”
- “Show the click-through rate for
black friday saleover 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.- macOS
- Linux
- Windows
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 withalgolia 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.
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.
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_priceandsale_price.” - “Remove records where
statusisdraftorarchived.” - “Combine popularity and recency into a single ranking signal.”