Kagi (Node.Js) MCP Server

Node implementation of a Kagi MCP server

Local serverstdioTypeScript

What is the Kagi (Node.Js) MCP server?

Node implementation of a Kagi MCP server. That is what the kagi (node.js) mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

A Node.js implementation of the Kagi MCP server that provides web search capabilities to AI assistants using the Kagi 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

The tools it exposes

The server publishes 8 tools. What each one is for:

  • Pre — built and ready to use (no build step required)
  • Name — Kagi Search
  • Type — command
  • Command — npx github:elliottlawson/kagi-mcp-server
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — 1. Clone the repository: bash git clone https://github.com/elliottlawson/kagi-mcp-server.git cd kagi-mcp-server
  • Building — If you make changes to the TypeScript code, rebuild the project:
  • Running — The Running tool exposed by this server

Getting it running

Installation goes through your MCP client rather than a global install: point it at github on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: KAGI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js 18 or higher - Kagi API key

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Kagi (Node.Js)'s toolset — Pre, Name, Type and 5 more — is a fair guide to whether it matches your workflow. It is maintained by elliottlawson; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Prebuilt and ready to use (no build step required)
NameKagi Search
Typecommand
Commandnpx github:elliottlawson/kagi-mcp-server
PrerequisitesThe Prerequisites tool exposed by this server.
Installation1. Clone the repository: bash git clone https://github.com/elliottlawson/kagi-mcp-server.git cd kagi-mcp-server
BuildingIf you make changes to the TypeScript code, rebuild the project:
RunningThe Running tool exposed by this server.

How to install the Kagi (Node.Js) MCP server

{
  "mcpServers": {
    "kagi": {
      "command": "npx",
      "args": ["-y", "github"],
      "env": {
        "KAGI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18 or higher - Kagi API key
VariableDescriptionRequired
KAGI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Kagi (Node.Js) to Pre.
  • Use Kagi (Node.Js) to Name.
  • Use Kagi (Node.Js) to Type.

Frequently asked questions

It is a Node.js implementation of an MCP server that provides web search capabilities to AI assistants using the Kagi search API.