Kagi MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows to search web using Kagi API, providing tools for web search (fastgpt), web content enrichment, and news enrichment

Kagi MCP 服务器

MCP 服务器允许使用 Kagi API 搜索网页

成分

资源

服务器实现API方法的调用:

  • fastgpt
  • 丰富/网络
  • 丰富/新闻

提示

服务器没有提供任何提示:

工具

该服务器实现了几个工具:

  • 使用 ask_fastgpt 搜索网页并找到答案
  • enrich_web 使用网络内容丰富模型上下文
  • enrich_news 使用最新新闻来丰富模型内容

配置

快速入门

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Kagi MCP 服务器:

npx -y @smithery/cli install kagi-mcp --client claude

克劳德桌面

在 MacOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json

发展

构建和发布

准备分发包:

  1. 同步依赖项并更新锁文件:
uv sync
  1. 构建软件包分发版:
uv build

这将在dist/目录中创建源和轮子分布。

  1. 发布到 PyPI:
uv publish

注意:您需要通过环境变量或命令标志设置 PyPI 凭据:

  • 令牌: --tokenUV_PUBLISH_TOKEN
  • 或用户名/密码: --username / UV_PUBLISH_USERNAME--password / UV_PUBLISH_PASSWORD

调试

npx @modelcontextprotocol/inspector uv --directory path_to_project run kagi-mcp

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

允许使用 Kagi 的 API 通过 fastgpt、enrich/web 和 enrich/news 等方法进行网络搜索和内容丰富。

  1. Components
    1. Resources
    2. Prompts
    3. Tools
  2. Configuration
    1. Quickstart
      1. Install
      2. Installing via Smithery
    2. Development
      1. Building and Publishing
      2. Debugging
    ID: rl6yu8g58l