Kagi
A Model Context Protocol server implementation for Kagi's API
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
Maintainer
Works with
Installation
Manual Installation
npx mcp-servers-kagiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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 installBuild the TypeScript source
Compile the TypeScript source to the build/ output directory.
npm run buildConfigure 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.
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.
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 inspectorKagi 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.
Kagi Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Kagi? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
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.
Set Up Kagi in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.