Omni工具MCP服务器
通过模型上下文协议(MCP)为AI助手提供的通用转换和转换工具包。由AI为AI打造。
安装
Docker(推荐)
docker pull sosukecn/omni-tool:latest来源
go build -o omni-tool main.go使用Claude Desktop
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"omni-tool": {
"command": "docker",
"args": ["run", "-i", "--rm", "sosukecn/omni-tool:latest"]
}
}
}工具
| 工具 | 说明 |
|---|---|
convert | 通用转换器:时间、颜色、单位(长度、重量、温度、数字、CSS、加密、持续时间、速度、面积、体积) |
compare | 通过自动单位转换比较值 |
transform_string | 检测编码、解码和转换字符串 |
analyze_color | 解析任何颜色格式并获取所有转换+可访问性信息 |
inspect_jwt | 无需验证即可解码JWT令牌 |
generate_mock_data | 生成UUID、十六进制字符串、IP地址 |
calculate_statistics | 计算平均值、中位数、最小值、最大值、总和 |
例子
转换单位
convert "10" unit:"px" → 0.625rem, 7.5pt, 62.5%
convert "60" unit:"mph" → 96.56 km/h, 26.82 m/s
convert "0.034" unit:"btc" → 3,400,000 satoshi
convert "2" unit:"cups" → 473ml, 0.47L转换时间
convert "now" → timestamps, ISO, JS Date(), moment.js formats
convert "in 4 days" → future date calculations
convert "3 hours ago" → past date calculations
convert "tomorrow" → next day at midnight
convert "yesterday" → previous day
convert "next week" → 7 days from now
convert "last month" → 30 days ago
convert "1733000000" → parse Unix timestampJavaScript输出:
new Date(1764706087806)toISOString(),toLocaleString()等等。
moment.js输出:
format("L"),format("LLLL")fromNow(“4天内”)
分析颜色
analyze_color "#FF5733"
analyze_color "oklch(0.6804 0.2100 33.69)"
analyze_color "rgb(255, 87, 51)"
analyze_color "#79589F99" # with alpha支持的格式: 十六进制(3/4/6/8位)、RGB、RGBA、HSL、HWB、LAB、LCH、Oklab、Oklch
输出包括: 所有格式转换、CMYK、HSV、ANSI256、WCAG对比度、推荐的文本颜色
转换字符串
transform_string "SGVsbG8gV29ybGQ=" → detects Base64, decodes
transform_string "{'key': 'value'}" → detects JSON, parses输出: Base64/Hex/URL编码/解码,MD5,SHA256,上/下
部队类别
| 类别 | 单位 |
|---|---|
| 长度 | m、km、cm、mm、mi、ft、in、yd |
| 重量 | 千克、克、毫克、磅、盎司、石 |
| 温度 | C、F、K |
| 数字 | B、KB、MB、GB、TB |
| 层叠样式表 | px、rem、em、pt、% |
| 加密 | BTC、satoshi、mBTC、ETH、gwei、wei |
| 持续时间 | ms、sec、min、hr、day、week |
| 速度 | 英里/小时、公里/小时、米/秒、英尺/秒、节 |
| 区域 | 平方英尺、平方米、平方公里、英亩、公顷 |
| 体积 | ml、L、gal、fl oz、杯子、品脱、夸脱 |
许可证
麻省理工学院
