middle-tool
Allows managing and interacting with Apache RocketMQ message queues, including sending and consuming messages.
Allows searching and managing Elasticsearch indices, including document CRUD and search queries.
Allows querying logs from Grafana Loki, providing tools for log analysis and monitoring.
Allows querying and managing MongoDB databases, including document operations and aggregation pipelines.
Allows querying and managing MySQL databases, including schema exploration and data manipulation.
Allows interacting with Redis caches, including key-value operations and data management.
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., "@middle-toolshow logs from Loki for the last hour"
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.
MiddleTool
多环境中间件连接管理桌面应用,统一对外提供 MCP(Model Context Protocol)能力。
功能
中间件连接:按适配器 schema 配置连接,通过名称区分环境(如 prod-loki)
中间件目录:查看已注册的全部 MCP 适配器、连通性校验与上游仓库链接
连接测试:保存前可测试 Loki / MySQL / Redis / RocketMQ / Elasticsearch / MongoDB 连通性
配置导入导出:备份与迁移环境与连接
MCP 配置导出:生成 Cursor / Claude Desktop 可用的
mcpServersJSON,支持写入文件插件式架构:新增中间件只需添加适配器文件并注册
Related MCP server: MCP Manager
已注册中间件
中间件 | 分类 | MCP 来源 | 状态 |
Grafana Loki | 日志 | ✅ 可用 | |
Apache RocketMQ | 消息队列 | 内置 | ✅ 可用 |
MySQL | 数据库 | 内置 | ✅ 可用 |
Redis | 缓存 | 官方 redis/mcp-redis(uvx) | ✅ 可用 |
Elasticsearch | 日志/搜索 | 内置(兼容 elasticsearch-mcp-server) | ✅ 可用 |
MongoDB | 数据库 | 内置(兼容 mcp-mongo-server) | ✅ 可用 |
Apache Kafka | 消息队列 | 🔜 规划中 |
技术栈
Electron + React + TypeScript
适配器插件架构(
electron/main/adapters/)共享类型(
shared/types/,UI 与主进程共用)electron-store 本地配置持久化
快速开始
cd MiddleTool
npm install
npm run dev前置条件
Node.js 18+
RocketMQ 开发环境首次需执行
npm run rocketmq-mcp:java:build(需 Maven)
使用流程
中间件配置 — 选择适配器,用名称区分环境(如 prod-loki),配置连接参数
MCP 配置 — 导出 JSON 到 Cursor / Claude Desktop
MCP Server
MiddleTool 提供单一 MCP Server middle-tool,桌面端「MCP 配置」一键导出:
Server | 包路径 | 能力 |
|
| Loki、MySQL、Redis、RocketMQ、Elasticsearch、MongoDB 全部 tools |
{
"mcpServers": {
"middle-tool": {
"command": "node",
"args": ["packages/mcp-server/dist/index.js"]
}
}
}桌面端「MCP 配置」会根据已启用的 RocketMQ / Redis 连接自动补充 env。
RocketMQ 由 MiddleTool 桌面端 内嵌托管 Java Admin 桥接(安装包预置 JAR,用户无需单独部署)。
详见 packages/mcp-server/README.md。
项目结构
MiddleTool/
├── packages/mcp-server/ # 统一 MCP(全部中间件 tools)
├── shared/types/ # UI 与主进程共享类型
├── electron/main/adapters/ # 适配器注册与校验
└── src/pages/ # 概览、目录、配置、MCP 导出扩展新中间件
详见 docs/EXTENDING.md。核心步骤:
在
electron/main/adapters/创建{name}.ts使用
defineConnectionAdapter()或definePlannedAdapter()在
registry.ts的ALL_ADAPTERS注册在
packages/mcp-server实现对应 tools
构建与打包
开发编译
npm run buildWindows 安装包(.exe)
npm install
npm run pack
# 或
npm run build:win产物输出在 release/ 目录:
文件 | 说明 |
| NSIS 安装程序(可自选安装目录、创建桌面快捷方式) |
打包流程说明:
编译
packages/mcp-server统一 MCP Server编译 Electron 主进程 / 预加载 / 渲染进程
将 mcp-server 及生产依赖打入
resources/mcp-server/使用 electron-builder 生成 NSIS 安装包
安装后 MCP 配置:
应用内「MCP 配置」导出的 JSON 中,
args会指向安装目录下的resources/mcp-server/dist/index.js本机需已安装 Node.js 18+ 并加入 PATH(Cursor 调用 MCP 时使用
node命令)
可选:自定义应用图标
将 icon.ico 放入 resources/ 目录,并在 package.json 的 build.win.icon 中指定路径。
相关链接
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/2514385224/middle-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server