drio
Open app

Kagi MCP Server (Node.js)

Source

Node implementation of a Kagi MCP server

Catalog onlyCatalog onlySTDIO

Overview

Kagi MCP Server is a Node.js implementation that provides web search capabilities to AI assistants using the Kagi search API.

To use the Kagi MCP Server, you can run it directly using npx or clone the repository and run it with Node.js. Ensure you have a Kagi API key to access the search API.

  • Web search using the Kagi API - Support for multiple search queries in parallel - Formatted search results - Built with TypeScript and the official MCP SDK - Pre-built and ready to use (no build step required) - Unique tool name (kagi_web_search) to avoid conflicts with other MCP servers
  1. Integrating Kagi search capabilities into AI assistants.
  2. Performing web searches through AI queries.
  3. Debugging and inspecting MCP server interactions.

Add to your AI client

Use these steps to connect Kagi MCP Server (Node.js) 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": {
    "kagi-mcp-server-elliottlawson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

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": {
    "kagi-mcp-server-elliottlawson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "kagi-mcp-server-elliottlawson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

{
  "servers": {
    "kagi-mcp-server-elliottlawson": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "kagi-mcp-server-elliottlawson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "kagi-mcp-server-elliottlawson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-kagi-mcp-server-elliottlawson"
      ]
    }
  }
}

FAQ

How do I get access to the Kagi API?

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

Can I run the server without installation?

Yes! You can run the server directly using npx without any installation required.

What is the unique tool name for this server?

The tool is named `kagi_web_search` to avoid conflicts with other MCP servers.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3078,"uuid":"798e91ea-1a06-478c-a8c2-2e2de8b15c72","name":"kagi-mcp-server","title":"Kagi MCP Server (Node.js)","description":"Node implementation of a Kagi MCP server","avatar_url":"https://avatars.githubusercontent.com/u/3441829?v=4","created_at":"2025-03-17T02:55:46.069Z","updated_at":"2025-03-17T03:47:03.044Z","status":"created","author_name":"elliottlawson","author_avatar_url":"https://avatars.githubusercontent.com/u/3441829?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/elliottlawson/kagi-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-16 11:06:05\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]