
ksroido/kagi-session2api-mcp 是从 https://github.com/ksroido/kagi-session2api-mcp. 导入的 MCP 服务器候选
概览
ksroido/kagi-session2api-mcp 是从 https://github.com/ksroido/kagi-session2api-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
免费Kagi搜索MCP服务器 — 会话令牌,无需API密钥
英语 |中文文档
通过会话令牌访问Kagi搜索和摘要器——完全免费。支持Claude Desktop、Cursor、Windsurf、Cline、Hermes及任何兼容MCP的AI编码助手/代理。
⭐ 星级历史
** ⚠️ 终端用户警告**:本项目使用Kagi会话令牌访问搜索和摘要功能,无需官方付费API。这可能违反Kagi的服务条款。潜在后果包括账户暂停或永久封禁。请自行承担风险。 作者对Kagi采取的任何账户操作不承担任何责任。
** ⚠️ 安全警告**:您的Kagi会话令牌提供完整的账户访问权限。请将其当作密码来使用。切勿分享或提交到版本控制。
🌟 特色
- 基于会话的访问:使用Kagi会话令牌代替官方API(查询费用约25美元/1000美元)——完全免费
- 多令牌池:通过轮转配置多个令牌以实现更高吞吐量
- 每个令牌速率限制:使用令牌桶算法,每个令牌每秒5个请求
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Access Kagi search and summarizer via session tokens — completely free. Works with Claude Desktop, Cursor, Windsurf, Cline, Hermes and any MCP-compatible AI coding assistant/agent.
⭐ Star History
⚠️ EndUser Warning: This project uses Kagi session tokens to access search and summarizer features without the official paid API. This may violate Kagi’s Terms of Service. Potential consequences include account suspension or permanent ban. Use at your own risk. The authors assume no liability for any account actions taken by Kagi.
⚠️ Security Warning: Your Kagi session token provides full account access. Treat it like a password. Never share it or commit it to version control.
🌟 Features
- Session-based access: Uses Kagi session tokens instead of the official API ($25/1000 queries) — completely free
- Multi-token pool: Configure multiple tokens for higher throughput with round-robin rotation
- Per-token rate limiting: 5 req/s per token with token bucket algorithm
- API-compatible output: Returns results in the same format as the official
kagimcp - Two tools:
kagi_search_fetch(web search) andkagi_summarizer(URL summarization) - Firefox UA spoofing: Mimics a real Firefox browser for session-based access
- Auto-disable expired tokens: Expired tokens are automatically detected and skipped
- Search operators: Supports Kagi operators (
site:,lang:,filetype:, etc.)
Compatible Platforms
Works with any MCP-compatible client:
- Claude Desktop
- Cursor
- Windsurf
- Cline
- Hermes Agent
- Any MCP client supporting
stdioorHTTPtransport
Quick Install (For AI Agents)
Just paste this prompt to your AI agent:
Install the Kagi Session2API MCP server from https://pypi.org/project/kagi-session2api-mcp/.
Then add it to my MCP:
`uvx kagi-session2api-mcp`
安装
uvx kagi-session2api-mcp配置
{
"mcpServers": {
"kagi-session": {
"command": "uvx",
"args": ["kagi-session2api-mcp"],
"env": {
"KAGI_SESSION_TOKEN": "YOUR_SESSION_TOKEN_HERE"
}
}
}
}