feat: add mcp-servers/**

This commit is contained in:
Sun-ZhenXing
2025-10-23 09:08:07 +08:00
parent ece59b42bf
commit f603ed5db9
57 changed files with 3061 additions and 95 deletions

View File

@@ -0,0 +1,11 @@
# Tavily API Key (required)
TAVILY_API_KEY=your_tavily_api_key_here
# Docker image version
TAVILY_VERSION=latest
# Host port override
TAVILY_PORT_OVERRIDE=8000
# Timezone
TZ=UTC

View File

@@ -0,0 +1,59 @@
# Tavily MCP Server
Tavily MCP Server provides powerful web search and data extraction capabilities through the Model Context Protocol.
## Features
- 🔍 **Web Search** - Intelligent web search using Tavily API
- 📄 **Content Extraction** - Extract and process web page content
- 🗺️ **Web Mapping** - Discover and map website structures
- 📰 **News Search** - Search for latest news and articles
- 🌐 **Multi-source** - Aggregate search across multiple data sources
## Environment Variables
| Variable | Default | Description |
| ---------------------- | -------- | ------------------------- |
| `TAVILY_API_KEY` | - | Tavily API key (required) |
| `TAVILY_VERSION` | `latest` | Docker image version |
| `TAVILY_PORT_OVERRIDE` | `8000` | Service port |
| `TZ` | `UTC` | Timezone |
## Quick Start
### 1. Configure Environment
Create a `.env` file:
```env
TAVILY_API_KEY=your_tavily_api_key_here
TAVILY_VERSION=latest
TAVILY_PORT_OVERRIDE=8000
TZ=Asia/Shanghai
```
### 2. Start Service
```bash
docker compose up -d
```
### 3. Verify Service
```bash
curl http://localhost:8000/health
```
## Get API Key
Visit [Tavily](https://tavily.com/) to obtain an API key.
## References
- [Tavily Official Site](https://tavily.com/)
- [MCP Documentation](https://modelcontextprotocol.io/)
- [Docker Hub - mcp/tavily](https://hub.docker.com/r/mcp/tavily)
## License
MIT License

View File

@@ -0,0 +1,59 @@
# Tavily MCP 服务器
Tavily MCP 服务器通过模型上下文协议提供强大的网络搜索和数据提取功能。
## 功能特性
- 🔍 **网络搜索** - 使用 Tavily API 进行智能网络搜索
- 📄 **内容提取** - 提取和处理网页内容
- 🗺️ **网站映射** - 发现和映射网站结构
- 📰 **新闻搜索** - 搜索最新新闻和文章
- 🌐 **多源聚合** - 跨多个数据源的聚合搜索
## 环境变量
| 变量 | 默认值 | 说明 |
| ---------------------- | -------- | ----------------------- |
| `TAVILY_API_KEY` | - | Tavily API 密钥(必需) |
| `TAVILY_VERSION` | `latest` | Docker 镜像版本 |
| `TAVILY_PORT_OVERRIDE` | `8000` | 服务端口 |
| `TZ` | `UTC` | 时区 |
## 快速开始
### 1. 配置环境
创建 `.env` 文件:
```env
TAVILY_API_KEY=your_tavily_api_key_here
TAVILY_VERSION=latest
TAVILY_PORT_OVERRIDE=8000
TZ=Asia/Shanghai
```
### 2. 启动服务
```bash
docker compose up -d
```
### 3. 验证服务
```bash
curl http://localhost:8000/health
```
## 获取 API 密钥
访问 [Tavily](https://tavily.com/) 获取 API 密钥。
## 参考链接
- [Tavily 官网](https://tavily.com/)
- [MCP 官方文档](https://modelcontextprotocol.io/)
- [Docker Hub - mcp/tavily](https://hub.docker.com/r/mcp/tavily)
## 许可证
MIT License

View File

@@ -0,0 +1,31 @@
x-default: &default
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
tavily:
<<: *default
image: mcp/tavily:${TAVILY_VERSION:-latest}
environment:
- TAVILY_API_KEY=${TAVILY_API_KEY}
- TZ=${TZ:-UTC}
ports:
- "${TAVILY_PORT_OVERRIDE:-8000}:8000"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M