feat: add mcp-servers/**
This commit is contained in:
12
mcp-servers/markitdown/.env.example
Normal file
12
mcp-servers/markitdown/.env.example
Normal file
@@ -0,0 +1,12 @@
|
||||
# MCP Markitdown Server Configuration
|
||||
# ==================================
|
||||
|
||||
# MCP Service
|
||||
MCP_MARKITDOWN_VERSION=latest
|
||||
MCP_MARKITDOWN_PORT_OVERRIDE=8000
|
||||
|
||||
# Data directory
|
||||
DATA_DIR=./data
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
24
mcp-servers/markitdown/README.md
Normal file
24
mcp-servers/markitdown/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Markitdown MCP Server
|
||||
|
||||
Microsoft's Markitdown MCP Server provides lightweight conversion functionality to Markdown format through the Model Context Protocol.
|
||||
|
||||
## Features
|
||||
|
||||
- 📄 **Document Conversion** - Convert documents to markdown
|
||||
- 🔗 **URL Conversion** - Convert web content to markdown
|
||||
- 📝 **Content Processing** - Process and extract content
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------------------ | -------- | ---------------------------- |
|
||||
| `MCP_MARKITDOWN_VERSION` | `latest` | MCP Markitdown image version |
|
||||
| `MCP_MARKITDOWN_PORT_OVERRIDE` | `8000` | MCP service port |
|
||||
| `DATA_DIR` | `./data` | Data directory path |
|
||||
| `TZ` | `UTC` | Timezone |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
24
mcp-servers/markitdown/README.zh.md
Normal file
24
mcp-servers/markitdown/README.zh.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Markitdown MCP 服务器
|
||||
|
||||
微软的 Markitdown MCP 服务器通过 Model Context Protocol 提供轻量级的 Markdown 格式转换功能。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 📄 **文档转换** - 将文档转换为 Markdown
|
||||
- 🔗 **URL 转换** - 将网页内容转换为 Markdown
|
||||
- 📝 **内容处理** - 处理和提取内容
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 默认值 | 说明 |
|
||||
| ------------------------------ | -------- | ----------------------- |
|
||||
| `MCP_MARKITDOWN_VERSION` | `latest` | MCP Markitdown 镜像版本 |
|
||||
| `MCP_MARKITDOWN_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
|
||||
| `DATA_DIR` | `./data` | 数据目录路径 |
|
||||
| `TZ` | `UTC` | 时区 |
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
33
mcp-servers/markitdown/docker-compose.yaml
Normal file
33
mcp-servers/markitdown/docker-compose.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
mcp-markitdown:
|
||||
<<: *default
|
||||
image: mcp/markitdown:${MCP_MARKITDOWN_VERSION:-latest}
|
||||
environment:
|
||||
- MCP_HOST=0.0.0.0
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${MCP_MARKITDOWN_PORT_OVERRIDE:-8000}:8000"
|
||||
volumes:
|
||||
- ${DATA_DIR:-./data}:/data
|
||||
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
|
||||
Reference in New Issue
Block a user