Kagi MCP Server

Kagi's official MCP server: web, news, video and image search, plus page extraction to Markdown

MCP serverMedium risk

kagisearch/kagimcp

Install

claude mcp add kagi -e KAGI_API_KEY="YOUR_API_KEY_HERE" -- uvx kagimcp

Local run, requires uv.

This is third-party code. Review the repository files before installing.

What it does

The server gives an agent Kagi search via the API. kagi_search_fetch searches the web, news, videos, podcasts and images, filters by domain, date and file type, applies Kagi lenses and can pull page extracts. kagi_extract fetches a page's full content as Markdown. Kagi hosts the server, and it also runs locally via uvx or from a Docker image you host. You can hide search parameters from the model with KAGI_HIDDEN_PARAMS.

Who it is for. For Kagi users who want ad-free search inside their agent.

Good fit when

  • The agent needs fresh web or news search
  • You need an article's full text as Markdown
  • You need search limited to certain domains or dates

Not a fit when

  • You have no paid Kagi API access
  • You need FastGPT or Summarizer: those tools are currently removed

Example request

Search Kagi for news on the MCP spec release from the last month and extract the most detailed article

Limitations

Requires a Kagi API key, and API use is paid. The hosted server does not support OAuth yet; the key goes in the Authorization header. kagi_fastgpt and kagi_summarizer were removed and are planned to return. Kagi API availability and payment from Russia are unverified.

How to disable. Run claude mcp remove kagi or remove the kagi block from your client config, then revoke the key in the Kagi dashboard.

MCP

Transport
stdio, http
Authentication
API key
Environment variables
Environment variables
KAGI_API_KEY
required, secret
Kagi API key
KAGI_HIDDEN_PARAMS
Comma-separated search params hidden from the model
KAGI_SEARCH_TIMEOUT
Search timeout in seconds

Security check

  • Sends search queries to an external API
  • Uses a paid API key

README in short

The README describes two tools, the hosted Kagi server and setup for Codex, Claude Desktop, Claude Code, OpenCode, Kiro and Smithery. It lists environment variables, including timeouts, retries and hidden search params. Self-hosting with Docker and debugging with MCP Inspector are covered separately.

FAQ

Do I need to install anything?

No, you can connect the hosted https://mcp.kagi.com/mcp over HTTP with your key in the Authorization header. A local uvx run also works.

Can I host one for my team?

Yes, HTTP mode is multi-tenant: each request carries its own key, and the repo's Dockerfile works on Railway, Render, Cloud Run and Fly.io.

Editors’ pick

CLI, skill and Python library for browser control: the agent clicks, fills forms and reads pages over CDP

CLIHigh risk114.6K
Editors’ pick

A skill that gathers the last 30 days of discussion on a topic from Reddit, X, YouTube, HN, Polymarket and GitHub into one brief

SkillHigh risk62K
Editors’ pick

The Chrome DevTools team's official MCP server: the agent drives a live Chrome, reads network and console, and records performance traces

MCP serverMedium risk52K
Editors’ pick

A fast Rust CLI for agent browser automation: accessibility snapshots with element refs, an MCP server and skills

CLIHigh risk42.6K