freshcrate
Skin:/
Home > MCP Servers > kagimcp

kagimcp

The Official Model Context Protocol (MCP) server for Kagi search & other tools.

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

The Official Model Context Protocol (MCP) server for Kagi search & other tools.

README

Kagi MCP server

Kagi Server MCP server

Setup Intructions

Before anything, unless you are just using non-search tools, ensure you have access to the search API. It is currently in closed beta and available upon request. Please reach out to support@kagi.com for an invite.

Install uv first.

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Installing via Smithery

Alternatively, you can install Kagi for Claude Desktop via Smithery:

npx -y @smithery/cli install kagimcp --client claude

Setup with OpenAI

Codex CLI

To add the Kagi mcp server to codex cli, you will need to use the following command:

codex mcp add kagi --env KAGI_API_KEY=<YOUR_API_KEY_HERE> -- uvx kagimcp

This will write out the configuration to ~/.codex/config.toml, so if you need to update/rotate your API key, update your key there before running codex again.

Codex CLI comes with its own built-in search (via --search flag), but it is disabled by default. So to deconflict between search and Kagi, just don't enable it.

Setup with Claude

Claude Desktop

// claude_desktop_config.json
// Can find location through:
// Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
  "mcpServers": {
    "kagi": {
      "command": "uvx",
      "args": ["kagimcp"],
      "env": {
        "KAGI_API_KEY": "YOUR_API_KEY_HERE",
        "KAGI_SUMMARIZER_ENGINE": "YOUR_ENGINE_CHOICE_HERE" // Defaults to "cecil" engine if env var not present
      }
    }
  }
}

Claude Code

Add the Kagi mcp server with the following command (setting summarizer engine optional):

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

Now claude code can use the Kagi mcp server. However, claude code comes with its own web search functionality by default, which may conflict with Kagi. You can disable claude's web search functionality with the following in your claude code settings file (~/.claude/settings.json):

{
  "permissions": {
    "deny": [
      "WebSearch"
    ]
  }
}

Pose query that requires use of a tool

e.g. "Who was time's 2024 person of the year?" for search, or "summarize this video: https://www.youtube.com/watch?v=jNQXAC9IVRw" for summarizer.

Debugging

Run:

npx @modelcontextprotocol/inspector uvx kagimcp

Local/Dev Setup Instructions

Clone repo

git clone https://github.com/kagisearch/kagimcp.git

Install dependencies

Install uv first.

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then install MCP server dependencies:

cd kagimcp

# Create virtual environment and activate it
uv venv

source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows

# Install dependencies
uv sync

Setup with Claude Desktop

Using MCP CLI SDK

# `pip install mcp[cli]` if you haven't
mcp install /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp/src/kagimcp/server.py -v "KAGI_API_KEY=API_KEY_HERE"

Manually

# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
  "mcpServers": {
    "kagi": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp",
        "run",
        "kagimcp"
      ],
      "env": {
        "KAGI_API_KEY": "YOUR_API_KEY_HERE",
        "KAGI_SUMMARIZER_ENGINE": "YOUR_ENGINE_CHOICE_HERE" // Defaults to "cecil" engine if env var not present
      }
    }
  }
}

Pose query that requires use of a tool

e.g. "Who was time's 2024 person of the year?" for search, or "summarize this video: https://www.youtube.com/watch?v=jNQXAC9IVRw" for summarizer.

Debugging

Run:

# If mcp cli installed (`pip install mcp[cli]`)
mcp dev /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp/src/kagimcp/server.py

# If not
npx @modelcontextprotocol/inspector \
      uv \
      --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagimcp \
      run \
      kagimcp

Then access MCP Inspector at http://localhost:5173. You may need to add your Kagi API key in the environment variables in the inspector under KAGI_API_KEY.

Advanced Configuration

  • Level of logging is adjustable through the FASTMCP_LOG_LEVEL environment variable (e.g. FASTMCP_LOG_LEVEL="ERROR")
    • Relevant issue: #4
  • Summarizer engine can be customized using the KAGI_SUMMARIZER_ENGINE environment variable (e.g. KAGI_SUMMARIZER_ENGINE="daphne")
    • Learn about the different summarization engines here
  • There may be more secure ways of plugging into the MCP. A user wrote down some details here
  • The --http cli option can be used to toggle streamable HTTP transport on. Can use along with --port and --host args.

Release History

VersionChangesUrgencyDate
main@2026-07-07Latest activity on main branchHigh7/7/2026
v0.1.5Latest release: v0.1.5High4/8/2026
main@2026-04-08Latest activity on main branchHigh4/8/2026
main@2026-04-08Latest activity on main branchHigh4/8/2026
main@2026-04-08Latest activity on main branchHigh4/8/2026
main@2026-04-08Latest activity on main branchHigh4/8/2026
main@2026-04-08Latest activity on main branchHigh4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026
main@2026-04-08Latest activity on main branchMedium4/8/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

langfuse-mcpA Model Context Protocol (MCP) server for Langfuse, enabling AI agents to query Langfuse trace data for enhanced debugging and observabilityv0.11.0
AgentGuardProtect AI agents by detecting and blocking prompt, command injection, Unicode bypass, and social engineering attacks with customizable security controls.main@2026-09-10
ai-agents-from-zero 🚀 2026 最系统的 AI Agent 速成指南|智能体实战教程 · 完整学习路径 + 实战项目 + 面试题库 · 对标大模型应用开发工程师岗位 · 覆盖LangChain / LangGraph / Coze / Dify / MCP / skills / LLM / RAG / 提示词 · 企业级部署与微调 · 从0到企业级落地 + 从学习到上线项目 + 面试准备一体化 main@2026-09-10
uk-due-diligence-mcpUK due diligence MCP server — Companies House, corporate research, compliance checksv1.4.0
claude-copilotTransform Claude Code into a full development team. 11 specialized agents (Architect, Engineer, QA, Security, UX, DevOps, and more), persistent memory across sessions, and 25,000+ on-demand skills. Wov5.15.2

More in MCP Servers

difyProduction-ready platform for agentic workflow development.
tabularisA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
ai-agents-from-zero 🚀 2026 最系统的 AI Agent 速成指南|智能体实战教程 · 完整学习路径 + 实战项目 + 面试题库 · 对标大模型应用开发工程师岗位 · 覆盖LangChain / LangGraph / Coze / Dify / MCP / skills / LLM / RAG / 提示词 · 企业级部署与微调 · 从0到企业级落地 + 从学习到上线项目 + 面试准备一体化
studioOpen-source control plane for your AI agents. Connect tools, hire agents, track every token and dollar