x-tools-mcp-server
v1.0.0
Published
X-Tools MCP Server - 便捷专业的在线开发工具集合的 MCP 服务器
Maintainers
Readme
X-Tools MCP Server
便捷专业的在线开发工具集合的 MCP (Model Context Protocol) 服务器。
🚀 快速开始
安装
npm install -g x-tools-mcp-server在 Cursor 中配置
在 Cursor 的 MCP 配置文件 (~/.cursor/mcp.json) 中添加:
{
"mcpServers": {
"x-tools": {
"command": "npx",
"args": ["x-tools-mcp-server"]
}
}
}重启 Cursor
重启 Cursor 编辑器以加载新的 MCP 配置。
🛠️ 可用工具
JSON 工具 (3个)
json_format- JSON 格式化json_minify- JSON 压缩json_validate- JSON 验证
编码工具 (6个)
base64_encode- Base64 编码base64_decode- Base64 解码url_encode- URL 编码url_decode- URL 解码hex_encode- 十六进制编码hex_decode- 十六进制解码
加密工具 (2个)
hash_text- 哈希计算 (SHA-1, SHA-256, SHA-384, SHA-512)hmac_hash- HMAC 签名
其他工具 (4个)
uuid_generate- UUID 生成jwt_parse- JWT 解析jwt_validate- JWT 验证regex_match- 正则表达式匹配base_convert- 进制转换
总计:15个工具函数
💡 使用示例
在 Cursor 中,你可以直接使用自然语言与 AI 交互:
用户: 请帮我计算 "Hello World" 的 SHA-256 哈希值
AI: [自动调用 hash_text 工具] 结果:a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
用户: 请格式化这个 JSON
{"name":"张三","age":25,"city":"北京"}
AI: [自动调用 json_format 工具]
{
"name": "张三",
"age": 25,
"city": "北京"
}
用户: 生成 5 个 UUID
AI: [自动调用 uuid_generate 工具]
550e8400-e29b-41d4-a716-446655440000
...🔧 开发
本地开发
# 克隆仓库
git clone https://github.com/your-username/x-tools-mcp.git
cd x-tools-mcp
# 安装依赖
npm install
# 构建
npm run build
# 测试
npm test
# 开发模式
npm run dev发布
# 构建
npm run build
# 发布到 npm
npm publish📝 许可证
MIT License
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📞 支持
- GitHub Issues: https://github.com/your-username/x-tools-mcp/issues
- 文档: https://github.com/your-username/x-tools-mcp#readme
