Kagi Search

v1.0.0Search & Data Extractionstable

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.

ai-agentai-codingclaude-desktopcursorkagi
Share:
136
Stars
0
Downloads
0
Weekly
0/5

What is Kagi Search?

Kagi Search 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

Search and summarize with Kagi
No API key required via session tokens
Works with Claude, Cursor, and Windsurf
KSroido

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx kagi-session2api-mcp

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 Search

Kagi Session2API MCP Server provides free access to Kagi's privacy-focused web search and URL summarizer through browser session tokens, bypassing the need for a paid Kagi API subscription. The server exposes two tools: kagi_search_fetch for full web search supporting advanced Kagi operators such as site filters, file type restrictions, language preferences, and date ranges, and kagi_summarizer for generating concise summaries of any URL with multiple engine options. Compatible with Claude Desktop, Cursor, Windsurf, Hermes, and any MCP-standard client.

Prerequisites

  • Python 3.10 or later with uv or pip package manager installed
  • An active Kagi account (free tier available at kagi.com)
  • A Kagi session token from Settings → Account → Session Link on kagi.com
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install the package via pip or uvx

Install kagi-session2api-mcp from PyPI, or use uvx to run it without a permanent install.

pip install kagi-session2api-mcp
# or without installing:
uvx kagi-session2api-mcp
2

Retrieve your Kagi session token

Log into kagi.com, go to Settings → Account → Session Link, and copy the token value from the URL. This token is used instead of a paid API key.

3

Configure environment variables

Set your session token. You can provide a single token or multiple comma-separated tokens for higher throughput. Optionally specify a config file path.

export KAGI_SESSION_TOKEN="your_session_token_here"
# For multiple tokens:
export KAGI_SESSION_TOKENS="token1,token2"
4

Add the server to your MCP client configuration

Open claude_desktop_config.json and add the kagi-session2api-mcp server entry with the session token in the env block.

{
  "mcpServers": {
    "kagi-search": {
      "command": "uvx",
      "args": ["kagi-session2api-mcp"],
      "env": {
        "KAGI_SESSION_TOKEN": "your_session_token_here"
      }
    }
  }
}
5

Restart your MCP client and verify

Restart Claude Desktop or your chosen client. Test with a simple search query to confirm the server is connected and the session token is valid.

Kagi Search Examples

Client configuration

claude_desktop_config.json entry for the Kagi Session2API MCP server.

{
  "mcpServers": {
    "kagi-search": {
      "command": "uvx",
      "args": ["kagi-session2api-mcp"],
      "env": {
        "KAGI_SESSION_TOKEN": "your_kagi_session_token_here"
      }
    }
  }
}

Prompts to try

Example prompts that exercise Kagi web search and URL summarization tools.

- "Search Kagi for 'Rust memory safety best practices' and show the top 5 results."
- "Summarize the article at https://blog.rust-lang.org/2024/02/21/2024-edition-cfg.html using Kagi."
- "Find recent papers on diffusion models published in 2025 using Kagi search."
- "Search for 'site:github.com MCP server python' and list relevant repositories."
- "Use Kagi to search for TypeScript alternatives to lodash and summarize the top recommendation."

Troubleshooting Kagi Search

Requests fail with 401 or session token expired errors

Session tokens expire when your Kagi session ends. Return to kagi.com → Settings → Account → Session Link and copy a fresh token, then update KAGI_SESSION_TOKEN in your MCP config and restart the client.

Rate limit errors appear when making rapid searches

The server limits each token to 5 requests per second via a token bucket algorithm. Add multiple valid session tokens as a comma-separated list in KAGI_SESSION_TOKENS to spread load across tokens.

The kagi_summarizer tool returns an error for some URLs

Some URLs are blocked by paywalls or robots.txt restrictions that prevent the Kagi summarizer from accessing the content. Try a different summarizer engine by specifying the engine parameter, or use kagi_search_fetch to find a cached or alternative version of the content.

Frequently Asked Questions about Kagi Search

What is Kagi Search?

Kagi Search 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?

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

Which AI clients work with Kagi Search?

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

Is Kagi Search free to use?

Yes, Kagi Search 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": { "kagi-session2api-mcp": { "command": "npx", "args": ["-y", "kagi-session2api-mcp"] } } }

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

Read the full setup guide →

Ready to use Kagi Search?

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