CK

czottmann/kagi-ken-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

42 stars 7 forks 품질 71 트렌드 0MIT

czottmann/kagi-ken-mcp는 MCP 서버 후보로 https://github.com/czottmann/kagi-ken-mcp.에서 수입

개요

czottmann/kagi-ken-mcp는 MCP 서버 후보로 https://github.com/czottmann/kagi-ken-mcp.에서 수입

개요(AI 번역)

kagi-ken] 패키지의 주위에 경량 노드 MCP 서버는 Kagi 세션 토큰을 사용하여 Kagi.com 서비스에 액세스 할 수 있습니다.

  • 검색: Kagi 검색
  • Summarizer: URL 또는 텍스트 내용에서 요약을 생성하기 위해 Kagi의 Summarizer를 사용합니다.

API 액세스가 필요한 공식 Kagi API와 달리, 이 MCP 서버는 기존 Kagi 세션을 사용하여 검색 및 요약 기능에 액세스합니다.

“Kagi-ken” 의 portmanteau입니다 “Kagi” (서비스) 및 “token” .

왜?

Kagi API는 현재에 초대되는 별도의 API 키가 필요합니다. 이미 Kagi 구독이 있지만 API 액세스가 없지만, Claude와 같은 LLMs 또는 에이전트에서 프로그래밍 가능한 액세스 Kagi의 서비스를 원하면 MCP 서버는 대안을 제공합니다.

특징

-Search: 동시 쿼리 처리로 Kagi Search를 사용하여 Fetch 웹 결과

  • **Summarization **: customizable 산출 유형과 언어를 가진 URL에서 콘텐츠를 요약하십시오

서버는 Kagi 세션 토큰 (설치 참조)을 사용하여 두 가지 방법을 지원합니다.

  1. KAGI_SESSION_TOKEN 환경변수
  2. ~/.kagi_session_token 토큰 문자열을 포함하는 파일

그것은 포괄적인 오류 취급을 포함합니다:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

kagi-ken-mcp

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 KAGI_SESSION_TOKEN env variable

The server will automatically try the environment variable first, then fall back to the token file.

[!WARNING] Security Note: Keep your session token private. It provides access to your Kagi account.

2.a. Add MCP server to Claude Desktop

Add kagi-ken-mcp to your claude_desktop_config.json which you can open from the Claude Desktop app via Settings → Developer → Local MCP Servers → Edit Config.

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

Option 2: Using environment variable

{
  "mcpServers": {
    "kagi-ken-mcp": {
      "command": "npx",
      "args": ["-y", "github:czottmann/kagi-ken-mcp"],
      "env": {
        "KAGI_SESSION_TOKEN": "YOUR_SESSION_TOKEN_HERE"
      }
    }
  }
}

Post-install

GitHub에서 전체 README 보기

설치

npx -y github:czottmann/kagi-ken-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

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