The MCP JSON Maker server is a comprehensive JSON management tool that enables AI to create, manage, batch generate, and export JSON data and templates with high performance and precision.
Complete CRUD Operations: Perform full create, read, update, and delete operations on JSON data and templates with advanced filtering, sorting, and statistics capabilities.
Node-Level Editing: Modify specific parts of JSON documents using precise paths (e.g.,
users.0.name,config.database.0.host) with operations like set, add, remove, and update.Batch JSON Generation: Generate large quantities of JSON data (up to 10,000 items at 1,000 items/second) using templates, dynamic rules, data type definitions, constraints, and field variations (e.g.,
{'name': ['张三', '李四']}).Multi-Format Export: Export JSON data to files in JSON, JSONL, or CSV formats with options for pretty printing, custom file paths, and automatic directory creation.
Advanced Features: Template management, rules engine for dynamic generation, data organization by tags/time/size, and millisecond-level search speeds with support for unlimited items.
Developer-Friendly: Detailed input schemas, comprehensive error handling, and debugging information for seamless integration.
Distributed as an npm package (@zb2947244682/mcp-json-maker) that can be installed and run directly via npx for JSON manipulation and generation tasks
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP JSON Makercreate a JSON template for user profiles with name, age, and email fields"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 MCP JSON Maker
📖 项目介绍
这是一个强大的 MCP (Model Context Protocol) 工具,专门为AI提供JSON构建、编辑和批量生成能力。它允许AI创建、管理、编辑和批量生成JSON数据,支持多种输出格式和高级规则引擎。
NPM 仓库地址: @zb2947244682/mcp-json-maker
Related MCP server: Divide and Conquer MCP Server
🧠 核心功能
此 MCP 服务提供了完整的JSON管理系统:
🔧 JSON操作工具
item_operations- 通用工具,支持JSON和模板的完整CRUD操作创建、获取、列表、编辑、删除、统计
支持节点级操作(如
users.0.name)智能参数验证和错误提示
📊 批量生成工具
batch_generate_json- 根据模板和规则批量生成JSON数据支持基于现有模板生成
支持规则引擎动态生成
支持数据类型定义、约束条件和变化选项
📁 文件导出工具
export_to_file- 将JSON数据导出到文件支持多种格式:JSON、JSONL、CSV
支持绝对路径和相对路径
支持指定行号插入内容
自动创建目录结构
🚀 使用场景
1. 大模型JSON生成辅助
快速创建标准化的JSON结构
批量生成测试数据
支持复杂的嵌套结构
2. 批量数据处理
根据规则批量生成数据
支持数据变化和约束
高效的数据转换和导出
3. JSON数据编辑和管理
节点级精确编辑
支持数组和对象操作
完整的版本控制
4. 数据格式转换
JSON到CSV转换
JSON到JSONL转换
支持美化输出
⚙️ 配置说明
在 Cursor 中配置
将以下配置添加到您的 Cursor mcp.json 文件中:
{
"mcp-json-maker": {
"command": "npx",
"args": [
"-y",
"@zb2947244682/mcp-json-maker@latest"
]
}
}通过 npx 直接运行
您可以通过以下命令直接从命令行运行此 MCP 项目:
npx @zb2947244682/mcp-json-maker@latest本地开发配置
如果您在本地开发环境中使用,可以将以下配置添加到您的 Cursor mcp.json 文件中:
{
"mcp-json-maker": {
"command": "node",
"args": ["D:\\Codes\\MCPRepo\\mcp-json-maker\\index.js"]
}
}📊 数据结构
JSON数据结构
{
"id": "唯一标识",
"name": "JSON名称",
"content": "JSON内容对象",
"description": "描述信息",
"tags": ["标签1", "标签2"],
"size": "内容大小",
"createdAt": "创建时间",
"updatedAt": "更新时间"
}模板数据结构
{
"id": "唯一标识",
"name": "模板名称",
"content": "模板JSON结构",
"description": "模板描述",
"variables": ["变量1", "变量2"],
"category": "分类",
"createdAt": "创建时间",
"updatedAt": "更新时间"
}生成规则结构
{
"structure": "JSON结构描述",
"data_types": {
"field1": "string",
"field2": "number",
"field3": "array"
},
"constraints": {
"field1": {"min": 1, "max": 100},
"field2": {"pattern": "^[^@]+@[^@]+\\.[^@]+$"}
},
"variations": {
"field1": ["选项1", "选项2", "选项3"],
"field2": ["城市1", "城市2", "城市3"]
}
}🔧 特性
✅ 完整的CRUD操作支持
✅ 节点级精确编辑
✅ 智能批量生成
✅ 多格式文件导出
✅ 规则引擎支持
✅ 模板管理系统
✅ 友好的中文界面
✅ 完善的错误处理
✅ 高性能内存存储
✅ 自动路径处理
📈 性能指标
响应时间: 1-3ms
支持JSON数: 无限制
支持模板数: 无限制
批量生成速度: 1000个/秒
搜索速度: 毫秒级
内存占用: 最小化
🎯 使用示例
创建JSON数据
{
"tool": "item_operations",
"parameters": {
"action": "create",
"item_type": "json",
"name": "用户配置",
"content": "{\"name\": \"张三\", \"age\": 25, \"email\": \"zhangsan@example.com\"}",
"description": "用户基本信息配置",
"tags": ["user", "config", "test"]
}
}编辑JSON节点
{
"tool": "item_operations",
"parameters": {
"action": "edit",
"item_type": "json",
"id": "your_json_id",
"path": "age",
"operation": "set",
"value": 26
}
}批量生成JSON
{
"tool": "batch_generate_json",
"parameters": {
"count": 5,
"rules": {
"structure": "用户信息结构,包含姓名、年龄、邮箱等字段",
"data_types": {
"name": "string",
"age": "number",
"email": "string"
},
"constraints": {
"age": {"min": 18, "max": 65}
},
"variations": {
"name": ["张三", "李四", "王五", "赵六", "钱七"],
"city": ["北京", "上海", "广州", "深圳", "杭州"]
}
},
"output_format": "array"
}
}导出到文件
{
"tool": "export_to_file",
"parameters": {
"json_ids": ["id1", "id2", "id3"],
"file_path": "D:/data/users.json",
"format": "json",
"pretty_print": true
}
}🔍 高级功能
节点路径操作
支持复杂的嵌套路径操作:
简单字段:
"name"嵌套对象:
"user.profile.age"数组元素:
"users.0.name"混合路径:
"config.database.0.host"
编辑操作类型
set- 设置值add- 添加元素(数组操作)remove- 删除值update- 更新对象属性
输出格式支持
JSON - 标准JSON格式,支持美化输出
JSONL - 每行一个JSON对象
CSV - 逗号分隔值(支持扁平结构)
🎯 开发原则
核心原则:少工具,多功能
一个工具完成多种相关操作
参数复用最大化
智能默认值设置
条件参数设计
用户体验优先
详细的参数说明和示例
友好的错误提示和解决建议
完整的操作指导
丰富的调试信息
🔮 未来计划
数据持久化支持
高级规则引擎
语义分析功能
数据导入功能
多用户支持
权限管理
版本控制
协作编辑
🤝 贡献
欢迎提交 Issue 和 Pull Request 来改进这个项目!
📄 许可证
本项目采用 MIT 许可证。
让AI拥有强大的JSON构建和管理能力,构建智能的数据处理系统! 🚀