slow-groovin
MCP Serverslow-groovinpublic

unstorage mcp

Key-Value storage MCP server based on unjs/unstorage, support drivers: redis, mongodb, filesystem. http

Repository Info

1
Stars
1
Forks
1
Watchers
0
Issues
TypeScript
Language
MIT License
License

About This Server

Key-Value storage MCP server based on unjs/unstorage, support drivers: redis, mongodb, filesystem. http

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Unstorage MCP Server

中文 README

A Key-Value storage MCP server based on unjs/unstorage.

Support drivers:

  1. memory
  2. filesystem
  3. redis
  4. unstorage http server
  5. mongodb

Support transports:

  • stdio
  • Streamable HTTP
  • SSE

Tools:

  • showMounts()
  • getItem(key)
  • getItems(items)
  • getItemRaw(key)
  • getMeta(key, nativeOnly)
  • getKeys(base, maxDepth)
  • setItem(key, value)
  • setItems(items)
  • setItemRaw(key, value)
  • setMeta(key, meta)
  • removeItem(key, removeMeta)
  • removeMeta(key)



  • Unstorage MCP Server
    • Running with stdio
      • minimal configuration
      • maximum configuration
      • for Cline+Windows:
    • Running with HTTP (SSE + Streamable)
    • related arguments
    • Example prompt for use
    • args
    • environment variables
      • redis
      • mongodb
      • filesystem
      • http server
      • memory
    • extend guide
      • prompts for cursor/cline assisted programming
    • debug approaches
      • mcp-inspector
      • tsx mcpServer Config for local dev

Running with stdio

minimal configuration

{
  "mcpServers": {
    "unstorage": {
      "command": "npx",
      "args": ["-y", "@slow-groovin/unstorage-mcp"]
    }
  }
}

maximum configuration

{
  "mcpServers": {
    "unstorage": {
      "command": "npx",
      "env": {
        "REDIS_URL": "redis://default:123456@localhost:6379",
        "REDIS_BASE": "visits:date:api:",
        "REDIS_MOUNT_POINT": "redis_storage",
        "FS_BASE": "D:/tmp",
        "FS_MOUNT_POINT": "fs_storage",
        "HTTP_BASE": "http://localhost:3001",
        "HTTP_MOUNT_POINT": "http_storage",
        "HTTP_HEADERS": "Authorization=Bear 123;A=3;B=4;C=5",
        "MONGODB_URL": "mongodb://root:123456@localhost:27017/",
        "MONGODB_DB_NAME": "test",
        "MONGODB_COLLECTION_NAME": "unstorage",
        "MONGODB_MOUNT_POINT": "mongo_storage"
      },
      "args": ["-y", "@slow-groovin/unstorage-mcp", "--disable-modify"]
    }
  }
}

for Cline+Windows:

{
  "mcpServers": {
    "unstorage": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@slow-groovin/unstorage-mcp"]
    }
  }
}

If you have problem of installation on Windows, you can refrer to this article

Running with HTTP (SSE + Streamable)

npx @slow-groovin/unstorage-mcp --http
argdefault
--httpenable http transport instead of stdiofalse
-p, --portlistening port3000
-h, --hostlistening hostlocalhost

Example prompt for use

The process has produced a key-value result: "fs_base:recommend_site"="www.api2o.com", store it.

args

--disable-modify

Default: false

Disable tools with modify functionality like setItem, setItems ...

environment variables

for the concept of base and mountpoint, please refer to the doc of unstorage

Set environment variables in the terminal or in the .env file

redis

if REDIS_URL is set, a redis storage will be mounted

SyntaxDescriptionDefault ValueOptional
REDIS_URLredis connect url, eg: redis://default:123456@localhost:6379
REDIS_BASEbase of redisDriver
REDIS_MOUNT_POINTmountpoint of this storage"/"

mongodb

if MONGODB_URL is set, a mongodb storage will be mounted

SyntaxDescriptionDefault ValueOptional
MONGODB_URLmongodb connect url, eg: mongodb://user:pass@host:port
MONGODB_DB_NAMEmongodb database name, eg: test
MONGODB_COLLECTION_NAMEmongodb collection name, eg: mycollection
MONGODB_MOUNT_POINTmountpoint of this storage"/"

filesystem

if FS_BASE is set, a redis storage will be mounted

SyntaxDescriptionDefault ValueOptional
FS_BASEbase of fsDriver, path of filesystem
FS_MOUNT_POINTmountpoint of this storage"/"

http server

if HTTP_BASE is set, a http storage will be mounted

SyntaxDescriptionDefault ValueOptional
HTTP_BASEbase of httpDriver, endpoint of http server
HTTP_MOUNT_POINTmountpoint of this storage"/"
HTTP_HEADERSheaders for http requests, eg: Authorization=Bear 123;A=1;B=2

memory

If there is no mount on root("/"), a memory driver will be mounted automatically on "/" (same behaviour of unstorage).

extend guide

  1. clone this repo
  2. copy src/storage/redis.ts to a new file and modify it to your desired driver(unjs/unstorage is super easy to learn)
  3. test and verify that it is effective
  4. (optional) pull a merge request

If you are not a typescript developer, please submit a issue to ask for other drivers support.

prompts for cursor/cline assisted programming

@/src/storage/mongodb.ts , please implement this file:
1. you need to fetch information using the storage type's corresponding Doc URL (https://unstorage.unjs.io/drivers/<storage type>).
2. you can refer to examples in @/src/adapter/redis.ts and @/src/storage/http.ts.
3. You are only responsible for generating the code and do not need to perform testing.

If you have not installed fetch MCP server, delete the first sentence

debug approaches

mcp-inspector

 mcp-inspector -e HTTP_BASE=http://localhost:3001 -e HTTP_MOUNT_POINT=http_storage -e FS_BASE=D:/temp -e FS_MOUNT_POINT=fs_storage -e HTTP_HEADERS="Authorization=Bear 123;" tsx ./src/index.ts

tsx mcpServer Config for local dev

{
  "mcpServers": {
    "command": "cmd",
    "env": {
      "REDIS_URL": "redis://default:123456@localhost:6379",
      "REDIS_BASE": "my:mcp:values:",
      "REDIS_MOUNT_POINT": "redis_storage"
    },
    "args": ["/c", "tsx", "D:/xxx/projects/unstorage-mcp/src/index.ts"]
  }
}

restarting server is needed to make changes take effect

Quick Start

1

Clone the repository

git clone https://github.com/slow-groovin/unstorage-mcp
2

Install dependencies

cd unstorage-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerslow-groovin
Repounstorage-mcp
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation