drio
Open app

Kagi MCP server

Source

The Official Model Context Protocol (MCP) server for Kagi search & other tools.

Catalog onlyCatalog onlySTDIO

Overview

Kagi MCP server is a Model Context Protocol (MCP) server designed for Kagi search, enabling enhanced search capabilities through integration with Claude Desktop.

To use the Kagi MCP server, you need to set it up by installing the necessary dependencies and configuring it with your Kagi API key. You can then ask Claude questions that require search functionality.

  • Integration with Claude Desktop for advanced search queries - Easy setup instructions for various operating systems - Debugging tools for troubleshooting
  1. Enhancing search capabilities in applications using Kagi's search API.
  2. Automating search queries through Claude Desktop.
  3. Debugging and inspecting search queries using the MCP Inspector.

Add to your AI client

Use these steps to connect Kagi MCP server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "kagimcp-kagisearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "kagimcp-kagisearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "kagimcp-kagisearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "kagimcp-kagisearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "kagimcp-kagisearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "kagimcp-kagisearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagimcp-kagisearch"
      ]
    }
  }
}

FAQ

How do I get access to the Kagi search API?

Access is currently in closed beta and available upon request. Please reach out to support@kagi.com for an invite.

Is there a specific setup for different operating systems?

Yes! The setup instructions vary for MacOS, Linux, and Windows, and are provided in the documentation.

What is the MCP Inspector?

The MCP Inspector is a debugging tool that allows you to inspect and troubleshoot your MCP server setup.