The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Servers Kagi listing page.
MCP server for Kagi API integration
This is a TypeScript-based MCP server that integrates the Kagi Search API. It demonstrates core MCP concepts by providing:
kagi_search - Perform web searches using Kagi
kagi_summarize - Generate summaries of web pages or textkagi_fastgpt - Get quick responses using Kagi's FastGPTkagi_enrich - Fetch enriched news results on specific topicsInstall dependencies:
Build the server:
For development with auto-rebuild:
Create a .env file in the root directory with your Kagi API key:
Make sure to add .env to your .gitignore file to keep your API key secure.
To install Kagi Server for Claude Desktop automatically via Smithery:
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
The Inspector will provide a URL to access debugging tools in your browser.
Once the server is running and connected to Claude Desktop, you can use it to perform web searches. For example:
kagi_search tool to fetch results from Kagi's API.Note: The planned tools (summarize, fastgpt, enrich) are not yet implemented and cannot be used.
Contributions are welcome! Please feel free to submit a Pull Request. Some areas for contribution include:
This project is licensed under the MIT License.
kagi_summarize tool for webpage and text summarizationkagi_fastgpt tool for quick responseskagi_enrich tool for fetching enriched news results