Performs a web search using Kagi's search engine and returns relevant results
Generates a summary of content from a provided URL using Kagi's summarization engine
Kagi MCP provides seamless integration with Kagi's powerful search engine and content summarization capabilities. This MCP server allows AI assistants to perform web searches and generate summaries of various content types including articles, videos, and websites through Kagi's specialized engines. With customizable summarization options and reliable search results, Kagi MCP enhances AI assistants with high-quality information retrieval capabilities.
Kagi MCP server provides access to Kagi's search engine and content summarization tools through the Model Context Protocol. This integration allows AI assistants to perform web searches and generate summaries of various content types including articles, videos, and websites.
Before using the Kagi MCP server, you'll need:
uv
package manager installed on your systemFirst, install the uv package manager:
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
The simplest way to install Kagi MCP is through Smithery:
npx -y @smithery/cli install kagimcp --client claude
You can install and run the Kagi MCP server directly using uvx:
uvx kagimcp
Add the following to your Claude Desktop configuration file:
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": ["kagimcp"],
"env": {
"KAGI_API_KEY": "YOUR_API_KEY_HERE",
"KAGI_SUMMARIZER_ENGINE": "YOUR_ENGINE_CHOICE_HERE"
}
}
}
}
FASTMCP_LOG_LEVEL
environment variable (e.g., "ERROR"
, "INFO"
, etc.)KAGI_SUMMARIZER_ENGINE
environment variable
"cecil"
"daphne"
and others (see Kagi documentation for details)To debug the Kagi MCP server, run:
npx @modelcontextprotocol/inspector uvx kagimcp
This will launch the MCP Inspector interface at http://localhost:5173
. You may need to add your Kagi API key in the environment variables section under KAGI_API_KEY
.
Once configured, you can use the Kagi MCP server by asking questions that require search or summarization:
For developers who want to work with the source code:
Clone the repository:
git clone https://github.com/kagisearch/kagimcp.git
Install dependencies:
cd kagimcp
uv venv
source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows
uv sync
Configure Claude Desktop for local development using either:
pip install mcp[cli]
mcp install /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp/src/kagimcp/server.py -v "KAGI_API_KEY=API_KEY_HERE"