MCP (Model Context Protocol) Server implementation that provides AI tools to search using YaCy web search API
Project description
YaCy MCP Server
MCP (Model Context Protocol) Server implementation that provides AI tools to search using YaCy web search API.
Installation
- Make sure you have
uvinstalled:
pip install uv
- 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
- Make sure you have a YaCy server running (typically on http://localhost:8090)
- Set environment variables (optional):
export YACY_URL=http://localhost:8090
- 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 stringmax_results(integer, optional): Maximum number of results to return (default: 10)resource(string, optional): Search resource (local or global, default: global)
- Parameters:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yacy_mcp-0.1.0.tar.gz.
File metadata
- Download URL: yacy_mcp-0.1.0.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca786f4e73654291569020e503a1f581c511265c2b0763796de77875588e378c
|
|
| MD5 |
4766552e7dd1256ad93cfcc00ae9672d
|
|
| BLAKE2b-256 |
03ba8dc3e73a3bd3e6110e275dca681152fa8bde4ff5bf788487fe10540ebf11
|
File details
Details for the file yacy_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yacy_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88defe7943b135478f753933600fb37d5891e94bc40f3fadfd58c5868ca75336
|
|
| MD5 |
ba505462533c9b7daa4755145027e762
|
|
| BLAKE2b-256 |
fcd206dd826d0579c21fe0733fa80a7a6cc745f40cb5806116a6679f6b9fd566
|