Dev Toolbox MCP Server
Provides various developer utilities such as UUID generation, timestamp conversion, Base64 encoding, color conversion, password generation, hash generation, and JSON formatting via MCP.
README
开发者工具箱 MCP 服务器
一个功能丰富的 Model Context Protocol (MCP) 服务器,为开发者提供各种实用工具,包括 UUID 生成、时间戳转换、Base64 编码、颜色转换、密码生成等功能。
✨ 功能特性
1. UUID 生成器 (generate_uuid)
生成一个或多个 UUID(通用唯一标识符)
参数:
count(可选): 要生成的 UUID 数量,默认为 1
示例:
{
"count": 3
}
2. 时间戳转换器 (timestamp_converter)
在 Unix 时间戳和日期时间之间进行转换,支持秒和毫秒格式
参数:
timestamp(可选): Unix 时间戳(秒或毫秒)datetime(可选): ISO 格式的日期时间字符串- 如果不提供参数,返回当前时间信息
示例:
{
"timestamp": 1704067200
}
3. Base64 编码/解码 (base64_converter)
对文本进行 Base64 编码或解码
参数:
text(必需): 要编码或解码的文本operation(必需): 操作类型,"encode"或"decode"
示例:
{
"text": "Hello World",
"operation": "encode"
}
4. 颜色格式转换器 (color_converter)
在不同颜色格式之间转换(HEX、RGB、HSL)
参数:
hex(可选): HEX 颜色值,如#FF5733或FF5733rgb(可选): RGB 颜色值,如rgb(255, 87, 51)或255,87,51hsl(可选): HSL 颜色值
示例:
{
"hex": "#FF5733"
}
5. 随机密码生成器 (generate_password)
生成安全的随机密码,可自定义长度和字符类型
参数:
length(可选): 密码长度,默认为 16include_uppercase(可选): 包含大写字母,默认为trueinclude_lowercase(可选): 包含小写字母,默认为trueinclude_numbers(可选): 包含数字,默认为trueinclude_symbols(可选): 包含特殊字符,默认为truecount(可选): 生成密码数量,默认为 1
示例:
{
"length": 20,
"include_symbols": false,
"count": 3
}
6. 哈希生成器 (generate_hash)
生成文本的哈希值,支持多种算法
参数:
text(必需): 要哈希的文本algorithm(可选): 哈希算法,可选值:"md5","sha1","sha256","sha512",默认为"sha256"
示例:
{
"text": "Hello World",
"algorithm": "sha256"
}
7. JSON 格式化 (format_json)
格式化或验证 JSON 字符串
参数:
json(必需): 要格式化的 JSON 字符串indent(可选): 缩进空格数,默认为 2
示例:
{
"json": "{\"name\":\"test\",\"value\":123}",
"indent": 4
}
🚀 安装
- 克隆仓库:
git clone https://github.com/MIPyao/MCP-server-test.git
cd MCP-server-test
- 安装依赖:
npm install
📖 使用方法
在 Claude Desktop 中使用
-
编辑 Claude Desktop 的配置文件(通常在以下位置):
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
添加 MCP 服务器配置:
{
"mcpServers": {
"dev-toolbox": {
"command": "node",
"args": ["G:\\WebstormProjects\\MCP-server-test\\src\\server.js"]
}
}
}
注意: 请将路径替换为你的实际项目路径。
-
重启 Claude Desktop
-
现在你可以在 Claude 中直接使用这些工具了!
直接运行
node src/server.js
🛠️ 技术栈
- Node.js - 运行时环境
- @modelcontextprotocol/sdk - MCP SDK
- crypto - Node.js 内置加密模块(用于 UUID 和哈希生成)
📝 许可证
ISC
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📧 联系方式
享受开发的乐趣! 🎉
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.