Skip to main content

Kagi MPC server

Project description

Kagi Bridge MCP

This is a MCP (Multichannel Protocol) server that provides search capability using a headless browser. It simulates browser-based searches without requiring a Kagi API key.

Installation

This project uses uv for dependency management:

# Install the package with dependencies
uv pip install .

# Install the browser binary
python -m playwright install chromium

Usage

The MCP server requires a URL that contains an authentication token for the search service. This URL is used to initialize cookies that will be used for subsequent searches.

You can provide the URL in two ways:

  1. Environment variable:
export SEARCH_URL="https://kagi.com/your_token_url"
kagi-bridge-mcp
  1. Command-line argument:
kagi-bridge-mcp --url "https://kagi.com/your_token_url"

Features

  • Browser-based search that simulates real user interaction
  • Handles 302 redirects and cookie-based authentication
  • Compatible with existing MCP format for seamless integration

Development

# Set up a development environment
uv venv
source .venv/bin/activate
uv sync

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

kagi_bridge_mcp-0.1.0.tar.gz (164.8 kB view details)

Uploaded Source

Built Distribution

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

kagi_bridge_mcp-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kagi_bridge_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 164.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for kagi_bridge_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 853b8a9691861bce8806a64ba734e1fb4ce6e973240fab244595d755f5e9a9ab
MD5 67b62afc818f68f06067f37a16c13891
BLAKE2b-256 2c1e8cd2c4a67538a32d046b3d6a1eb6a9feb2f77ea16018a3d1462567c8f52d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kagi_bridge_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47c1abfefa13cfc74c2b30cd0eb7b2ac04f82fc2d9362b144348a8f24752d0ff
MD5 bb8a988bef9bc5fee1c218e1d3140a22
BLAKE2b-256 d9c627c8a7a2e70205e1c8af181b8c934e850f96fcf82cbe49af11c95c03180a

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