Skip to main content
Glama

Kagi MCP Server

Official
by kagisearch
MIT License
93
  • Apple
  • Linux

Kagi MCP サーバー

セットアップ手順

まず最初に、検索ツール以外のツールをご利用の場合を除いて、検索APIにアクセスできることを確認してください。現在クローズドベータ版で、リクエストに応じてご利用いただけます。招待をご希望の場合は、 support@kagi.comまでご連絡ください。

まずuvをインストールします。

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

ウィンドウズ:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Smithery経由でインストール

あるいは、 Smithery経由で Claude Desktop 用の Kagi をインストールすることもできます。

npx -y @smithery/cli install kagimcp --client claude

Claude Desktopでのセットアップ

// claude_desktop_config.json // Can find location through: // Hamburger Menu -> File -> Settings -> Developer -> Edit Config { "mcpServers": { "kagi": { "command": "uvx", "args": ["kagimcp"], "env": { "KAGI_API_KEY": "YOUR_API_KEY_HERE" "KAGI_SUMMARIZER_ENGINE": "YOUR_ENGINE_CHOICE_HERE" // Defaults to "cecil" engine if env var not present } } } }

ツールの使用を必要とするクエリをポーズする

たとえば、検索の場合は「タイム誌の2024年のパーソン・オブ・ザ・イヤーは誰だったか?」、要約の場合は「このビデオを要約してください: https://www.youtube.com/watch?v=jNQXAC9IVRw 」などです。

デバッグ

走る:

npx @modelcontextprotocol/inspector uvx kagimcp

ローカル/開発環境のセットアップ手順

クローンリポジトリ

git clone https://github.com/kagisearch/kagimcp.git

依存関係をインストールする

まずuvをインストールします。

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

ウィンドウズ:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

次に、MCP サーバーの依存関係をインストールします。

cd kagimcp # Create virtual environment and activate it uv venv source .venv/bin/activate # MacOS/Linux # OR .venv/Scripts/activate # Windows # Install dependencies uv sync

Claude Desktopでのセットアップ

MCP CLI SDKの使用
# `pip install mcp[cli]` if you haven't mcp install /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp/src/kagimcp/server.py -v "KAGI_API_KEY=API_KEY_HERE"
手動で
# claude_desktop_config.json # Can find location through: # Hamburger Menu -> File -> Settings -> Developer -> Edit Config { "mcpServers": { "kagi": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp", "run", "kagimcp" ], "env": { "KAGI_API_KEY": "YOUR_API_KEY_HERE" "KAGI_SUMMARIZER_ENGINE": "YOUR_ENGINE_CHOICE_HERE" // Defaults to "cecil" engine if env var not present } } } }

ツールの使用を必要とするクエリをポーズする

たとえば、検索の場合は「タイム誌の2024年のパーソン・オブ・ザ・イヤーは誰だったか?」、要約の場合は「このビデオを要約してください: https://www.youtube.com/watch?v=jNQXAC9IVRw 」などです。

デバッグ

走る:

# If mcp cli installed (`pip install mcp[cli]`) mcp dev /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp/src/kagimcp/server.py # If not npx @modelcontextprotocol/inspector \ uv \ --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp \ run \ kagimcp

次に、MCP Inspector http://localhost:5173にアクセスします。インスペクターの環境変数KAGI_API_KEYにKagi APIキーを追加する必要がある場合があります。

詳細設定

  • ログレベルは、 FASTMCP_LOG_LEVEL環境変数を通じて調整可能です(例: FASTMCP_LOG_LEVEL="ERROR"
  • サマライザーエンジンは、 KAGI_SUMMARIZER_ENGINE環境変数を使用してカスタマイズできます(例: KAGI_SUMMARIZER_ENGINE="daphne"
    • さまざまな要約エンジンについてはこちらで学んでください
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Tools

Kagi の検索機能を Claude AI と統合する MCP サーバー。これにより、Claude は最新の情報を必要とする質問に答えるときにリアルタイムの Web 検索を実行できます。

  1. セットアップ手順
    1. Smithery経由でインストール
    2. Claude Desktopでのセットアップ
    3. ツールの使用を必要とするクエリをポーズする
    4. デバッグ
  2. ローカル/開発環境のセットアップ手順
    1. クローンリポジトリ
    2. 依存関係をインストールする
    3. Claude Desktopでのセットアップ
    4. ツールの使用を必要とするクエリをポーズする
    5. デバッグ
  3. 詳細設定

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      An MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.
      Last updated -
      4
      2
      Python
    • -
      security
      F
      license
      -
      quality
      An MCP server that connects AI assistants to SearchAgora, enabling users to search for, discover, and purchase products across the web through natural language conversations.
      Last updated -
      1
      Python
      • Apple
    • -
      security
      F
      license
      -
      quality
      A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
      Last updated -
      5
      TypeScript
    • A
      security
      A
      license
      A
      quality
      An MCP server implementation that allows AI assistants to access, search, and interact with Dev.to content, including fetching articles, retrieving user information, and publishing new content.
      Last updated -
      10
      53
      Python
      MIT License
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/kagisearch/kagimcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server