# czottmann/kagi-ken-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/czottmann/kagi-ken-mcp  
**GitHub Stars:** 41  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/czottmann-kagi-ken-mcp

## Description
Work with Kagi without API access (you'll need to be a customer, tho). Searches and summarizes. Uses Kagi session token for easy authentication.

## Tools
Capabilities this server exposes over MCP:

- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kagi-ken-mcp": {
    "command": "npx",
    "args": ["-y","github"],
    "env": {
      "KAGI_SESSION_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `KAGI_SESSION_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What czottmann/kagi-ken-mcp MCP server does

The czottmann/kagi-ken-mcp MCP server connects MCP clients to selected Kagi services without requiring a separate Kagi API key. It uses an existing Kagi session token, so it is intended for Kagi customers who want agents to search the web or summarize content.

The server exposes two tools:

- `kagi_search_fetch` accepts one or more text queries and returns Kagi web results. Results are numbered continuously, which helps an agent refer to specific entries.
- `kagi_summarizer` summarizes content identified by a URL. The supported inputs include webpages, videos, and audio. The caller can request paragraph-style output or bullet-point takeaways, and can specify a target language.

## How it works

The czottmann/kagi-ken-mcp MCP server runs locally as a lightweight Node.js MCP process and uses the `kagi-ken` package to access Kagi. For authentication, it checks `KAGI_SESSION_TOKEN` first. If that variable is absent, it reads the token from `~/.kagi_session_token`.

A session token can be obtained from Kagi account settings by copying the Session Link and extracting its `token` value. The token grants access to the associated Kagi account and should be treated as private account credentials.

Search accepts an array of queries and processes searches concurrently. Each search has a 10-second connection timeout. The server also validates inputs and formats errors for MCP clients.

## Setup and configuration

Node.js 22+ is required. The repository provides an `npx` configuration that runs the server directly from GitHub:

```json
{
  "mcpServers": {
    "kagi-ken-mcp": {
      "command": "npx",
      "args": ["-y", "github:czottmann/kagi-ken-mcp"]
    }
  }
}
```

With this configuration, place the token in `~/.kagi_session_token`. Alternatively, pass `KAGI_SESSION_TOKEN` in the MCP client's environment configuration. Claude Desktop and Claude Code installation examples are provided in the project documentation. For local development, clone the repository, run `npm install`, and start it with `npm run dev`.

## Tools and capabilities

`kagi_search_fetch` takes `queries`, an array of strings containing one or more searches. It returns fetched Kagi search results with continuous numbering.

`kagi_summarizer` takes a required `url`. Its `summary_type` option accepts `summary` for paragraph prose or `takeaway` for bullet points, with `summary` as the default. The optional `target_language` uses a language code such as `EN`, which is also the default.

## Limitations and notes

The czottmann/kagi-ken-mcp MCP server requires an existing Kagi customer session and does not provide access independently of that account. It is not affiliated with or endorsed by Kagi. Keep the session token confidential because it provides access to the Kagi account.

The documented client setup focuses on local use with Claude Desktop and Claude Code. The server requires Node.js 22 or newer, and search requests have a 10-second connection timeout. Built-in web search may need to be disabled in Claude Desktop or Claude Code if the goal is to route searches through these tools.

_Full upstream README: https://allmcps.com/mcp/czottmann-kagi-ken-mcp/readme_

