Skip to main content
Glama

Kagi MCP Server

Official
by kagisearch
MIT License
93
  • Apple
  • Linux

Servidor MCP de Kagi

Instrucciones de configuración

Antes de nada, a menos que uses herramientas que no sean de búsqueda, asegúrate de tener acceso a la API de búsqueda. Actualmente se encuentra en versión beta cerrada y está disponible previa solicitud. Para recibir una invitación, escribe a support@kagi.com .

Primero instale uv.

MacOS/Linux:

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

Ventanas:

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

Instalación mediante herrería

Alternativamente, puedes instalar Kagi para Claude Desktop a través de Smithery :

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

Configuración con 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 } } } }

Plantear una consulta que requiere el uso de una herramienta

por ejemplo, "¿Quién fue la persona del año 2024 según la revista Time?" para buscar, o "Resumir este video: https://www.youtube.com/watch?v=jNQXAC9IVRw " para resumir.

Depuración

Correr:

npx @modelcontextprotocol/inspector uvx kagimcp

Instrucciones de configuración local/de desarrollo

Clonar repositorio

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

Instalar dependencias

Primero instale uv.

MacOS/Linux:

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

Ventanas:

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

A continuación, instale las dependencias del servidor MCP:

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

Configuración con Claude Desktop

Uso del SDK CLI de MCP
# `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"
A mano
# 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 } } } }

Plantear una consulta que requiere el uso de una herramienta

por ejemplo, "¿Quién fue la persona del año 2024 según la revista Time?" para buscar, o "Resumir este video: https://www.youtube.com/watch?v=jNQXAC9IVRw " para resumir.

Depuración

Correr:

# 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

Luego, acceda al Inspector de MCP en http://localhost:5173 . Es posible que deba agregar su clave de API de Kagi en las variables de entorno del inspector, bajo KAGI_API_KEY .

Configuración avanzada

  • El nivel de registro se puede ajustar a través de la variable de entorno FASTMCP_LOG_LEVEL (por ejemplo, FASTMCP_LOG_LEVEL="ERROR" )
  • El motor de resumen se puede personalizar utilizando la variable de entorno KAGI_SUMMARIZER_ENGINE (por ejemplo, KAGI_SUMMARIZER_ENGINE="daphne" )
    • Conozca los diferentes motores de resumen aquí
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Tools

Un servidor MCP que integra las capacidades de búsqueda de Kagi con Claude AI, lo que permite a Claude realizar búsquedas web en tiempo real al responder preguntas que requieren información actualizada.

  1. Instrucciones de configuración
    1. Instalación mediante herrería
    2. Configuración con Claude Desktop
    3. Plantear una consulta que requiere el uso de una herramienta
    4. Depuración
  2. Instrucciones de configuración local/de desarrollo
    1. Clonar repositorio
    2. Instalar dependencias
    3. Configuración con Claude Desktop
    4. Plantear una consulta que requiere el uso de una herramienta
    5. Depuración
  3. Configuración avanzada

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      An MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.
      Last updated -
      4
      2
      Python
    • -
      security
      F
      license
      -
      quality
      An MCP server that connects AI assistants to SearchAgora, enabling users to search for, discover, and purchase products across the web through natural language conversations.
      Last updated -
      1
      Python
      • Apple
    • -
      security
      F
      license
      -
      quality
      A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
      Last updated -
      5
      TypeScript
    • A
      security
      A
      license
      A
      quality
      An MCP server implementation that allows AI assistants to access, search, and interact with Dev.to content, including fetching articles, retrieving user information, and publishing new content.
      Last updated -
      10
      53
      Python
      MIT License
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/kagisearch/kagimcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server