KSroido/Kagi-Session2API-MCP
View on GitHub ↗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.
81 ★6 forksPythonUpdated 3mo ago
What you need to know
Free Kagi search + summarizer MCP server that uses Kagi session tokens instead of the paid API — multi-token round-robin pool with per-token token-bucket rate limiting (5 req/s), auto-disable of expired tokens, API-compatible output with the official kagimcp, and stdio or HTTP transport.
Install
pip install kagi-session2api-mcp (or uvx kagi-session2api-mcp) set KAGI_SESSION_TOKEN (or KAGI_SESSION_TOKENS comma-separated / config.toml via KAGI_SESSION_CONFIG)
Usage
- •kagi_search_fetch for web search (supports site:/lang:/filetype:/intitle:/before:/after: operators)
- •kagi_summarizer for URL summarization (summary vs takeaway, engines cecil/agnes/daphne/muriel, target_language)
- •HTTP mode: kagi-session2api-mcp --http --host 0.0.0.0 --port 8000
Key features
- ✓session-token access to search + summarizer — completely free vs $25/1000 queries
- ✓multi-token pool with round-robin rotation and effective 5×N req/s
- ✓same result format as the official kagimcp
- ✓Firefox UA spoofing; expired tokens auto-detected (401/403/login redirect) and skipped
- ✓works with any stdio/HTTP MCP client
Best for
Users who want Kagi-grade search results in their AI agents without paying for the API.
Caveats
- ⚠may violate Kagi's Terms of Service — risk of account suspension or ban; use at your own risk
- ⚠session token is full-account access — treat like a password, never commit it
- ⚠summarizer uses an internal endpoint that may change
- ⚠scrapes /html/search instead of the official API
Platforms: macOS · Linux · WindowsClients: Claude Desktop · Cursor · Windsurf · Cline · Hermes · generic MCP clients
Reviewed 2026-08-11
Topics
ai-agentai-codingclaude-desktopcursorkagillmmcpmcp-servermodel-context-protocolsearchsummarizerweb-search
- Stars
- 81★
- Forks
- 6
- Language
- Python
- License
- —
- Created
- 2026-05-01
- Last push
- 2026-05-26