
ac3xx/mcp-servers-kagi
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ac3xx/mcp-servers-kagi は [https://github.com/ac3xx/mcp-servers-kagi.] からインポートされた MCP サーバーの候補です
概要
ac3xx/mcp-servers-kagi は [https://github.com/ac3xx/mcp-servers-kagi.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Kagi API の統合のための MCP サーバー
これは、Kagi Search API を統合する TypeScript ベースの MCP サーバーです。 コアMCPのコンセプトを提示します。
- KagiのAPIを使用してWeb検索やその他の操作を実行するためのツール(現在のプライベートベータ)
##特徴
実装ツール
- [
kagi_search] - 萩を使ったWeb検索を実行 - クエリ文字列とオプションの制限をパラメータとして取得
- KagiのAPIから検索結果を返す
計画されたツール(まだ実装されていない)
- [
kagi_summarize- Webページやテキストの要約を生成する - [
kagi_fastgpt- カギのFastGPTを使用して迅速な応答を得る - [[
kagi_enrich] - 特定のトピックに関するニュース結果の充実
開発
依存関係をインストール:
サーバの構築:
自動再構築による開発のため:
環境設定
カギAPIキーでrootディレクトリにある[.envファイルを作成します。
.envを[.gitignore]ファイルに追加して、APIキーを安全に保つようにしてください。
インストール
##Smitheryでインストールする
クラウドデスクトップ用のKagi ServerをSmisery経由で自動的にインストールするには:
Claude Desktop を使用するには、サーバーの設定を追加します。
MacOSの場合: [~/Library/Application Support/Claude/claude_desktop_config.json
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
kagi-server MCP Server
MCP server for Kagi API integration
This is a TypeScript-based MCP server that integrates the Kagi Search API. It demonstrates core MCP concepts by providing:
- Tools for performing web searches and other operations using Kagi’s API (currently in private beta)
Features
Implemented Tools
kagi_search- Perform web searches using Kagi- Takes a query string and optional limit as parameters
- Returns search results from Kagi’s API
Planned Tools (Not Yet Implemented)
kagi_summarize- Generate summaries of web pages or textkagi_fastgpt- Get quick responses using Kagi’s FastGPTkagi_enrich- Fetch enriched news results on specific topics
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Environment Setup
Create a .env file in the root directory with your Kagi API key:
KAGI_API_KEY=your_api_key_here
Make sure to add .env to your .gitignore file to keep your API key secure.
Installation
Installing via Smithery
To install Kagi Server for Claude Desktop automatically via Smithery:
npx @smithery/cli install kagi-server --client claude
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"kagi-server": {
"command": "/path/to/kagi-server/build/index.js",
"env": {
"KAGI_API_KEY": "your_api_key_here"
}
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Usage
Once the server is running and connected to Claude Desktop, you can use it to perform web searches. For example:
- Ask Claude: “Can you search for information about the latest advancements in quantum computing?”
- Claude will use the
kagi_searchtool to fetch results from Kagi’s API. - Claude will then summarize or analyze the search results for you.
Note: The planned tools (summarize, fastgpt, enrich) are not yet implemented and cannot be used.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. Some areas for contribution include:
- Implementing the planned tools (summarize, fastgpt, enrich)
- Improving error handling and input validation
- Enhancing documentation and usage examples
License
This project is licensed under the MIT License.
Roadmap
インストール
npx @smithery/cli install kagi-server --client claude設定
{
"mcpServers": {
"kagi-server": {
"command": "/path/to/kagi-server/build/index.js",
"env": {
"KAGI_API_KEY": "your_api_key_here"
}
}
}
}