Kagi Ken MCP logo

Kagi Ken MCP

by czottmann

Search Kagi and summarize web, video, or audio URLs through an MCP server authenticated with a Kagi session token.

Install Kagi Ken MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "czottmann-kagi-ken-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "github:czottmann/kagi-ken-mcp"
      ],
      "env": {
        "KAGI_SESSION_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 2 tools correctly ().

Overview

The czottmann/kagi-ken-mcp MCP server exposes Kagi search and summarization to MCP-compatible clients through a Node.js process. It authenticates with a Kagi session token read from KAGI_SESSION_TOKEN or ~/.kagi_session_token, avoiding the separate official Kagi API access requirement. Use it when an agent needs web results, URL summaries, or summaries of supported video and audio content and you already have a Kagi subscription. Node.js 22 or newer is required.

Use cases

  • Search the web from an MCP-compatible agent
  • Summarize a webpage from its URL
  • Summarize a video or audio URL
  • Request bullet-point takeaways in a chosen language

Key features

  • Kagi web search for one or more queries
  • Continuous numbering of search results
  • URL summarization for webpages, videos, and audio
  • Paragraph or bullet-point summary formats
  • Session-token authentication
  • Concurrent search processing

Tools2

What Kagi Ken MCP lets your agent do. Expand a tool for its parameters.

Verified live~416 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/25 checks healthy over the last 111d

What it can do

From the 2 tools this server returned when we ran it.

Makes network requests · 2Read-only tools · 2
Network at startup4 connections
Files written at startupNone

Observed 2026-11-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20h ago via OSV.dev · github:czottmann/kagi-ken-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars42Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed2Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Kagi Ken MCP works

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:

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

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Kagi Ken MCP

Run it through Node.js with `npx -y github:czottmann/kagi-ken-mcp`, using Node.js 22 or newer.

Provide a Kagi session token through the `KAGI_SESSION_TOKEN` environment variable or save the token string in `~/.kagi_session_token`. The environment variable takes precedence.

Yes. The README provides a Claude Desktop MCP configuration using `npx` and the GitHub package reference.

It provides `kagi_search_fetch` for Kagi web searches and `kagi_summarizer` for summarizing URL content.

The summarizer supports video URLs, and the README gives a YouTube URL as an example.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKagi Ken MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/czottmann-kagi-ken-mcp?style=directory)](https://allmcps.com/mcp/czottmann-kagi-ken-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/czottmann-kagi-ken-mcp"><img src="https://allmcps.com/api/badge/czottmann-kagi-ken-mcp?style=directory" alt="Kagi Ken MCP on AllMCPs" /></a>