# Kagi Search (MCP Server)

> Ad-free Kagi web search and page extraction for AI assistants

- Type: MCP server
- Publisher: Kagi (official)
- Categories: Research
- Website: https://github.com/kagisearch/kagimcp
- Source: https://github.com/kagisearch/kagimcp
- Transport: streamable-http
- Server URL: https://mcp.kagi.com/mcp
- Launch command: uvx kagimcp
- Sign-in: api-key
- Environment variables: KAGI_API_KEY
- GitHub stars: 542
- Listed: 2024-12-13

## About

Kagi's official MCP server gives assistants Kagi web search with page fetching and content extraction. Kagi hosts a remote server that authenticates with your Kagi API key as a bearer token (OAuth is on the roadmap), and the same server runs locally via uvx with KAGI_API_KEY.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.kagi.com/mcp as the MCP server URL. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add kagi --url https://mcp.kagi.com/mcp --bearer-token-env-var KAGI_API_KEY
   ```

   config.toml:

   ```toml
   [mcp_servers.kagi]
   url = "https://mcp.kagi.com/mcp"
   bearer_token_env_var = "KAGI_API_KEY"
   ```

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "kagi",
           "server_url": "https://mcp.kagi.com/mcp",
           "authorization": os.environ["KAGI_API_KEY"],
           "require_approval": "never",
       }],
       input="Search Kagi for recent reviews of the Framework 16 laptop",
   )
   print(response.output_text)
   ```

## Tools

- `kagi_search_fetch`
- `kagi_extract`

## Example prompts

- "Search Kagi for recent reviews of the Framework 16 laptop"
- "Find the official docs for Postgres logical replication"
- "Extract the main text from this article URL"
- "What are people saying about the latest Rust release?"

## Related

- [Fetch](https://chatgptplugins.directory/mcp/fetch.md): Fetch web pages and convert them to markdown for LLMs
- [DeepWiki](https://chatgptplugins.directory/mcp/deepwiki.md): Ask questions about any public GitHub repo using DeepWiki's generated docs
- [Apify](https://chatgptplugins.directory/mcp/apify.md): Run thousands of Apify Actors for scraping and automation from your agent
- [Firecrawl](https://chatgptplugins.directory/mcp/firecrawl.md): Scrape, search, crawl and interact with live web pages for LLMs
- [AWS Knowledge](https://chatgptplugins.directory/mcp/aws-knowledge.md): Search current AWS docs, API references and regional availability
- [Exa](https://chatgptplugins.directory/mcp/exa.md): AI-native web search, page fetching and multi-step research via Exa

---
Source: https://chatgptplugins.directory/mcp/kagi · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
