Kagi-Session2API-MCP
by KSroido·★ 134·Score 48
Free Kagi Search MCP server using session tokens instead of paid API, works with multiple MCP clients.
Overview
This MCP server provides access to Kagi's search and summarization features without requiring an official API key. It uses session tokens to bypass the paid API model, making it free to use. The server implements a token pool system with round-robin rotation and per-token rate limiting of 5 requests per second. It offers two main tools: web search and URL summarization, with output formats compatible with the official kagimcp server.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this when you want free access to Kagi's search and summarization features through MCP without paying for API calls.
When NOT to choose this
Don't choose if you risk violating Kagi's Terms of Service is a concern or if you need official API features like account balance tracking.
Tools this server exposes
2 tools extracted from the READMEkagi_search_fetchSearch the web using Kagi with various operators
kagi_summarizerSummarize any URL using Kagi's summarizer
Comparable tools
Installation
Install via pip:
pip install kagi-session2api-mcpFor Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"kagi-session": {
"command": "uvx",
"args": ["kagi-session2api-mcp"],
"env": {
"KAGI_SESSION_TOKEN": "YOUR_SESSION_TOKEN_HERE"
}
}
}
}Or with config file for multiple tokens:
{
"mcpServers": {
"kagi-session": {
"command": "uvx",
"args": ["kagi-session2api-mcp"],
"env": {
"KAGI_SESSION_CONFIG": "/path/to/config.toml"
}
}
}
}FAQ
- Is this server compliant with Kagi's terms of service?
- No, this project uses session tokens to access Kagi's services without the official API, which may violate Kagi's Terms of Service. Users risk account suspension or permanent ban.
- How do I get a Kagi session token?
- Log in to kagi.com, go to Settings → Account → Session Link, and copy the token from the session URL.
- Can I use multiple tokens for higher rate limits?
- Yes, you can configure multiple tokens with round-robin rotation. Each token provides 5 requests/second, so N tokens give 5×N requests/second total.
Compare Kagi-Session2API-MCP with
Last updated · Auto-generated from public README + GitHub signals.