YaCy peer-to-peer search

v1.0.0
io.github.pad01g/yacy-search Checked 4 days ago Published 2 months ago

Web search, crawling and ranking evaluation on your own YaCy peer: no API key, no central service.

Values you need

VariableWhat it is
YACY_URLrequired Base URL of your YaCy peer as seen from the MCP server container, e.g. http://yacy:8090 on a shared Docker network (docker run --network ...), or http://host.docker.internal:8090
YACY_ADMIN_USERoptional YaCy administrator account, needed for crawling and settings Default: admin
YACY_ADMIN_PASSWORDoptional secret YaCy administrator password; without it crawl, settings and the index counts of index_status are not available
YACY_CRAWL_ALLOW_PRIVATEoptional 1 lets crawl reach loopback and private addresses (intranets); off by default
YACY_ALLOW_TRUST_SETTINGSoptional 1 lets set_ranking_setting change the trust filter settings (acceptUnverified, excludeTags); off by default

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add yacy-search -e 'YACY_URL=<YACY_URL>' -- docker run -i --rm -e YACY_URL ghcr.io/pad01g/yacy-search-mcp:1.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "yacy-search": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YACY_URL",
        "ghcr.io/pad01g/yacy-search-mcp:1.0.0"
      ],
      "command": "docker",
      "env": {
        "YACY_URL": "<YACY_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "yacy-search": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YACY_URL",
        "ghcr.io/pad01g/yacy-search-mcp:1.0.0"
      ],
      "command": "docker",
      "env": {
        "YACY_URL": "<YACY_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "YACY_URL",
      "id": "yacy-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "yacy-search": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YACY_URL",
        "ghcr.io/pad01g/yacy-search-mcp:1.0.0"
      ],
      "command": "docker",
      "env": {
        "YACY_URL": "${input:yacy-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.yacy-search]
command = "docker"
args = ["run", "-i", "--rm", "-e", "YACY_URL", "ghcr.io/pad01g/yacy-search-mcp:1.0.0"]
env = { "YACY_URL" = "<YACY_URL>" }

For AI agents

  1. Ask the user for: YACY_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_web, crawl_site, get_index_status, list_peers, get_ranking_settings, set_ranking_setting, evaluate_ranking, list_crawls, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json