使用说明
mcp雅虎实时搜索
暴露Yahoo!的MCP(模型上下文协议)服务器!日本实时搜索(推特搜索) 去雅虎实时搜索 图书馆。
无需API密钥-使用引擎盖下的web刮擦。
安装
go install github.com/cnosuke/mcp-yahoo-realtime-search@latest
用法
STDIO模式(适用于克劳德桌面、克劳德代码等)
mcp-yahoo-realtime-search stdioserver -c config.yml
HTTP模式(流式HTTP传输)
mcp-yahoo-realtime-search httpserver -c config.yml
Claude桌面配置
{
"mcpServers": {
"yahoo-realtime-search": {
"command": "/path/to/mcp-yahoo-realtime-search",
"args": ["stdioserver", "-c", "/path/to/config.yml"]
}
}
}
工具
search
通过雅虎搜索推文!日本实时搜索。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
query |
string | 是 | 搜索关键字或短语 |
limit |
number | 否 | 要返回的推文的最大数量(0=全部) |
配置
看 config.yml 所有可用选项。环境变量可以覆盖配置文件值:
| 环境变量 | 配置键 |
|---|---|
LOG_PATH |
log |
LOG_LEVEL |
log_level |
HTTP_BINDING |
http.binding |
HTTP_ENDPOINT_PATH |
http.endpoint_path |
HTTP_AUTH_TOKEN |
http.auth_token |
HTTP_ALLOWED_ORIGINS |
http.allowed_origins |
YRS_USER_AGENT |
search.user_agent |
YRS_REQUEST_TIMEOUT |
search.request_timeout |
许可证
麻省理工学院
