Unstorage MCP 键值存储服务器
基于 unjs/unstorage 的键值存储 MCP 服务器,支持 Redis、MongoDB、文件系统等驱动。
快速入门
安装
最小配置
在配置文件中添加以下内容:
{
"mcpServers": {
"unstorage": {
"command": "npx",
"args": ["/y", "@slow-groovin/unstorage-mcp"]
}
}
}
最大配置
支持多种存储驱动(如 Redis、MongoDB 等),完整示例:
{
"mcpServers": {
"unstorage": {
"command": "npx",
"env": {
"REDIS_URL": "redis://default:123456@localhost:6379",
"FS_BASE": "D:/tmp"
},
"args": ["/y", "@slow-groovin/unstorage-mcp"]
}
}
}
使用方法
- 支持的工具包括
getItem
、setItem
等。 - 配置环境变量启用不同驱动,如
REDIS_URL
、MONGODB_URL
。 - 调试方式参考
mcp-inspector
和本地开发配置。
更多详情请查看完整文档。