Skip to main content

YaCy MCP Server

MCP (Model Context Protocol) Server implementation that provides AI tools to search using YaCy web search API.

Installation

  1. Make sure you have uv installed:
pip install uv
  1. Install the package in development mode:
cd yacy-mcp
uv sync  # Sync all dependencies from pyproject.toml and uv.lock

Or alternatively:

cd yacy-mcp
uv pip install -e .

Usage

  1. Make sure you have a YaCy server running (typically on http://localhost:8090)
  2. Set environment variables (optional):
export YACY_URL=http://localhost:8090
  1. Run the MCP server:
python -m yacy_mcp

Configuration

The server can be configured using environment variables:

  • YACY_URL: URL of your YaCy instance (default: http://localhost:8090)

Available Tools

  • yacy-search: Search using YaCy web search engine
    • Parameters:
      • query (string, required): Search query string
      • max_results (integer, optional): Maximum number of results to return (default: 10)
      • resource (string, optional): Search resource (local or global, default: global)

MCP Configuration for AI Applications

To use this server with AI applications that support the Model Context Protocol (MCP), configure your MCP client to connect to the server using stdio transport.

Example configuration for Claude Desktop (settings.json):

{
  "mcpServers": {
    "yacy-mcp": {
      "command": "uvx",
      "args": ["yacy_mcp"],
      "env": {
        "YACY_URL": "http://localhost:8090"
      }
    }
  }
}

For other MCP-compatible applications, use the command uvx yacy_mcp as the server executable. The server will be automatically fetched and run from PyPI.

Integration with AI Applications

This MCP server can be used with AI applications that support the Model Context Protocol to perform web searches using the YaCy search engine.

Metadata

Release files for yacy-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yacy-mcp 0.1.0
File Size Uploaded
yacy_mcp-0.1.0.tar.gz 54.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yacy-mcp 0.1.0
File Interpreter ABI Platform
yacy_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.9 kB

Release files / yacy_mcp-0.1.0.tar.gz

Download URL yacy_mcp-0.1.0.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ca786f4e73654291569020e503a1f581c511265c2b0763796de77875588e378c
BLAKE2b-256 checksum
How to use checksums
03ba8dc3e73a3bd3e6110e275dca681152fa8bde4ff5bf788487fe10540ebf11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / yacy_mcp-0.1.0-py3-none-any.whl

Download URL yacy_mcp-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88defe7943b135478f753933600fb37d5891e94bc40f3fadfd58c5868ca75336
BLAKE2b-256 checksum
How to use checksums
fcd206dd826d0579c21fe0733fa80a7a6cc745f40cb5806116a6679f6b9fd566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page