{"_id":"@1a7432/kimi-search-mcp","_rev":"3-34e13f037a6d5a6c2a996e9b64c6d7b9","name":"@1a7432/kimi-search-mcp","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@1a7432/kimi-search-mcp","version":"0.1.0","keywords":["mcp","model-context-protocol","kimi","moonshot","moonshot-ai","search","web-search","ai","ai-search","llm"],"author":{"name":"1A7432"},"license":"MIT","_id":"@1a7432/kimi-search-mcp@0.1.0","maintainers":[{"name":"1a7432","email":"dirac_c@icloud.com"}],"homepage":"https://github.com/1a7432/kimi-search-mcp#readme","bugs":{"url":"https://github.com/1a7432/kimi-search-mcp/issues"},"bin":{"kimi-search-mcp":"dist/index.js"},"dist":{"shasum":"113d1cc0d68b21e279e233bc1a937696d0ac312e","tarball":"https://registry.npmjs.org/@1a7432/kimi-search-mcp/-/kimi-search-mcp-0.1.0.tgz","fileCount":7,"integrity":"sha512-cQSZgyBrmkvvPNOkAGnF7GyGKSw25MadEyJmvYCogtmrdiGPD5gKhDblBjEO2kl5cCJ1GyuVNt9TuS+V1wJRWA==","signatures":[{"sig":"MEUCIQCo/IhYUOa+zwR/tMyCD3peXKkQ30AcCvpT4/hLuzD47AIgWFF4h+TDffF48qgAO8nflpnlxNQ9Ump9oqtYLpJ8Afw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16912},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"scripts":{"test":"node test-detailed.js","build":"tsc","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"1a7432","email":"dirac_c@icloud.com"},"repository":{"url":"git+https://github.com/1a7432/kimi-search-mcp.git","type":"git"},"_npmVersion":"10.5.0","description":"MCP server that wraps Moonshot AI (Kimi) $web_search functionality for intelligent web search","directories":{},"_nodeVersion":"18.20.2","dependencies":{"openai":"^4.77.0","@modelcontextprotocol/sdk":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/kimi-search-mcp_0.1.0_1760325553117_0.047813155554336406","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@1a7432/kimi-search-mcp","version":"0.1.1","keywords":["mcp","model-context-protocol","kimi","moonshot","moonshot-ai","search","web-search","ai","ai-search","llm"],"author":{"name":"1A7432"},"license":"MIT","_id":"@1a7432/kimi-search-mcp@0.1.1","maintainers":[{"name":"1a7432","email":"dirac_c@icloud.com"}],"homepage":"https://github.com/1a7432/kimi-search-mcp#readme","bugs":{"url":"https://github.com/1a7432/kimi-search-mcp/issues"},"bin":{"kimi-search-mcp":"dist/index.js"},"dist":{"shasum":"d137153863a0bbec8c1c757cf15d12edc3c917c3","tarball":"https://registry.npmjs.org/@1a7432/kimi-search-mcp/-/kimi-search-mcp-0.1.1.tgz","fileCount":7,"integrity":"sha512-FswNxyfMPVR1tUqqURytEBJBXWB29ZselJhMxqsrjFj4yJEaMNdfTHEUnqVZigwv7I6j8cBhjo0UT5W0Zbm8zA==","signatures":[{"sig":"MEQCIGo+foxTpF49JGIZqYWwJjgwSx7xhXOODEkOG9fDhP5qAiAkai9RxwgITweylW83d9UYNXs5Lw52KqYQ4eLK5aoPzw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17051},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"1426f1b54d9ace26dcaee3aa872f32180b9e168b","scripts":{"test":"node test-detailed.js","build":"tsc","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"1a7432","email":"dirac_c@icloud.com"},"repository":{"url":"git+https://github.com/1a7432/kimi-search-mcp.git","type":"git"},"_npmVersion":"10.5.0","description":"MCP server that wraps Moonshot AI (Kimi) $web_search functionality for intelligent web search","directories":{},"_nodeVersion":"18.20.2","dependencies":{"openai":"^4.77.0","@modelcontextprotocol/sdk":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/kimi-search-mcp_0.1.1_1760338094611_0.7823549521096824","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@1a7432/kimi-search-mcp","version":"0.1.2","description":"MCP server that wraps Moonshot AI (Kimi) $web_search functionality for intelligent web search","type":"module","main":"dist/index.js","bin":{"kimi-search-mcp":"dist/index.js"},"scripts":{"build":"tsc","watch":"tsc --watch","prepare":"npm run build","test":"node test-detailed.js"},"keywords":["mcp","model-context-protocol","kimi","moonshot","moonshot-ai","search","web-search","ai","ai-search","llm"],"author":{"name":"1A7432"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/1a7432/kimi-search-mcp.git"},"bugs":{"url":"https://github.com/1a7432/kimi-search-mcp/issues"},"homepage":"https://github.com/1a7432/kimi-search-mcp#readme","engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.4","openai":"^4.77.0"},"devDependencies":{"@types/node":"^22.10.2","typescript":"^5.7.2"},"_id":"@1a7432/kimi-search-mcp@0.1.2","gitHead":"45f5a6d90de21ca41673278e93b261def223f911","types":"./dist/index.d.ts","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-73w48ItFcisqg4X/oU6yZXVgnCTL1eBKlqhJDR0L68sqNEcRZue6B0a7ZdruOz3N6UbFBSdr/Lt59VyxjbTJIg==","shasum":"1bfe40f192a65d182dacaa65300f407bbda1e2bf","tarball":"https://registry.npmjs.org/@1a7432/kimi-search-mcp/-/kimi-search-mcp-0.1.2.tgz","fileCount":7,"unpackedSize":16743,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICusXSbrUis1hvOWNMbdkS1l9euM+fdFZcWz1PQw0oGgAiBKqPh3FARXF0V2LXL4iVz0k0MlTfxTwkkb/kDnaALZlA=="}]},"_npmUser":{"name":"1a7432","email":"dirac_c@icloud.com"},"directories":{},"maintainers":[{"name":"1a7432","email":"dirac_c@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kimi-search-mcp_0.1.2_1760338372657_0.6166038889368066"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-13T03:19:13.049Z","modified":"2025-10-13T06:52:53.018Z","0.1.0":"2025-10-13T03:19:13.307Z","0.1.1":"2025-10-13T06:48:14.793Z","0.1.2":"2025-10-13T06:52:52.844Z"},"bugs":{"url":"https://github.com/1a7432/kimi-search-mcp/issues"},"author":{"name":"1A7432"},"license":"MIT","homepage":"https://github.com/1a7432/kimi-search-mcp#readme","keywords":["mcp","model-context-protocol","kimi","moonshot","moonshot-ai","search","web-search","ai","ai-search","llm"],"repository":{"type":"git","url":"git+https://github.com/1a7432/kimi-search-mcp.git"},"description":"MCP server that wraps Moonshot AI (Kimi) $web_search functionality for intelligent web search","maintainers":[{"name":"1a7432","email":"dirac_c@icloud.com"}],"readme":"# Kimi Search MCP Server\n\n一个将 Moonshot AI (Kimi) 的 `$web_search` 功能封装为 MCP (Model Context Protocol) 服务的工具。\n\n## ✨ 特性\n\n- 🔍 **智能搜索**: 使用 Kimi AI 内置的联网搜索功能，比传统搜索 API 更智能\n- 🧠 **语义理解**: AI 自动理解搜索意图，抓取并整合相关内容\n- 🚀 **开箱即用**: 通过 `npx` 一键运行，无需复杂配置\n- 🔌 **MCP 兼容**: 完全兼容 MCP 协议，可与 avante.nvim、Claude Desktop 等工具集成\n\n## 📦 安装\n\n### 方式 1: 通过 npm 安装（推荐）\n\n```bash\ncd ~/kimi-search-mcp\nnpm install\nnpm run build\nnpm link\n```\n\n### 方式 2: 直接使用 npx\n\n无需安装，在配置中直接使用 `npx` 运行即可。\n\n## 🔑 配置环境变量\n\n在 `~/.zshrc` 或 `~/.bashrc` 中添加：\n\n```bash\nexport MOONSHOT_API_KEY=\"your-moonshot-api-key-here\"\n```\n\n然后重新加载配置：\n\n```bash\nsource ~/.zshrc  # 或 source ~/.bashrc\n```\n\n## 🚀 使用方法\n\n### 在 avante.nvim 中使用\n\n在 `~/.config/nvim/lua/plugins/avante.lua` 的 `mcp_servers` 配置中添加：\n\n```lua\nmcp_servers = {\n  -- Kimi Search MCP 服务 - 提供 AI 驱动的智能搜索\n  [\"kimi-search\"] = {\n    command = \"node\",\n    args = {\n      os.getenv(\"HOME\") .. \"/kimi-search-mcp/dist/index.js\",\n    },\n    env = {\n      MOONSHOT_API_KEY = os.getenv(\"MOONSHOT_API_KEY\"),\n    },\n    timeout = 60000, -- 60秒超时（搜索可能需要较长时间）\n  },\n  \n  -- 或者使用 npx（如果你没有 npm link）\n  [\"kimi-search\"] = {\n    command = \"npx\",\n    args = {\n      \"-y\",\n      \"--prefix=\" .. os.getenv(\"HOME\") .. \"/kimi-search-mcp\",\n      \"kimi-search-mcp\",\n    },\n    env = {\n      MOONSHOT_API_KEY = os.getenv(\"MOONSHOT_API_KEY\"),\n    },\n    timeout = 60000,\n  },\n},\n```\n\n### 测试运行\n\n```bash\n# 设置环境变量\nexport MOONSHOT_API_KEY=\"your-api-key\"\n\n# 运行服务器\ncd ~/kimi-search-mcp\nnode dist/index.js\n```\n\n## 🛠️ 工具说明\n\n### kimi_search\n\n使用 Kimi AI 进行智能联网搜索。\n\n**参数:**\n- `query` (必需): 搜索查询，可以是问题、关键词或复杂的描述\n- `model` (可选): 使用的 Kimi 模型，默认 `kimi-k2-0905-preview`\n  - 可选: `kimi-k2-0905-preview`, `moonshot-v1-8k`, `moonshot-v1-32k`, `moonshot-v1-128k`\n\n**示例:**\n```json\n{\n  \"query\": \"Moonshot AI Context Caching 技术是什么？\",\n  \"model\": \"kimi-k2-0905-preview\"\n}\n```\n\n## 🆚 与传统搜索 API 的对比\n\n| 特性 | Kimi Search | 传统搜索 API (Tavily/SerpAPI) |\n|------|-------------|-------------------------------|\n| 智能程度 | ⭐⭐⭐⭐⭐ AI 自主决策 | ⭐⭐⭐ 固定搜索逻辑 |\n| 内容整合 | ⭐⭐⭐⭐⭐ 自动理解和总结 | ⭐⭐ 简单拼接结果 |\n| 上下文理解 | ⭐⭐⭐⭐⭐ 理解对话上下文 | ⭐ 独立搜索请求 |\n| 配置复杂度 | ⭐ 仅需 API Key | ⭐⭐⭐ 需要配置多个参数 |\n| 成本 | 按 Token 计费 | 按请求次数计费 |\n\n## 📝 工作原理\n\n1. **接收搜索请求**: MCP 客户端发送带有 `query` 的搜索请求\n2. **调用 Kimi API**: 使用 Kimi 的 `$web_search` builtin function\n3. **AI 自动搜索**: Kimi 在后端自动执行搜索、抓取、理解\n4. **返回整合结果**: 返回经过 AI 理解和整合的搜索结果\n\n## 🔧 开发\n\n```bash\n# 安装依赖\nnpm install\n\n# 开发模式（自动编译）\nnpm run watch\n\n# 构建\nnpm run build\n```\n\n## 📄 许可证\n\nMIT\n\n## 🙏 致谢\n\n- [Moonshot AI](https://www.moonshot.cn/) - 提供强大的 Kimi AI 和 $web_search 功能\n- [MCP](https://modelcontextprotocol.io/) - Model Context Protocol\n","readmeFilename":"README.md"}