SuperAPIAI Directory

mcp-servers-kagi

github.com · AI developer platforms

mcp-servers-kagi is a TypeScript-based Model Context Protocol (MCP) server implementation for integrating the Kagi Search API. It provides tools to MCP-compatible clients (such as Claude Desktop) through the MCP protocol, enabling AI assistants to perform web searches. The project currently implements the kagi_search tool, which supports passing in a query string and an optional result count limit, and returns search results from the Kagi API. In addition, the project plans but has not yet implemented three tools: kagi_summarize (webpage/text summarization), kagi_fastgpt (fast responses), and kagi_enrich (enhanced news results). Before use, a Kagi API key must be configured. It can be installed via Smithery or built manually, and supports debugging with MCP Inspector. The project uses the MIT license and welcomes contributions.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

mcp-servers-kagi is a Model Context Protocol (MCP) server implementation for integrating Kagi's API into the MCP ecosystem. The project was developed by ac3xx, is hosted on GitHub, and is written in TypeScript, aiming to demonstrate core MCP concepts and provide practical search functionality.

  1. Purpose The server's main purpose is to act as an MCP server connecting AI clients (such as Claude Desktop) with the Kagi Search API. Through the MCP protocol, AI assistants can call the tools provided by the server to perform operations such as web searches, thereby enhancing their ability to obtain real-time information.

  2. Main Capabilities Currently, the server has implemented one tool:

  • kagi_search: Perform web searches using Kagi. It accepts a query string and an optional result count limit (limit) as parameters, and returns search results from the Kagi API.

In addition, the project plans but has not yet implemented the following tools (currently unavailable):

  • kagi_summarize: Generate summaries of webpages or text.
  • kagi_fastgpt: Use Kagi's FastGPT to obtain fast responses.
  • kagi_enrich: Obtain enhanced news results for a specific topic.
  1. Usage
  2. Environment preparation: A Node.js environment is required; install dependencies and build the server. The project provides commands for build and development mode (automatic rebuild); refer to the repository instructions for the specific commands.
  3. Environment configuration: Create a .env file in the root directory and fill in the Kagi API key. Note that .env should be added to .gitignore for security.
  4. Install via Smithery: Smithery can be used to automatically install the Kagi Server for Claude Desktop.
  5. Configure Claude Desktop: Add the server configuration in Claude Desktop's configuration file. Configuration file locations: on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%/Claude/claude_desktop_config.json.
  6. Debugging: Because the MCP server communicates via stdio, debugging may be difficult. It is recommended to use MCP Inspector, which can be started via a package script and will provide a URL to access the debugging tool in a browser.
  7. Usage example: After the server is running and connected to Claude Desktop, you can ask Claude to perform a search, for example: "Can you search for information about the latest advancements in quantum computing?" Claude will call the kagi_search tool to get results, then summarize or analyze them.

IV. Applicable scenarios Suitable for users who want to add Kagi web search capabilities to an AI assistant (especially Claude Desktop). Kagi is currently in private beta, so a valid Kagi API key is required. Suitable for developers, tech enthusiasts, or situations where search functionality needs to be integrated into the MCP ecosystem.

V. Limitations

  • The Kagi API is currently in private beta and may restrict access.
  • The three planned tools (Summary, FastGPT, Rich News) have not yet been implemented and cannot be used.
  • The project depends on a Kagi API key, which users need to obtain themselves.
  • The server communicates via stdio, and debugging requires additional tools.

VI. Contribution and License The project welcomes contributions, including implementing the planned tools, improving error handling and input validation, enhancing documentation and examples, publishing to npm, etc. The project uses the MIT License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools