
Kagi Search
OfficialOfficial Kagi MCP server (Python/uvx) — privacy-first web search and URL/video summarization.
Add to your client
Copy the config for your MCP client and paste it into its config file.
uvx kagimcpPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"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.
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
About Kagi Search
Kagi Search is the official MCP server from Kagi, written in Python and run via uvx kagimcp. It connects MCP clients to Kagi's privacy-first search and content-extraction APIs, letting an AI assistant search the web and pull full page content as clean markdown.
The current release exposes two tools: kagi_search_fetch, which searches web, news, videos, podcasts, and images with optional page extracts, filters, and Kagi lenses; and kagi_extract, which retrieves the full content of a page formatted as markdown. Two earlier tools (FastGPT and Summarizer, which handled URL/video summarization) have been removed but are documented as planned to return in a future release.
It supports stdio for local use and an HTTP transport for multi-tenant self-hosting via Docker. Because Kagi's API is pay-per-use, this is best suited to users who already value Kagi's ad-free, privacy-respecting search and want that same source feeding their AI tools.
Tools & capabilities (2)
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.
When to use it
- Use it when you want a privacy-first, ad-free search source feeding your AI assistant.
- Use it when you need to search across multiple media types (web, news, videos, podcasts, images) from one tool.
- Use it when you want full page content returned as clean markdown for the model to read (kagi_extract).
- Use it when you want to apply Kagi lenses or filters to constrain search results.
- Use it when you are already a Kagi subscriber and want to reuse your search quality in agent workflows.
Quick setup
- 1Install the uv package manager using the platform install script.
- 2Generate a Kagi API key from the Kagi API portal (API Management → Generate Key).
- 3In Claude Desktop, open Settings → Developer → Edit Config and add a `kagi` server with command `uvx`, args `["kagimcp"]`, and env `KAGI_API_KEY`.
- 4Restart the MCP client so it launches the server via uvx.
- 5Verify by asking the assistant to run a Kagi search and confirm kagi_search_fetch returns results.
Security notes
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 FAQ
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.
How do I get an API key?
Generate one in the Kagi API portal's API Management section; on Family/Team plans only the account owner can access the portal. Keys can be name-, product-, and IP-restricted.
Does it support self-hosting beyond local stdio?
Yes. In addition to stdio for local development, it supports an HTTP transport for multi-tenant self-hosting via Docker.
Alternatives to Kagi Search
Official MCP reference server that fetches a URL and returns its content as clean Markdown, with chunking.
Official Firecrawl MCP server — scrape, crawl, map, search, and structured extraction for any LLM client.
Exa's neural web search and crawling MCP server — runs locally via npx or as a hosted remote endpoint.
Compare Kagi Search with: