Kagi 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:
Windows:
Installing via Smithery
Alternatively, you can install Kagi for Claude Desktop via Smithery:
Setup with Claude
Claude Desktop
Claude Code
Add the Kagi mcp server with the following command (setting summarizer engine optional):
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
):
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:
Local/Dev Setup Instructions
Clone repo
git clone https://github.com/kagisearch/kagimcp.git
Install dependencies
Install uv first.
MacOS/Linux:
Windows:
Then install MCP server dependencies:
Setup with Claude Desktop
Using MCP CLI SDK
Manually
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:
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: https://github.com/kagisearch/kagimcp/issues/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
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Kagi の検索機能を Claude AI と統合する MCP サーバー。これにより、Claude は最新の情報を必要とする質問に答えるときにリアルタイムの Web 検索を実行できます。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -Python
- AsecurityFlicenseAqualityMCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.Last updated -134JavaScript
- AsecurityAlicenseAqualityAn MCP server that allows Claude AI to search, explore, and compare arXiv papers efficiently through a custom-built local server.Last updated -46PythonMIT License
- AsecurityAlicenseAqualityMCP server that provides Claude AI assistants with the ability to search the web, get news, and perform research using the You.com API.Last updated -4TypeScriptMIT License