Kagi

v1.0.0Search & Data Extractionstable

A Model Context Protocol server implementation for Kagi's API

kagimodel-context-protocol
Share:
44
Stars
0
Downloads
0
Weekly
0/5

What is Kagi?

Kagi is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server implementation for kagi's api

A Model Context Protocol server implementation for Kagi's API

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol server implementation for Kagi's AP

Use Cases

Search using Kagi's independent search API. Get private search results without tracking. Use Kagi's search capabilities in AI applications.
ac3xx

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedApr 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-servers-kagi

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Kagi

The Kagi MCP server connects AI assistants to Kagi's privacy-first search API, providing high-quality web search results without ad tracking or result manipulation. It exposes a kagi_search tool that accepts a natural-language query and returns ranked results with titles, URLs, and snippets sourced from Kagi's independent index. Developers and power users who already subscribe to Kagi can give their AI client access to the same authoritative search experience they use daily, with plans to add summarization and FastGPT capabilities in future releases.

Prerequisites

  • A Kagi account with an active subscription (the API requires a paid Kagi plan)
  • A Kagi API key generated from your account's API settings page
  • Node.js 18 or later
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Obtain your Kagi API key

Log in to kagi.com, navigate to Settings → Account → API, and generate a new API key. Copy it to a safe location — you will need it in the configuration step.

2

Clone and install the server

Clone the repository and install its Node.js dependencies.

git clone https://github.com/ac3xx/mcp-servers-kagi
cd mcp-servers-kagi
npm install
3

Build the TypeScript source

Compile the TypeScript source to the build/ output directory.

npm run build
4

Configure your MCP client

Add the server to your claude_desktop_config.json (or equivalent client config). Supply your Kagi API key in the env block.

5

Restart your MCP client

Restart Claude Desktop or reload your client. Confirm the Kagi server appears in the active MCP servers list before issuing search requests.

6

Debug with the MCP inspector (optional)

If the server does not respond, launch the browser-based inspector to test the kagi_search tool interactively.

npm run inspector

Kagi Examples

Client configuration

Add this block to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Point command to the compiled index.js output.

{
  "mcpServers": {
    "kagi-server": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-servers-kagi/build/index.js"],
      "env": {
        "KAGI_API_KEY": "your_kagi_api_key_here"
      }
    }
  }
}

Prompts to try

Once connected, ask questions that require up-to-date web search through the Kagi tool.

- "Search Kagi for 'TypeScript 5.5 new features' and summarize the top three results."
- "Use Kagi to find recent research papers on transformer attention mechanisms from 2025."
- "Search for 'best privacy-focused browsers 2025' and compare the options listed in the top results."

Troubleshooting Kagi

kagi_search returns a 403 Unauthorized error

Verify that KAGI_API_KEY is set correctly in your MCP client config and that your Kagi subscription includes API access. Free-tier accounts do not have API access — a paid plan is required.

Server fails to start: 'Cannot find module build/index.js'

Run 'npm run build' inside the mcp-servers-kagi directory to compile the TypeScript source. The build/ directory is not included in the repository and must be generated locally.

Search results are outdated or irrelevant

The kagi_search tool passes your query directly to Kagi's API, so result quality matches what you would see on kagi.com. Try rephrasing your query or adding a date qualifier like '2025' to narrow results.

Frequently Asked Questions about Kagi

What is Kagi?

Kagi is a Model Context Protocol (MCP) server that model context protocol server implementation for kagi's api It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Kagi?

Follow the installation instructions on the Kagi GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Kagi?

Kagi works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Kagi free to use?

Yes, Kagi is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-servers-kagi": { "command": "npx", "args": ["-y", "mcp-servers-kagi"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Kagi?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides