Kagi MCP Server

Kagi MCP server

MCP server that allows to search web using Kagi API

Components

Resources

The server implements calls of API methods:

  • fastgpt
  • enrich/web
  • enrich/news

Prompts

The server provides doesn't provide any prompts:

Tools

The server implements several tools:

  • ask_fastgpt to search web and find an answer
  • enrich_web to enrich model context with web content
  • enrich_news to enrich model context with latest news

Configuration

Quickstart

Install

Claude Desktop

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

<details> <summary>Development/Unpublished Servers Configuration</summary> ``` "mcpServers": { "kagi-mcp": { "command": "uv", "args": [ "--directory", "path_to_project", "run", "kagi-mcp" ], "env": { "KAGI_API_KEY": "YOUR API KEY" } } } ``` </details>

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

npx @modelcontextprotocol/inspector uv --directory path_to_project run kagi-mcp
A
security – no known vulnerabilities (report Issue)
F
license - not found
A
quality - confirmed to work

Allows the use of Kagi's API for web searching and content enrichment through methods like fastgpt, enrich/web, and enrich/news.

  1. Components
    1. Resources
      1. Prompts
        1. Tools
        2. Configuration
          1. Quickstart
            1. Install
              1. Claude Desktop
            2. Development
              1. Building and Publishing
                1. Debugging