AM

ac3xx/mcp-servers-kagi

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

44 stars 10 forks Качество 66 Тренд 0MIT

ac3xx/mcp-серверы-kagi - кандидат на сервер MCP, импортированный из https://github.com/ac3xx/mcp-servers-kagi.

Обзор

ac3xx/mcp-серверы-kagi - кандидат на сервер MCP, импортированный из https://github.com/ac3xx/mcp-servers-kagi.

Обзор (машинный перевод)

MCP-сервер для интеграции Kagi API

Это MCP-сервер на основе TypeScript, который интегрирует API поиска Kagi. Он демонстрирует основные концепции MCP, предоставляя:

Инструменты для выполнения веб-поиска и других операций с использованием API Kagi (в настоящее время в частной бета-версии)

Особенности

Реализованные инструменты

  • kagi_search - Выполнять веб-поиск с помощью Kagi
  • Принимает строку запроса и необязательный предел в качестве параметров Возвращает результаты поиска из API Kagi

Планируемые инструменты (пока не реализованы)

kagi_summarize - Создание резюме веб-страниц или текста

  • kagi_fastgpt - Получайте быстрые ответы с помощью FastGPT Каги kagi_enrich - Получить обогащенные результаты новостей по конкретным темам

##Развитие

Установите зависимости:

Создайте сервер:

Для разработки с автоперестройкой:

Окружающая среда

Создайте файл .env в корневом каталоге с помощью ключа API Kagi:

Обязательно добавьте .env в свой .gitignore файл, чтобы сохранить ключ API в безопасности.

##Установка

###Установка через Smithery

Для автоматической установки Kagi Server для Claude Desktop через Smithery:

Чтобы использовать Claude Desktop, добавьте конфигурацию сервера:

На MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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 text
  • kagi_fastgpt - Get quick responses using Kagi’s FastGPT
  • kagi_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:

  1. Ask Claude: “Can you search for information about the latest advancements in quantum computing?”
  2. Claude will use the kagi_search tool to fetch results from Kagi’s API.
  3. 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

Открыть полный README на GitHub

Установка

npx @smithery/cli install kagi-server --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "kagi-server": { "command": "/path/to/kagi-server/build/index.js", "env": { "KAGI_API_KEY": "your_api_key_here" } } } }