MCP server
Kagi MCP Server
- Maintainer
- Official · Kagi
- Runs
- Local (stdio)
- GitHub
- ★ 547, last push 2026-07-07 (checked 2026-10-24)
- License
- MIT
- Connects to
- Kagi
Install the Kagi MCP Server
Pick your client. Each tab starts the same local command. Config shapes checked against each client's docs on 2026-10-25.
Run in a terminal. Everything after -- is the command that starts the server. docs
claude mcp add --transport stdio kagi -- uvx kagimcp
Claude Desktop only: Settings > Developer > Edit Config opens claude_desktop_config.json. Add this, save and restart the app. docs
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project), or use the install button. docs
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Add to .vscode/mcp.json (note the "servers" key and the type), or use the install button. Command Palette > "MCP: Open User Configuration" for all workspaces. docs
{
"servers": {
"kagi": {
"type": "stdio",
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Run codex mcp add kagi -- uvx kagimcp, or add this to ~/.codex/config.toml. docs
[mcp_servers.kagi] command = "uvx" args = ["kagimcp"]
Run in a terminal (-s user adds it for all projects; the default is this project). docs
gemini mcp add -s user kagi uvx kagimcp
Run in a terminal; it writes ~/.copilot/mcp-config.json. docs
copilot mcp add kagi -- uvx kagimcp
Add to mcp_config.json: ~/.config/devin/mcp_config.json on macOS and Linux (older installs: ~/.codeium/windsurf/mcp_config.json), %APPDATA%\devin\ on Windows. docs
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Add to Zed's settings.json (or Settings > AI > MCP Servers > Add Server). Remote servers without an Authorization header sign in with OAuth. docs
{
"context_servers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Add to opencode.json in the project (or ~/.config/opencode/opencode.json). docs
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"kagi": {
"type": "local",
"command": [
"uvx",
"kagimcp"
],
"enabled": true
}
}
}Add to ~/.kiro/settings/mcp.json (all projects) or .kiro/settings/mcp.json (this project). docs
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}MCP Servers > Configure > Configure MCP Servers opens cline_mcp_settings.json; add this entry. docs
{
"mcpServers": {
"kagi": {
"command": "uvx",
"args": [
"kagimcp"
]
}
}
}Security notes
- The local server runs with your user's permissions (uvx downloads it from PyPI on first run).
- It brings web content into the conversation, which can carry prompt-injection instructions. Keep approval prompts on for actions that write or send.
Alternatives
- Exaofficial · ★ 5.2k
Neural web search, code search and company research built for LLMs.
- Perplexityofficial · ★ 2.6k
Ask Perplexity's Sonar models for answers with cited sources, including deep research.
- Tavilyofficial · ★ 2.5k
Search, extract, map and crawl the web with results tuned for agents.
- Brave Searchofficial · ★ 1.5k
Web, news, image, video and local search from Brave's independent index.
- Jina AIofficial · ★ 894
Read URLs as Markdown, web and arXiv search, screenshots and reranking.
- Mapboxofficial · ★ 363
Geocoding, places search, directions, travel times and static maps.
- Meilisearchofficial · ★ 197
Manage Meilisearch indexes, documents and settings and run searches.
- SerpApiofficial · ★ 182
Google and other search engine results as structured JSON.
FAQ
What does the Kagi MCP Server do?+
Kagi web search and summarizer (needs Kagi API access).
Is the Kagi MCP server official?+
Official: built and maintained by Kagi.
How do I add Kagi to Claude Code?+
Run: claude mcp add kagi -- uvx kagimcp. Add --scope project to share it with your team through .mcp.json.
How do I use the Kagi MCP server in Cursor or VS Code?+
Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("stdio").
Does Kagi work in ChatGPT and claude.ai?+
No: it runs locally over stdio, and ChatGPT and claude.ai only connect to remote servers. Use it in Claude Desktop, Claude Code, Cursor, VS Code or another client that can start a local process.
What are the alternatives to the Kagi MCP server?+
Other search MCP servers: Exa, Perplexity, Tavily, Brave Search and Jina AI.