AM

ac3xx/mcp-servers-kagi

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

44 stars 10 forks 품질 66 트렌드 12MIT

ac3xx/mcp-servers-kagi는 MCP 서버 후보가 https://github.com/ac3xx/mcp-servers-kagi.에서 수입되었습니다

개요

ac3xx/mcp-servers-kagi는 MCP 서버 후보가 https://github.com/ac3xx/mcp-servers-kagi.에서 수입되었습니다

개요(AI 번역)

MCP 서버 Kagi API 통합

Kagi Search API를 통합하는 TypeScript 기반 MCP 서버입니다. 그것은 제공하는 핵심 MCP 개념을 보여줍니다:

  • Kagi의 API를 사용하여 웹 검색 및 기타 작업을 수행하는 도구 (현재 개인 베타에서)

특징

구현 도구

  • kagi_search - Kagi를 사용하여 웹 검색 수행
  • 쿼리 문자열 및 옵션 제한을 매개 변수로 가져
  • Kagi의 API에서 검색 결과 반환

계획된 도구 (Yet 구현되지 않음)

  • kagi_summarize - 웹 페이지 또는 텍스트의 요약 생성
  • kagi_fastgpt - Kagi의 FastGPT를 사용하여 빠른 응답
  • kagi_enrich - 특정 주제에 대한 Fetch enriched 뉴스 결과

개발

의존성 설치:

서버 구축:

auto-rebuild를 가진 발달을 위해:

환경 설정

.env] 파일을 Kagi API 키와 루트 디렉토리에 생성:

.env]를 .gitignore]]파일에 추가하여 API 키 보안을 유지하십시오.

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Kagi Server를 자동으로 설치하십시오.

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 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

GitHub에서 전체 README 보기

설치

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" } } } }