npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

x-tools-mcp-server

v1.0.0

Published

X-Tools MCP Server - 便捷专业的在线开发工具集合的 MCP 服务器

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