Skip to main content

kagi mcp

Run a stdio JSON-RPC server that exposes Kagi tools for agents.

Synopsis

kagi mcp

Tools

  • kagi_search - search Kagi
  • kagi_summarize - summarize a URL or text through the public API
  • kagi_extract - extract a page’s full content as markdown through the current /api/v1 Extract API. Uses KAGI_API_KEY directly. Accepts url.
  • kagi_quick - get a Kagi Quick Answer
  • kagi_news - fetch Kagi News stories (no auth required). Accepts category (default world), limit (default 12), and lang (default default).
  • kagi_news_search - search the News tab of kagi.com and return story clusters (session token required). Accepts query, optional region, freshness (day/week/month), order (default/recency/website), and limit.
The server reads one JSON-RPC request per stdin line and writes one JSON-RPC response per stdout line. This keeps the implementation dependency-light and easy to supervise from agent runners.

Authentication

The server uses the same credentials as the CLI. Use --profile <NAME> to select a profile before mcp.