Kagi Search API
Free Kagi Search MCP server — access search and summarizer via session tokens, no API key needed. Works with Claude Desktop, Cursor, Windsurf, Hermes and any MCP client.
What is Kagi Search API?
Kagi Search API is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to free kagi search mcp server — access search and summarizer via session tokens, no api key needed. works with claude desktop, cursor, windsurf, hermes and any mcp client.
Free Kagi Search MCP server — access search and summarizer via session tokens, no API key needed. Works with Claude Desktop, Cursor, Windsurf, Hermes and any MCP client.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Free Kagi Search MCP server — access search and summarizer v
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx kagi-session2apiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kagi Search API
The Kagi Session2API MCP server provides free access to Kagi's web search and URL summarizer through session tokens extracted from a logged-in Kagi account, eliminating the need for a paid API key. It exposes two tools — kagi_search_fetch for full-featured web search with Kagi operators (site filters, filetype, language, date ranges) and kagi_summarizer for generating summaries of arbitrary URLs with configurable summarizer engines. It is a Python package that works with Claude Desktop, Cursor, Windsurf, Hermes, and any MCP-compatible client.
Prerequisites
- Python 3.10 or later and uv (or pip) package manager installed
- An active Kagi account (free tier available at kagi.com)
- A Kagi session token retrieved from Settings → Account → Session Link on kagi.com
- An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
Install the package
Install kagi-session2api-mcp from PyPI using pip or run it directly with uvx.
pip install kagi-session2api-mcp
# or run without installing:
uvx kagi-session2api-mcpRetrieve your Kagi session token
Log into kagi.com, navigate to Settings → Account → Session Link, and copy the token value from the session URL. This token authenticates your requests without a paid API key.
Set your session token as an environment variable
Export the token so the server can authenticate your Kagi search and summarizer requests. You can provide multiple tokens as a comma-separated list for higher throughput.
export KAGI_SESSION_TOKEN="your_session_token_here"
# or for multiple tokens:
export KAGI_SESSION_TOKENS="token1,token2,token3"Add the server to your MCP client configuration
Open claude_desktop_config.json and add the kagi-session2api-mcp entry, passing your session token via the env block.
{
"mcpServers": {
"kagi-search": {
"command": "uvx",
"args": ["kagi-session2api-mcp"],
"env": {
"KAGI_SESSION_TOKEN": "your_session_token_here"
}
}
}
}Restart your MCP client and test
Restart Claude Desktop or your chosen client. Ask it to search for something or summarize a URL to verify the server is working.
Kagi Search API Examples
Client configuration
claude_desktop_config.json entry for the Kagi Session2API MCP server using a session token.
{
"mcpServers": {
"kagi-search": {
"command": "uvx",
"args": ["kagi-session2api-mcp"],
"env": {
"KAGI_SESSION_TOKEN": "your_kagi_session_token_here"
}
}
}
}Prompts to try
Example prompts that use the kagi_search_fetch and kagi_summarizer tools.
- "Search Kagi for 'TypeScript performance tips site:dev.to' and summarise the top result."
- "Use Kagi to find recent news about quantum computing from the last 30 days."
- "Summarize the content at https://arxiv.org/abs/2401.00001 using the Kagi summarizer."
- "Search for 'Python async tutorial filetype:pdf' on Kagi and list the top 5 results."
- "Find and summarize the latest LLM benchmark comparisons published this week."Troubleshooting Kagi Search API
Authentication fails with a 403 or session expired error
Kagi session tokens expire when you log out or when the session is invalidated. Return to kagi.com → Settings → Account → Session Link and copy a fresh token, then update the KAGI_SESSION_TOKEN environment variable in your MCP config.
Rate limiting errors when making many searches in quick succession
The server enforces a per-token rate limit of 5 requests per second using a token bucket algorithm. Provide multiple tokens via KAGI_SESSION_TOKENS as a comma-separated list to increase throughput across different Kagi accounts.
uvx not found when starting the server
Install uv with 'pip install uv' or via the official installer at astral.sh/uv, then confirm 'uvx --version' works. Alternatively, install with pip and use the 'kagi-session2api-mcp' command directly.
Frequently Asked Questions about Kagi Search API
What is Kagi Search API?
Kagi Search API is a Model Context Protocol (MCP) server that free kagi search mcp server — access search and summarizer via session tokens, no api key needed. works with claude desktop, cursor, windsurf, hermes and any mcp client. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kagi Search API?
Follow the installation instructions on the Kagi Search API GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Kagi Search API?
Kagi Search API works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kagi Search API free to use?
Yes, Kagi Search API is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Kagi Search API Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Kagi Search API? 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 Search API 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 Search API?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.