kagi-server
Provides tools for web search, summarization, and fast answers using the Kagi API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kagi-server search for the best Italian restaurants in New York"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kagi-server MCP Server
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:
Tools for performing web searches and other operations using Kagi's API (currently in private beta)
Features
Implemented Tools
kagi_search- Perform web searches using KagiTakes a query string and optional limit as parameters
Returns search results from Kagi's API
Planned Tools (Not Yet Implemented)
kagi_summarize- Generate summaries of web pages or textkagi_fastgpt- Get quick responses using Kagi's FastGPTkagi_enrich- Fetch enriched news results on specific topics
Related MCP server: AIE7-MCP
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchEnvironment Setup
Create a .env file in the root directory with your Kagi API key:
KAGI_API_KEY=your_api_key_hereMake sure to add .env to your .gitignore file to keep your API key secure.
Installation
Installing via Smithery
To install Kagi Server for Claude Desktop automatically via Smithery:
npx @smithery/cli install kagi-server --client claudeTo 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
{
"mcpServers": {
"kagi-server": {
"command": "/path/to/kagi-server/build/index.js",
"env": {
"KAGI_API_KEY": "your_api_key_here"
}
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Usage
Once the server is running and connected to Claude Desktop, you can use it to perform web searches. For example:
Ask Claude: "Can you search for information about the latest advancements in quantum computing?"
Claude will use the
kagi_searchtool to fetch results from Kagi's API.Claude will then summarize or analyze the search results for you.
Note: The planned tools (summarize, fastgpt, enrich) are not yet implemented and cannot be used.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. Some areas for contribution include:
Implementing the planned tools (summarize, fastgpt, enrich)
Improving error handling and input validation
Enhancing documentation and usage examples
License
This project is licensed under the MIT License.
Roadmap
Implement
kagi_summarizetool for webpage and text summarizationImplement
kagi_fastgpttool for quick responsesImplement
kagi_enrichtool for fetching enriched news resultsImprove error handling and add more robust input validation
Add more comprehensive usage examples and documentation
Publish the package to npm for easy installation and use with Claude Desktop and npx
Available Tools
1 toolkagi_searchC
Perform web search using Kagi
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion or overlap with other tools. The tool's purpose is clearly defined as performing a web search.
With a single tool, naming consistency is trivially satisfied. The name kagi_search follows a clear vendor_action pattern, though there is no other tool to compare it against.
A single tool for a search server is extremely thin. While a search-only server could be minimal, one tool provides very limited functionality and feels insufficient for a full-featured server.
The server only offers search, with no support for related operations like fetching search results by ID, saving searches, or accessing Kagi's other features. The surface is severely limited for a search-focused server.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Related MCP Servers
AlicenseAqualityBmaintenanceAn MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.2572MIT- FlicenseAqualityDmaintenanceMCP server that provides web search capabilities using the Tavily API.3-
- FlicenseAqualityDmaintenanceMCP server that provides a search_web tool to query a self-hosted SearXNG instance and return structured web search results.1-
- FlicenseAqualityDmaintenanceA focused MCP server that provides a single web_search tool for web searches, integrating Tavily and Brave with automatic fallback and key rotation.1-