Kagi Search API

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

Search and summarize via Kagi API
Access free search without API keys
Use session tokens for authentication
KSroido

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx kagi-session2api

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 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
1

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-mcp
2

Retrieve 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.

3

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"
4

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"
      }
    }
  }
}
5

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.

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

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

Read the full setup guide →

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.

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