- Notifications
You must be signed in to change notification settings - Fork9
MCP server for interacting with Algolia
License
algolia/mcp-node
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Quick Start •Features •Usage Examples •Installation •Configuration •Development •Troubleshooting •Contributing •License
algolia-mcp-demo.mp4
This repository contains experimental Model Context Protocol (or MCP) servers for interacting with Algolia APIs. We're sharing it 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.
- Download the latest release from ourGitHub Releases
- Authenticate with your Algolia account
- Connect to Claude Desktop
- Start asking questions about your Algolia data!
Note
For step-by-step instructions, follow theinstallation guide andconfiguration for Claude Desktop.
Algolia Node.js MCP enables natural language interactions with your Algolia data through Claude Desktop. This implementation allows you to:
- Search and manipulate indices with natural language
- Analyze search metrics and performance
- Monitor application status and incidents
- Visualize your data with AI-generated charts and graphs
- Integrate seamlessly with Claude Desktop through the Model Context Protocol
Here are some example prompts to get you started:
"What is the email address associated with my Algolia account?"
"List all my Algolia apps.""List all the indices are in my 'e-commerce' application and format them into a table sorted by entries.""Show me the configuration for my 'products' index."
"Search my 'products' index for Nike shoes under $100.""Add the top 10 programming books to my 'library' index using their ISBNs as objectIDs.""How many records do I have in my 'customers' index?"
"What's the no-results rate for my 'products' index in the DE region? Generate a graph using React and Recharts.""Show me the top 10 searches with no results in the DE region from last week."
"Are there any ongoing incidents at Algolia?""What's the current latency for my 'e-commerce' index?""Show me a visualization of my daily account usage for the past month."
Tip
Try providing your specific application and index in your initial prompt to avoid unnecessary back and forth.
- Download the latest release fromGitHub Releases
- Extract the
.zip
file - From your terminal, remove quarantine flag to allow execution:
xattr -r -d com.apple.quarantine<path_to_executable>
Note: This step is necessary as the executable is not signed with an Apple Developer account. If you prefer, you can build from source instead.
- Run the authentication command:This will open your browser to authenticate with the Algolia Dashboard.
<path_to_executable> authenticate
Coming soon.
- Open Claude Desktop settings
- Add the following to your configuration:
{"mcpServers": {"algolia-mcp": {"command":"<path_to_executable>" } }}
- Restart Claude Desktop
Tip
You can refer to theofficial documentation for Claude Desktop.
Usage: algolia-mcp [options] [command]Options: -h, --help displayhelpforcommandCommands: start-server [options] Starts the Algolia MCP server authenticate Authenticate with Algolialogout Remove all stored credentials list-tools List all available toolshelp [command] displayhelpforcommand
Usage: algolia-mcp start-server [options]Starts the Algolia MCP serverOptions: -t, --allow-tools<tools> Comma separated list of tool ids (default: getUserInfo,getApplications,...,listIndices) --credentials<applicationId:apiKey> Application ID and associated API key to use. Optional: the MCP will authenticate youif unspecified, giving you access to all your applications. -h, --help displayhelpforcommand
- Node.js 22 or higher
- npm
Clone the repository:
git clone https://github.com/algolia/mcp-nodecd mcp-nodenpm install
Configure Claude Desktop for development:
{"mcpServers": {"algolia-mcp": {"command":"<PATH_TO_BIN>/node","args": ["--experimental-strip-types","--no-warnings=ExperimentalWarning","<PATH_TO_PROJECT>/src/app.ts" ] } }}
Note: You'll need to restart Claude Desktop after making code changes.
npm run build -- --outfile dist/algolia-mcp
Use theMCP Inspector for testing and debugging:
Run the debug script:
cd mcp-nodenpm run debug
Openhttp://127.0.0.1:6274/ in your browser
ClickConnect to start the server
Send test requests through the inspector interface
- "App not responding" error: Ensure you've removed the quarantine attribute on macOS
- Authentication failures: Try logging out and authenticating again
- Claude can't access tools: Verify your MCP configuration in Claude Desktop settings
Log files are stored in:
- macOS:
~/Library/Logs/algolia-mcp/
- Windows:
%APPDATA%\algolia-mcp\logs\
- Linux:
~/.config/algolia-mcp/logs/
We welcome contributions to Algolia Node.js MCP! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a pull request
Algolia Node.js MCP isMIT licensed.
Made with ❤️ by Algolia
About
MCP server for interacting with Algolia
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.