
kagisearch/kagimcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Kagi Searchおよびその他のツールのための公式モデルコンテキストプロトコル(MCP)サーバー。
概要
Kagi APIによってサポートされたMCPサーバーです。このサーバーは、MCP互換クライアントに対して検索および抽出ツールを公開します。 - - ウェブ、ニュース、動画、ポッドキャスト、画像検索(オプションのページ抽出、フィルター、Kagiレンズ付き)。- ページの全コンテンツをマークダウンとして取得。 以前のkagi_fastgptとkagi_summarizerツールは削除されました。両ツールとも将来のリリースで復活する予定です。 私たちはホストMCPサーバーを運営しています — インストールは不要です。HTTP対応のMCPクライアントをそちらに向け、KagiのAPIキーで認証してください。 OAuth2はまだサポートされていません(ロードマップに載っています)ので、今のところダッシュボードからAPIキーを取得し、Bearer HTTP認証で渡してください。 自分で実行したいですか?ローカルUVXインストールの場合はクライアント設定、または自社インフラでHTTPサーバーをホストするためのセルフホスティングを参照してください。 - Kagi APIキー KAGI_API_KEY。- UVは推奨されるUVXインストールパスです。 Codexは MCP 設定を ~/.codex/config.toml に書き込みます。
概要(AI 翻訳)
Kagi APIによってサポートされたMCPサーバーです。このサーバーは、MCP互換クライアントに対して検索および抽出ツールを公開します。
道具
kagi_search_fetch- ウェブ、ニュース、動画、ポッドキャスト、画像検索(オプションでページ抽出、フィルター、Kagiレンズ)を利用できます。kagi_extract- ページの全コンテンツをマークダウンとして取得します。
注: 以前の
kagi_fastgptおよびkagi_summarizerツールは削除されました。いずれも将来のリリースで復活する予定です。
ホスティングサーバー
私たちは**https://mcp.kagi.com/mcp**でホストMCPサーバーを運用しており、インストールは不要です。HTTP対応のMCPクライアントをそちらに向けて、KagiのAPIキーで認証してください。
OAuth2はまだサポートされていません(ロードマップに載っています)ので、今のところダッシュボードからAPIキーを取得し、BearerHTTP認証で渡してください。
Claudeコードの例:
自分で実行したいですか?ローカルuvxインストールのクライアント設定、または自社のインフラでHTTPサーバーをホストするセルフホスティングを参照してください。
要件
- Kagi APIキーは
KAGI_API_KEYにあります。 uvは推奨されるuvxインストールパスです。
インストール uv:
ウィンドウ:
クライアント設定
Codex CLI
コデックスはMCP構成を~/.codex/config.tomlに書き込みます。
クロードデスクトップ
まずUVをインストールしてください。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Kagi MCP Server
An MCP server backed by the Kagi API. It exposes search and extraction tools to MCP-compatible clients.
Tools
kagi_search_fetch- web, news, videos, podcasts, and image search with optional page extracts, filters, and Kagi lenses.kagi_extract- fetch a page’s full content as markdown.
Note: The previous
kagi_fastgptandkagi_summarizertools have been removed. Both are planned to return in a future release.
Hosted Server
We run a hosted MCP server at https://mcp.kagi.com/mcp — no install required. Point any HTTP-capable MCP client at it and authenticate with your Kagi API key.
OAuth2 isn’t supported yet (it’s on our roadmap), so for now grab your API key from the dashboard and pass it via Bearer HTTP authentication.
Example with Claude Code:
claude mcp add kagi https://mcp.kagi.com/mcp --transport http --header "Authorization: Bearer $(read -sp 'API key: ' k; echo $k)" --scope user
Prefer to run it yourself? See Client Setup for the local uvx install, or Self-Hosting to host the HTTP server on your own infrastructure.
Requirements
- A Kagi API key in
KAGI_API_KEY. uvfor the recommendeduvxinstall path.
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Client Setup
Codex CLI
codex mcp add kagi --env KAGI_API_KEY= -- uvx kagimcp
Codex writes MCP configuration to ~/.codex/config.toml.
Claude Desktop
Install uv first.
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Then in your Claude Desktop config (found through Settings -> Developer -> Edit Config):
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": ["kagimcp"],
"env": {
"KAGI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Claude Code
claude mcp add kagi -e KAGI_API_KEY="YOUR_API_KEY_HERE" -- uvx kagimcp
Smithery
npx -y @smithery/cli install kagimcp --client claude
Kiro
Add to your Kiro MCP config file (~/.kiro/settings/mcp.json for global, or .kiro/settings/mcp.json for project-scoped) using the same mcpServers JSON as Claude Desktop. See the Kiro MCP documentation for more details.
OpenCode
Edit the OpenCode configuration file in ~/.config/opencode/opencode.json and add the following:
{
"mcp": {
"kagi": {
"type": "local",
"command": ["uvx", "kagimcp"],
"enabled": true,
"environment": {
"KAGI_API_KEY": ""
}
}
}
}
インストール
uvx kagimcp設定
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": ["kagimcp"],
"env": {
"KAGI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}