Algolia Node.js MCP

Algolia Node.js MCP

Enables natural language interactions with Algolia search and analytics APIs through Claude Desktop. Supports searching indices, managing data, analyzing metrics, monitoring performance, and visualizing insights across your Algolia applications.

Category
访问服务器

README

🔍 Algolia Node.js MCP

🚀 Hosted MCP Now Available We’re excited to announce that a Hosted MCP is now available! This makes it easier than ever to connect your external data and APIs to ChatGPT — no setup or hosting required.

👉 Learn more and get started in our documentation.

<p align="center"> <a href="#-quick-start">Quick Start</a> • <a href="#-features">Features</a> • <a href="#-usage-examples">Usage Examples</a> • <a href="#-installation">Installation</a> • <a href="#%EF%B8%8F-configuration">Configuration</a> • <a href="#-development">Development</a> • <a href="#-troubleshooting">Troubleshooting</a> • <a href="#-contributing">Contributing</a> • <a href="#-license">License</a> </p>

https://github.com/user-attachments/assets/c36a72e0-f790-4b3f-8720-294ab7f5f6eb

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.

✨ Quick Start

  1. Download the latest release from our GitHub Releases
  2. Authenticate with your Algolia account
  3. Connect to Claude Desktop
  4. Start asking questions about your Algolia data!

[!NOTE] For step-by-step instructions, follow the installation guide and configuration for Claude Desktop.

🚀 Features

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

🔮 Usage Examples

Here are some example prompts to get you started:

Account Management

"What is the email address associated with my Algolia account?"

Applications

"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 & Indexing

"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?"

Analytics & Insights

"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."

Monitoring & Performance

"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.

📦 Installation

macOS

  1. Download the latest release from GitHub Releases
  2. Extract the .zip file
  3. 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.

  4. Run the authentication command:
    <path_to_executable> authenticate
    
    This will open your browser to authenticate with the Algolia Dashboard.

Windows & Linux

Coming soon.

⚙️ Configuration

Claude Desktop Setup

  1. Open Claude Desktop settings
  2. Add the following to your configuration:
    {
      "mcpServers": {
        "algolia-mcp": {
          "command": "<path_to_executable>"
        }
      }
    }
    
  3. Restart Claude Desktop

[!TIP] You can refer to the official documentation for Claude Desktop.

CLI Options

Available Commands

Usage: algolia-mcp [options] [command]

Options:
  -h, --help              display help for command

Commands:
  start-server [options]  Starts the Algolia MCP server
  authenticate            Authenticate with Algolia
  logout                  Remove all stored credentials
  list-tools              List all available tools
  help [command]          display help for command

Server Options

Usage: algolia-mcp start-server [options]

Starts the Algolia MCP server

Options:
  -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 you if unspecified, giving you access to all your applications.
  -h, --help                            display help for command

🛠 Development

Requirements

  • Node.js 22 or higher
  • npm

Setup Development Environment

  1. Clone the repository:

    git clone https://github.com/algolia/mcp-node
    cd mcp-node
    npm install
    
  2. 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.

Build

npm run build -- --outfile dist/algolia-mcp

Testing and Debugging

Use the MCP Inspector for testing and debugging:

  1. Run the debug script:

    cd mcp-node
    npm run debug
    
  2. Open http://127.0.0.1:6274/ in your browser

  3. Click Connect to start the server

  4. Send test requests through the inspector interface

🔧 Troubleshooting

Common Issues

  • "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

Logs and Diagnostics

Log files are stored in:

  • macOS: ~/Library/Logs/algolia-mcp/
  • Windows: %APPDATA%\algolia-mcp\logs\
  • Linux: ~/.config/algolia-mcp/logs/

👥 Contributing

We welcome contributions to Algolia Node.js MCP! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a pull request

License

Algolia Node.js MCP is MIT licensed.


<p align="center"> Made with ❤️ by Algolia </p>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选