Enables search and retrieval of data from Algolia indexes, with capabilities to perform complex queries, add/update records, configure searchable attributes, and adjust ranking settings for better search relevance.
MCP
This repository contains experimental Model Context Protocol (or MCP) servers for interacting with Algolia APIs. This MCP repo is something we're sharing for you to explore and experiment with. Feel free to use it, fork it, or build on top of it — but just know that it's not officially supported by Algolia and isn't covered under our SLA. We might update it, break it, or remove it entirely at any time. If you customize or configure things here, there's a chance that work could be lost. Also, using MCP in production could affect your Algolia usage.
If you have feedback or ideas (even code!), we'd love to hear it. Just know that we might use it to help improve our products. This project is provided "as is" and "as available," with no guarantees or warranties. To be super clear: MCP isn't considered an "API Client" for SLA purposes.
Installation
First follow the quick start, which will install Claude Desktop and setup a sample Fileserver MCP server. This is a great introduction to using MCP and will let you debug things using the official guide if there are issues.
Setup the prototype Algolia MCP server
Requirements:
Clone the repo and build the server
Clone the repo, amd build the mcp server:
We need to have the full path of the built server binary:
NOTE: When adding this command to your configuration, you must specify the binary along with the path (/path/to/the/repo/cmd/mcp/mcp
)
Update the settings to point to the new server
In Claude desktop edit the settings as per https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server and this time add the server definition for algolia (using the server path that you found earlier).
By default, all available tools are enabled when MCP_ENABLED_TOOLS is empty or not set. If you want to enable only specific tools, you can set this variable to a comma-separated list of tool names. Available tools are: abtesting, analytics, collections, monitoring, querysuggestions, recommend, search, search_read, search_write, usage.
search
: Enables all search operations (both read and write)search_read
: Enables only read operations (list indices, get settings, run queries, get objects)search_write
: Enables only write operations (clear, copy, delete, move, set settings, delete objects, insert objects)
Restart Claude desktop, and you should see a new "algolia"
tool is available.
Debugging
You can run the Inspector (see https://modelcontextprotocol.io/docs/tools/inspector) to check the MCP features and run them manually.
From the repo root, setup the environment
Move into the server directory, and rebuild (if necessary):
Run the MCP inspector on the server:
Using with Ollama
You can actually run a local mcphost (which orchestrates the MCP servers for you), and then use them with other models locally via Ollama.
We are using https://github.com/mark3labs/mcphost for this.
As per the README you need a a config file, so you can copy the Claude one, and put it somewhere sensible so you can use it on the command line (for example ~/mcp.json
)
By default, all available tools are enabled when MCP_ENABLED_TOOLS is empty or not set. If you want to enable only specific tools, you can set this variable to a comma-separated list of tool names. Available tools are: abtesting, analytics, collections, monitoring, querysuggestions, recommend, search, search_read, search_write, usage. You can now run it directly (no need to check out the repo):
FAQ
What sort of things can I do once I install this MCP?
Here are some sample prompts to seed your imagination:
- “Search all products in the index where brand = ‘Nike’ and price < 100.”
- “Add this JSON object to the blog_posts index.”
- “Update the searchable attributes for the recipes index to include ingredients.”
- “Configure my index to rank nebula_award winners higher”
Where can I read more about the Algolia MCP server?
Check out this blog post including an embedded demo video.
Resource templates and root are not supported by Claude desktop right now
This is a weird one, since there is a bunch of content online showing the templates, maybe it's just not GA yet.
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.
Algolia
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that interfaces with Alpaca trading API, allowing users to manage portfolios, place trades, and access market data through natural language interactions.Last updated -Python
- GoMIT License
- TypeScriptGPL 3.0