- Home
- MCP servers
- Kagi Ken
Kagi Ken
- javascript
23
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"czottmann-kagi-ken-mcp": {
"command": "npx",
"args": [
"-y",
"github:czottmann/kagi-ken-mcp"
],
"env": {
"KAGI_SESSION_TOKEN": "YOUR_SESSION_TOKEN_HERE"
}
}
}
}You can access Kagi Search and Summarizer features through a lightweight MCP server that uses your existing Kagi session token. This setup lets you perform web searches and summarize URLs or text content without needing a separate API key. It’s designed to work with MCP clients like Claude Desktop or Claude Code, leveraging your Kagi session to retrieve results and generate summaries efficiently.
How to use
To use the kagi_ken_mcp server, connect through your MCP client and reference the server by its name. You’ll be able to perform two main actions: fetch web results using Kagi Search and generate summaries with Kagi’s Summarizer. Use the search tool for queries like time’s 2024 person of the year, and use the summarizer for URLs you want summarized.
How to install
Prerequisites: ensure you have Node.js 22 or newer installed on your machine.
-
Get your Kagi session token using your browser settings. Copy the Session Link and extract the token value.
-
Store the token for automatic use by the MCP server or provide it as an environment variable when you start the server.
-
Add the MCP server to your Claude environment to enable access from Claude Desktop or Claude Code using the following configurations.
-
After setup, disable Claude Desktop’s built-in websearch or Claude Code’s built-in web search to ensure requests go through the kagi-ken-mcp server.
-
Use the following configuration snippets to register the MCP server in your Claude desktop and Claude Code environments.
{
"mcpServers": {
"kagi-ken-mcp": {
"command": "npx",
"args": ["-y", "github:czottmann/kagi-ken-mcp"]
}
}
}
Additional configuration and usage notes
Notes on environment variables and security: the KAGI_SESSION_TOKEN grants access to your Kagi account. Treat it as a secret and do not expose it in public places.
Configuration details for MCP clients
Post-install, you can provide the MCP server to Claude Desktop or Claude Code exactly as shown below to enable usage of kagi-ken-mcp from those clients.
Post-install examples for Claude Desktop and Claude Code
{
"mcpServers": {
"kagi-ken-mcp": {
"command": "npx",
"args": ["-y", "github:czottmann/kagi-ken-mcp"]
}
}
}
{
"mcpServers": {
"kagi-ken-mcp": {
"command": "npx",
"args": ["-y", "github:czottmann/kagi-ken-mcp"],
"env": {
"KAGI_SESSION_TOKEN": "YOUR_SESSION_TOKEN_HERE"
}
}
}
}
Available tools
kagi_search_fetch
Fetch web results based on one or more queries using the Kagi Search API. Results are numbered continuously for easy reference.
kagi_summarizer
Summarize content from URLs using the Kagi Summarizer API. Supports various document types including webpages, videos, and audio.