Atlas / MCP servers / czottmann / Kagi Ken

Kagi KenSAFE

mcp/czottmann/kagi-ken

Unofficial MCP server for working with Kagi *without* API access (you'll need to be a customer). Searches and summarizes. Uses Kagi session token for easy authentication. Works well with your agent.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
2 2r · 0w · 0d
Transport
stdio
License
MIT
Stars
42
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A lightweight Node MCP server around the `kagi-ken` package, providing access to Kagi.com services using Kagi session tokens:

  • Search: Searches Kagi
  • Summarizer: Uses Kagi's Summarizer to create summaries from URLs or text content

Unlike the official Kagi API which requires API access, this MCP server uses your existing Kagi session to access both search and summarization features.

"Kagi-ken" is a portmanteau of "Kagi" (the service) and "token".

Why?

The Kagi API requires a separate API key, which are invite-only at the moment. If you already have a Kagi subscription but no API access, yet want to programmatically access Kagi's services from LLMs or agents like Claude, this MCP server provides an alternative.

Features

  • Search: Fetch web results using Kagi Search with concurrent query processing
  • Summarization: Summarize content from URLs with customizable output types and languages

The server supports two methods for using your Kagi session token (see Installation), in this order:

  1. KAGI_SESSION_TOKEN environment variable
  2. ~/.kagi_session_token file containing the token string

It includes comprehensive error handling:

  • Connection timeouts (10 seconds per search)
  • Invalid input validation
  • Environment variable validation
  • Graceful error formatting

Installation

Node.js 22+ is required.

1. Get Kagi Session Token

  1. Visit Kagi Settings in your browser
  2. Copy the Session Link
  3. Extract the token value from the link
  4. Use that value as your session token: save to ~/.kagi_session_token (recommended), alternatively pass as `KAGISESSION
Read from source at commit 1cbe18731c71OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add kagi-ken-mcp --env KAGI_SESSION_TOKEN=${KAGI_SESSION_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "kagi-ken-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "KAGI_SESSION_TOKEN": "${KAGI_SESSION_TOKEN}"
      }
    }
  }
}
03

Exposed tools (2)

2 read · 0 write · 0 destructive.

ToolRiskDescription
kagi_search_fetchreadFetch web results based on one or more queries using the Kagi.com web search engine. Use for general search and when the user explicitly tells you to
kagi_summarizerreadSummarize content from a URL using the Kagi.com Summarizer API. The Summarizer can summarize any document type (text webpage, video, audio, etc.)
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (1)

LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, kagi-ken, zod
Why it matters. 3 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 1cbe18731c71full audit observations/trust-audit/mcp-server/czottmann__kagi-ken.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-081cbe18731c71SAFEB89first audit
06

Questions

What is the Kagi Ken MCP server?

Unofficial MCP server for working with Kagi *without* API access (you'll need to be a customer). Searches and summarizes. Uses Kagi session token for easy authentication. Works well with your agent.

What tools does Kagi Ken expose?

2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Kagi Ken safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Kagi Ken need?

It reads KAGI_SESSION_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Kagi Ken run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as kagi-ken-mcp at 1.3.0.

How current is this page?

The grade is for one exact copy of the source (1cbe18731c71), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement