Cover image
Try Now
2025-04-14

用于与Algolia互动的MCP服务器

3 years

Works with Finder

9

Github Watches

0

Github Forks

9

Github Stars

🔍 Algolia Node.js MCP

Connect Claude Desktop to your Algolia data using the Model Context Protocol (MCP)

Quick StartFeaturesUsage ExamplesInstallationConfigurationDevelopmentTroubleshootingContributingLicense

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

✨ 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:
  -o, --allow-tools <tools>  Comma separated list of tool ids (default:
                             ["listIndices","getSettings","searchSingleIndex","getTopSearches","getTopHits","getNoResultsRate"])
  -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

Made with ❤️ by Algolia

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • evilsocket
  • 简单的代理开发套件。

    Reviews

    3 (6)
    Avatar
    user_4DocUfC0
    2025-04-26

    As a loyal user of mcp-node by Algolia, I can confidently say it’s an exceptional tool for building scalable applications. The product is well-structured and easy to use, making development faster and more efficient. With robust integration capabilities, mcp-node significantly enhances my project's performance. Highly recommended for developers looking for reliable and powerful solutions!

    Avatar
    user_kr27MpjQ
    2025-04-26

    As a dedicated mcp application user, I highly recommend the mcp-node by Algolia. This product seamlessly integrates and enhances functionality with powerful search capabilities. Smooth and efficient, it is a game-changer for node applications. Their commitment to quality shines through every feature, making development faster and more enjoyable. Definitely worth trying!

    Avatar
    user_L9Ytxqoy
    2025-04-26

    As a dedicated user of mcp-node developed by Algolia, I am thoroughly impressed by its performance and ease of integration. The seamless experience it offers makes handling nodes efficient and stress-free. Highly recommend this product for anyone looking to optimize their node projects!

    Avatar
    user_cwFnnOQh
    2025-04-26

    As a dedicated user of mcp-node, I find it to be an exceptional tool developed by Algolia. Its powerful features and seamless integration have significantly enhanced my projects. Whether you are working on simple tasks or complex applications, mcp-node proves to be a reliable and efficient solution. Highly recommended for anyone seeking robust performance and ease of use!

    Avatar
    user_X72HyTg7
    2025-04-26

    As an avid user of mcp applications, I must say that mcp-node by Algolia is a game-changer. It's incredibly efficient and user-friendly, making integration seamless. The support and documentation provided are top-notch, which significantly eases the development process. Highly recommended for anyone looking to enhance their project's functionality with robust features.

    Avatar
    user_509G1PS9
    2025-04-26

    I've been using mcp-node by Algolia for several months now and it's fantastic! The performance and reliability of this package are outstanding, making it an excellent choice for managing and deploying microservices. The integration process is seamless and documentation is comprehensive. Highly recommended!