MCP工具包服务器
一种模型上下文协议服务器,为LLM代理提供一套完整的工具集,用于IP地理定位、网络诊断、系统监控、加密操作和二维码生成。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"toolkit": {
"args": [
"node_modules/@cyanheads/toolkit-mcp-server/build/index.js"
],
"command": "node",
"env": {
"NODE_ENV": "production"
}
}
}
}
该服务需要配置环境变量:NODE_ENV
可用工具 (16 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
getCurrentTime 2 个参数
Get current time formatted with Intl.DateTimeFormat
该工具无需必填参数,直接调用即可
getSystemInfo
Get system information using Node.js os module
该工具无需必填参数,直接调用即可
getLoadAverage
Get system load average for 1, 5, and 15 minutes
该工具无需必填参数,直接调用即可
getNetworkInterfaces
Get network interface information
该工具无需必填参数,直接调用即可
checkConnectivity 3 个参数 需填 2 项
Test TCP connectivity to a host and port
必填参数:host、port
getPublicIP
Get public IP address using ip-api.com
该工具无需必填参数,直接调用即可
pingHost 2 个参数 需填 1 项
Ping a host using system ping command
必填参数:host
traceroute 1 个参数 需填 1 项
Perform traceroute to a host
必填参数:host
geolocate 1 个参数 需填 1 项
Get geolocation information for an IP address or domain
必填参数:query
clearGeoCache
Clear the geolocation cache
该工具无需必填参数,直接调用即可
generateUUID
Generate a random UUID using crypto.randomUUID()
该工具无需必填参数,直接调用即可
generateQRCode 3 个参数 需填 1 项
Generate a QR code from input data
必填参数:data
convertTimezone 4 个参数 需填 3 项
Convert date/time between timezones using Luxon
必填参数:date、fromTZ、toTZ
listTimezones 1 个参数
List all available IANA timezones
该工具无需必填参数,直接调用即可
hashData 3 个参数 需填 1 项
Hash input data using Node.js crypto module
必填参数:input
compareHashes 2 个参数 需填 2 项
Compare two hashes in constant time
必填参数:hash1、hash2
服务介绍
toolkit-mcp-server
一个提供系统工具和功能的 Model Context Protocol 服务器,包括 IP 地理定位、网络诊断、系统监控、加密操作和二维码生成等功能。
Model Context Protocol
Model Context Protocol (MCP) 支持以下实体之间的通信:
- 客户端:Claude Desktop、IDE 和其他 MCP 兼容的客户端
- 服务器:用于任务管理和自动化的工具和资源
- LLM 代理:利用服务器功能的 AI 模型
目录
特性
网络与地理定位
- 带智能缓存的 IP 地理定位
- 网络连接测试
- Ping 和 Traceroute 工具
- 公共 IP 检测
- 请求速率限制(每分钟 45 次请求)
系统工具
- 获取系统信息
- 资源监控
- 负载平均跟踪
- 网络接口详情
安全工具
- 加密哈希生成(MD5, SHA-1, SHA-256, SHA-512)
- 常数时间哈希比较
- UUID 生成
生成器工具
- 二维码生成
- 终端输出
- SVG 格式
- Base64 编码图像
安装
# Using npm (recommended)
npm install @cyanheads/toolkit-mcp-server
# Or install from source
git clone git@github.com:cyanheads/toolkit-mcp-server.git
cd toolkit-mcp-server
npm install
npm run build
配置
将以下内容添加到您的 MCP 客户端设置中:
{
"mcpServers": {
"toolkit": {
"command": "node",
"args": ["node_modules/@cyanheads/toolkit-mcp-server/build/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}
工具
网络操作
// Get geolocation data
const geo = await mcp.use('toolkit-mcp-server', 'geolocate', {
query: '8.8.8.8'
});
// Check connectivity
const conn = await mcp.use('toolkit-mcp-server', 'checkConnectivity', {
host: 'example.com',
port: 443
});
系统操作
// Get system information
const sysInfo = await mcp.use('toolkit-mcp-server', 'getSystemInfo', {});
// Get load average
const load = await mcp.use('toolkit-mcp-server', 'getLoadAverage', {});
安全操作
// Generate hash
const hash = await mcp.use('toolkit-mcp-server', 'hashData', {
input: 'test data',
algorithm: 'sha256'
});
// Generate UUID
const uuid = await mcp.use('toolkit-mcp-server', 'generateUUID', {});
生成器操作
// Generate QR code
const qr = await mcp.use('toolkit-mcp-server', 'generateQRCode', {
data: 'https://example.com',
type: 'svg'
});
贡献
- 叉分仓库
- 创建你的功能分支 (
git checkout -b feature/amazing-feature) - 提交你的更改 (
git commit -m 'Add some amazing feature') - 推送到分支 (
git push origin feature/amazing-feature) - 打开一个 Pull Request
许可
Apache License 2.0。有关更多信息,请参阅 LICENSE。