
How to add Kagi Search to Cursor
Official Kagi MCP server (Python/uvx) — privacy-first web search and URL/video summarization. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 15, 2026 · 417★ · stdio · apikey · official
Cursor config for Kagi Search
uvx kagimcp{
"mcpServers": {
"kagi-search": {
"command": "uvx",
"args": [
"kagimcp"
],
"env": {
"KAGI_API_KEY": "<your-kagi-api-key>"
}
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Kagi Search config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Kagi Search's tools to confirm it's connected.
Before you start
- The uv package manager installed (uvx is used to launch the server)
- Python (installed/managed automatically by uv)
- A Kagi API key generated from the Kagi API portal (Generate Key in API Management), set as KAGI_API_KEY
- A Kagi account with a payment method on file — the Search API is pay-per-use, not free
What Kagi Search can do in Cursor
kagi_search_fetchSearch web, news, videos, podcasts, and images with optional page extracts, filters, and Kagi lenses.
kagi_extractFetch the full content of a page formatted as clean markdown.
Security
Requires a KAGI_API_KEY tied to a paid Kagi account; keep it secret. The Search API is in closed beta, so verify your key has search access before depending on the search tool in production.
Kagi Search + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Kagi Search config there under the "mcpServers" key and restart the client.
Is Kagi Search safe to use with Cursor?
Requires a KAGI_API_KEY tied to a paid Kagi account; keep it secret. The Search API is in closed beta, so verify your key has search access before depending on the search tool in production.
Is there a free tier for the Kagi API?
Not for search. Kagi's commercial APIs (Search, Summarizer, etc.) are pay-per-use and require a payment method; only the Small Web RSS Feed is free for non-commercial use.
Why does it use uvx instead of npx?
The server is a Python package, so it is launched with uv's uvx runner rather than Node's npx. You must install uv first.
Can it still summarize URLs and videos?
Not currently. The FastGPT and Summarizer tools were removed from the current release but are documented as planned to return in a future version.