Kagi MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows to search web using Kagi API, providing tools for web search (fastgpt), web content enrichment, and news enrichment

Kagi MCP サーバー

Kagi APIを使用してWeb検索を可能にするMCPサーバー

コンポーネント

リソース

サーバーはAPI メソッドの呼び出しを実装します:

  • ファストGPT
  • エンリッチ/ウェブ
  • エンリッチ/ニュース

プロンプト

サーバーはプロンプトを提供しません:

ツール

サーバーはいくつかのツールを実装します。

  • ask_fastgpt でウェブを検索して答えを見つける
  • enrich_web は、Web コンテンツでモデル コンテキストを充実させます。
  • enrich_news は、最新のニュースでモデルのコンテキストを充実させます。

構成

クイックスタート

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Kagi MCP サーバーを自動的にインストールするには:

npx -y @smithery/cli install kagi-mcp --client claude

クロードデスクトップ

MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json

発達

建築と出版

配布用のパッケージを準備するには:

  1. 依存関係を同期し、ロックファイルを更新します。
uv sync
  1. パッケージディストリビューションをビルドします。
uv build

これにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. PyPI に公開:
uv publish

注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。

  • トークン: --tokenまたはUV_PUBLISH_TOKEN
  • またはユーザー名/パスワード: --username / UV_PUBLISH_USERNAMEおよび--password / UV_PUBLISH_PASSWORD

デバッグ

npx @modelcontextprotocol/inspector uv --directory path_to_project run kagi-mcp

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

fastgpt、enrich/web、enrich/news などのメソッドを通じて、Web 検索やコンテンツの拡充に Kagi の API を使用できるようにします。

  1. Components
    1. Resources
    2. Prompts
    3. Tools
  2. Configuration
    1. Quickstart
      1. Install
      2. Installing via Smithery
    2. Development
      1. Building and Publishing
      2. Debugging
    ID: rl6yu8g58l