Skip to main content

Kagi MPC server

Project description

Kagi MCP server

Instructions

Clone repo

git clone https://github.com/kagisearch/kagi-mcp.git

Install dependencies

Install uv first.

MacOS/Linux:

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

Windows:

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

Then install MCP server dependencies:

cd kagi-mcp

# Create virtual environment and activate it
uv venv

source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows

# Install dependencies
uv sync

Setup with Claude Desktop

# 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/kagi-mcp",
        "run",
        "kagi"
      ],
      "env": {
        "KAGI_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Ask Claude a question requiring search

e.g. "Who was time's 2024 person of the year?"

Debugging

Run:

npx @modelcontextprotocol/inspector \
      uv \
      --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/kagi-mcp \
      run \
      kagi

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kagimcp-0.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kagimcp-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file kagimcp-0.1.0.tar.gz.

File metadata

  • Download URL: kagimcp-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for kagimcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6e56198d2121fdca4fb81e5bff463a023d095bce223bd4cda046428a670ecda
MD5 267e840e110d66079ac712c3b999929f
BLAKE2b-256 7dc0edc7b9391be4402199b628c7b2d85b6680dac3f8729b1c35f18abf6ae672

See more details on using hashes here.

File details

Details for the file kagimcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kagimcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for kagimcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1174c91c2396544fe50d5006847a457a5f92d96c20f79a34f7dd9e4a8dc8fa6a
MD5 e9d0075ed04af5dbd7dc69ef8a9b462d
BLAKE2b-256 b4f6f01c72d69351f08f8ed3fb7a5c6775f4e680234c1975d0840eb302c10b60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page