工具包-mcp-服务器
模型上下文协议服务器为 LLM 代理提供系统实用程序和工具,包括 IP 地理位置、网络诊断、系统监控、加密操作和二维码生成。
模型上下文协议
模型上下文协议 (MCP) 支持以下之间的通信:
- 客户端:Claude Desktop、IDE 和其他与 MCP 兼容的客户端
- 服务器:任务管理和自动化的工具和资源
- LLM 代理:利用服务器功能的 AI 模型
目录
特征
网络和地理位置
- 具有智能缓存的 IP 地理定位
- 网络连接测试
- Ping 和 traceroute 实用程序
- 公网IP检测
- 速率限制(45 个请求/分钟)
系统实用程序
安全工具
- 加密哈希生成(MD5、SHA-1、SHA-256、SHA-512)
- 恒定时间哈希比较
- UUID 生成
生成器工具
安装
# 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
) - 打开拉取请求
执照
Apache 许可证 2.0。有关更多信息,请参阅许可证。