元搜索 MCP 服务器用于执行元搜索,借助特定 API 为用户提供全面的搜索结果。通过它,用户可以根据指定查询进行搜索,获取包括 AI 响应、URI 和标题等在内的文本格式搜索结果。
git clone https://github.com/YeonwooSung/metasearch-mcp.git
在 MacOS 上:`~/Library/Application\ 支持/Claude/claude_desktop_config.json`
在 Windows 上:`C:\Users\[username]\AppData\Roaming\Claude\claude_desktop_config.json`
"mcpServers": {
"tavily-search": {
"command": "uv",
"args": [
"--directory",
"C:\\your_path\\mcp-server-tavily",
"run",
"tavily-search"
],
"env": {
"TAVILY_API_KEY": "YOUR_TAVILY_API_KEY",
"PYTHONIOENCODING": "utf-8"
}
}
}
在 Claude Desktop 中,当您要求“请搜索某物”时,会收到搜索结果。
请详细搜索今天的镰仓活动
响应示例:
根据搜索结果,今天是 12月1日,以下是当天开始的活动:
"镰仓促销照片比赛 2025"
时间:2024年12月1日至2025年1月31日
面向喜欢镰仓的人的照片比赛
从今天开始接受申请
另外,相关即将举行的活动:
12月7日,12位镰仓艺术家将在 Seibu Press Inn Kamakura Ofuna Station East Exit Lounge 举行展览。
此服务器实现以下工具:
script.sh):#!/bin/bash
TARGET_DIR=/path/to/mcp-server-tavily
cd "${TARGET_DIR}"
export TAVILY_API_KEY="your-api-key"
export PYTHONIOENCODING=utf-8
uv --directory $PWD run tavily-search
# 在终端中执行以下命令以运行服务器和客户端
# 启动服务器
uvicorn tavily_search.asgi:application --reload
# 启动客户端
python -m pip install python-multipart
python -m fastapi start-server
settings.json 文件中:{
"mcp": {
"servers": [
{
"name": "tavily-search",
"host": "http://localhost:8000"
}
]
}
}
docker-compose.yml 文件,并添加以下内容:version: '3'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- TAVILY_API_KEY=your-api-key
mcp-client:
image: fastapi
command: start-server
depends_on:
- mcp-server
docker-compose build
docker-compose up
settings.json 文件中:{
"mcp": {
"servers": [
{
"name": "tavily-search",
"host": "http://localhost:8000"
}
]
}
}
uvicorn tavily_search.asgi:application --reload
python -m pip install python-multipart
python -m fastapi start-server
日志存储在以下位置: 对于 Windows:
C:\Users\[username]\AppData\Roaming\Claude\logs\mcp-server-tavily-search