Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-servers-kagi

MCP.Pizza Chef: ac3xx

The mcp-servers-kagi is a TypeScript-based Model Context Protocol (MCP) server that integrates with the Kagi Search API. It provides tools to perform web searches directly through Kagi's API, enabling real-time retrieval of search results within MCP-enabled applications. Currently, it supports the 'kagi_search' tool for querying the web with optional result limits. Planned enhancements include tools for summarizing web content, generating quick AI responses via Kagi's FastGPT, and fetching enriched news data. This server exemplifies core MCP principles by exposing structured, real-time web search capabilities to LLMs, facilitating enhanced context and interaction in AI workflows.

Use This MCP server To

Perform real-time web searches via Kagi API Integrate web search results into AI workflows Enable LLMs to access fresh internet data Develop AI agents with live search capabilities Fetch structured search results for analysis

README

kagi-server MCP Server

smithery badge MCP server for Kagi API integration

This is a TypeScript-based MCP server that integrates the Kagi Search API. It demonstrates core MCP concepts by providing:

  • Tools for performing web searches and other operations using Kagi's API (currently in private beta)

Features

Implemented Tools

  • kagi_search - Perform web searches using Kagi
    • Takes a query string and optional limit as parameters
    • Returns search results from Kagi's API

Planned Tools (Not Yet Implemented)

  • kagi_summarize - Generate summaries of web pages or text
  • kagi_fastgpt - Get quick responses using Kagi's FastGPT
  • kagi_enrich - Fetch enriched news results on specific topics

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Environment Setup

Create a .env file in the root directory with your Kagi API key:

KAGI_API_KEY=your_api_key_here

Make sure to add .env to your .gitignore file to keep your API key secure.

Installation

Installing via Smithery

To install Kagi Server for Claude Desktop automatically via Smithery:

npx @smithery/cli install kagi-server --client claude

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "kagi-server": {
      "command": "/path/to/kagi-server/build/index.js",
      "env": {
        "KAGI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Usage

Once the server is running and connected to Claude Desktop, you can use it to perform web searches. For example:

  1. Ask Claude: "Can you search for information about the latest advancements in quantum computing?"
  2. Claude will use the kagi_search tool to fetch results from Kagi's API.
  3. Claude will then summarize or analyze the search results for you.

Note: The planned tools (summarize, fastgpt, enrich) are not yet implemented and cannot be used.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Some areas for contribution include:

  • Implementing the planned tools (summarize, fastgpt, enrich)
  • Improving error handling and input validation
  • Enhancing documentation and usage examples

License

This project is licensed under the MIT License.

Roadmap

  • Implement kagi_summarize tool for webpage and text summarization
  • Implement kagi_fastgpt tool for quick responses
  • Implement kagi_enrich tool for fetching enriched news results
  • Improve error handling and add more robust input validation
  • Add more comprehensive usage examples and documentation
  • Publish the package to npm for easy installation and use with Claude Desktop and npx

mcp-servers-kagi FAQ

How do I install the mcp-servers-kagi?
Install dependencies with 'npm install', then build using 'npm run build'. For development, use 'npm run watch' for auto-rebuild.
What tools does mcp-servers-kagi currently support?
It currently supports the 'kagi_search' tool for performing web searches with query and limit parameters.
Are there any planned features for this MCP server?
Yes, planned tools include 'kagi_summarize' for summarizing content, 'kagi_fastgpt' for quick AI responses, and 'kagi_enrich' for enriched news results.
How does mcp-servers-kagi enhance LLM capabilities?
It provides LLMs with real-time access to web search data, improving context and enabling dynamic information retrieval.
Is the Kagi API integration publicly available?
The Kagi API is currently in private beta, so access may be limited.
Can I use mcp-servers-kagi with different LLM providers?
Yes, it is compatible with any MCP host supporting models like OpenAI, Anthropic Claude, and Google Gemini.
What programming language is mcp-servers-kagi written in?
It is implemented in TypeScript for robust development and easy integration.
How do I contribute or customize the server?
Clone the repository, install dependencies, and modify the TypeScript source. Use standard npm scripts for building and watching.