Kimi Search MCP
Kimi Search MCP is an unofficial local stdio MCP server that exposes Kimi web search and optional web fetch tools using a Moonshot API key, with CN/global region support.
kimi_search_basic: basic web search; requirestext_query; optionallimit(1–20, default 5),include_content(default false), andtimeout_seconds(1–60, default 30).kimi_search_pro: pro web search returning text chunks and relevance scores; requirestext_query; optionallimit(1–20, default 5),sites(max 5),time_windowwithstart/end, andtimeout_seconds(1–60, default 30).kimi_web_fetch: webpage fetch tool, disabled by default; enable by settingKIMI_ENABLE_WEB_FETCH=true.Supports selecting
KIMI_REGIONascn(default) orglobal; API keys are region-specific and cannot be mixed.Uses the selected Kimi open platform account quota and is invoked via stdio MCP client configuration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kimi Search MCP search the web for the latest news on Moonshot's Kimi K2 model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kimi Search MCP
非官方的本地 MCP Server,使用 Kimi 开放平台 API Key 调用联网搜索和网页抓取接口,支持国内站和国际站。仅支持 stdio。
环境要求
Node.js 22 或更新版本
npm
Moonshot 开放平台 API Key
Related MCP server: mcp-web-search-server
安装与启动
推荐使用 npm 全局安装,适合日常使用,启动开销较低且无需自行构建。npx 配置方便,适合快速试用,但启动开销较高;源码构建适合需要修改代码的用户。
以下以 Kimi Code 桌面版为例,将配置合并到用户级 ~/.kimi-code/mcp.json,替换 API Key 占位符。
保存配置后,若配置变更未生效,工具未出现在 MCP 列表中,可尝试重启客户端。
npm 全局安装(推荐)
npm install -g kimi-search-mcp@latest安装完成后,使用以下启动配置:
Windows:
{ "mcpServers": { "kimi-search": { "command": "cmd", "args": ["/c", "kimi-search-mcp"], "env": { "MOONSHOT_API_KEY": "YOUR_MOONSHOT_API_KEY", "KIMI_REGION": "cn", "KIMI_ENABLE_WEB_FETCH": "false" }, "toolTimeoutMs": 80000 } } }macOS / Linux:
{ "mcpServers": { "kimi-search": { "command": "kimi-search-mcp", "args": [], "env": { "MOONSHOT_API_KEY": "YOUR_MOONSHOT_API_KEY", "KIMI_REGION": "cn", "KIMI_ENABLE_WEB_FETCH": "false" }, "toolTimeoutMs": 80000 } } }
npx 快速试用
无需全局安装或自行编译,配置方便,但启动开销高于全局安装。
Windows:
{ "mcpServers": { "kimi-search": { "command": "cmd", "args": ["/c", "npx", "-y", "kimi-search-mcp@latest"], "env": { "MOONSHOT_API_KEY": "YOUR_MOONSHOT_API_KEY", "KIMI_REGION": "cn", "KIMI_ENABLE_WEB_FETCH": "false" }, "toolTimeoutMs": 80000 } } }macOS / Linux:
{ "mcpServers": { "kimi-search": { "command": "npx", "args": ["-y", "kimi-search-mcp@latest"], "env": { "MOONSHOT_API_KEY": "YOUR_MOONSHOT_API_KEY", "KIMI_REGION": "cn", "KIMI_ENABLE_WEB_FETCH": "false" }, "toolTimeoutMs": 80000 } } }
首次启动需要联网下载包。
从源码构建
从 GitHub 仓库 下载源码,在项目根目录执行:
npm ci
npm run build构建产物位于 dist。将下方配置合并到客户端的 MCP 配置中,替换 API Key 占位符,并将 args 中的路径改为 dist/index.js 的实际绝对路径:
{
"mcpServers": {
"kimi-search": {
"command": "node",
"args": ["C:/path/to/kimi-search-mcp/dist/index.js"],
"env": {
"MOONSHOT_API_KEY": "YOUR_MOONSHOT_API_KEY",
"KIMI_REGION": "cn",
"KIMI_ENABLE_WEB_FETCH": "false"
},
"toolTimeoutMs": 80000
}
}
}工具
MCP 工具 | 对应接口 |
| |
| |
| 网页抓取,默认关闭 |
接口区别、参数和使用建议见官方文档:国内站联网搜索最佳实践、国际站联网搜索最佳实践。
环境变量
变量 | 规则 |
| 必填,使用所选站点创建的 Kimi 开放平台 API Key |
|
|
| 控制是否启用 |
站点在启动时选择,三个工具统一使用所选站点。未设置 KIMI_REGION 时默认使用国内站,国际站用户需要显式设置为 global。
[!note]
注意: 国内站与国际站的 API Key 相互独立,不能混用。切换
KIMI_REGION时,请同时将MOONSHOT_API_KEY替换为对应站点创建的 Key。官方 API Key 区域说明API Key 创建入口:国内站 API Key 管理页面、国际站 API Key 管理页面。
考虑到不少 Agent 软件已经自带免费的网页抓取(web_fetch)功能,需要付费使用的 kimi_web_fetch 工具默认关闭,也不会出现在客户端的工具列表中。需要时,可将 KIMI_ENABLE_WEB_FETCH 设置为 "true" 来开启。
费用
调用使用所选站点的 Kimi 开放平台账户额度。具体价格和计费规则见 国内站联网搜索与网页抓取定价、国际站联网搜索与网页抓取定价。
许可证
MIT,Copyright (c) 2026 Caelix。
Available Tools
2 toolskimi_search_basicC
Search webpages with Kimi Search Basic.
Inputs: text_query (required), limit, include_content, timeout_seconds.
kimi_search_proC
Search with Kimi Search Pro, returning text chunks and relevance scores.
Inputs: text_query (required), limit, sites, time_window, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are clearly differentiated by tier: basic returns simple results while pro returns text chunks with relevance scores. An agent can distinguish them, though choosing between basic and pro may still require judgment about cost/quality tradeoffs.
Both tools follow the same predictable pattern kimi_search_basic and kimi_search_pro, using a consistent prefix plus a clear tier suffix.
Only two tools make the surface thin, but for a focused search server offering two quality tiers this is borderline rather than inappropriate. It earns each tool's place but leaves little room for parameterization or content retrieval.
For a web search server, basic and pro tiers cover the core capability, including richer output via relevance scores. Minor gaps exist, such as a dedicated content-fetch or pagination tool, but agents can work around them.
Maintenance
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Web search API and MCP server for developers building AI agents.
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables web search and web fetch operations using Ollama's hosted APIs, allowing MCP clients to search the web and retrieve page content.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to perform web searches and fetch web pages over HTTP, using Exa and Parallel AI as search providers without requiring API keys.MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to perform web searches and fetch HTTP(S) pages as Markdown through Search and Fetch APIs.263 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP clients and agents to run structured web searches and fetch web pages as Markdown through a search/fetch API, with rate limiting, retry/backoff, request deadlines, and private-address blocking for safer agent use.2140 npmMIT