MCP Storage Map
Click on "Deploy 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 Storage Map query the users table from my MySQL database"
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 Storage Map
Model Context Protocol (MCP) server for unified database and storage access. Query multiple databases (MySQL, MongoDB, AWS Athena, and more) through a single, consistent interface.
Quick Start
1. Installation
npm install -g storage-map-mcpOr run directly with npx:
npx storage-map-mcp2. Configure Your IDE
Add to your Claude Desktop, Claude Code, or Cursor MCP configuration.
Option A: Using Claude CLI (Recommended)
Single Database Example:
claude mcp add storage-map \
-e STORAGE_LOCAL_TYPE=mysql \
-e STORAGE_LOCAL_HOST=localhost \
-e STORAGE_LOCAL_PORT=3306 \
-e STORAGE_LOCAL_USER=root \
-e STORAGE_LOCAL_PASSWORD=your_password \
-e STORAGE_LOCAL_DATABASE=your_database \
-e STORAGE_LOCAL_WRITE_MODE=true \
-- npx storage-map-mcpMongoDB Example:
claude mcp add storage-map \
-e STORAGE_MONGO_TYPE=mongodb \
-e STORAGE_MONGO_URI=mongodb://localhost:27017/myapp \
-e STORAGE_MONGO_DATABASE=myapp \
-- npx storage-map-mcpMultiple Databases Example:
claude mcp add storage-map \
-e STORAGE_PROD_TYPE=mysql \
-e STORAGE_PROD_HOST=prod-db.example.com \
-e STORAGE_PROD_PORT=3306 \
-e STORAGE_PROD_USER=readonly \
-e STORAGE_PROD_PASSWORD=secret \
-e STORAGE_PROD_DATABASE=production \
-e STORAGE_STAGING_TYPE=mysql \
-e STORAGE_STAGING_HOST=staging-db.example.com \
-e STORAGE_STAGING_PORT=3306 \
-e STORAGE_STAGING_USER=admin \
-e STORAGE_STAGING_PASSWORD=secret \
-e STORAGE_STAGING_DATABASE=staging \
-e STORAGE_STAGING_WRITE_MODE=true \
-- npx storage-map-mcpOption B: Manual JSON Configuration
Single Database Example:
{
"mcpServers": {
"storage-map": {
"command": "npx",
"args": ["storage-map-mcp"],
"env": {
"STORAGE_MYSQL_TYPE": "mysql",
"STORAGE_MYSQL_HOST": "localhost",
"STORAGE_MYSQL_PORT": "3306",
"STORAGE_MYSQL_USER": "root",
"STORAGE_MYSQL_PASSWORD": "password",
"STORAGE_MYSQL_DATABASE": "myapp",
"STORAGE_MYSQL_WRITE_MODE": "false"
}
}
}
}MongoDB Example:
{
"mcpServers": {
"storage-map": {
"command": "npx",
"args": ["storage-map-mcp"],
"env": {
"STORAGE_MONGO_TYPE": "mongodb",
"STORAGE_MONGO_URI": "mongodb://localhost:27017/myapp",
"STORAGE_MONGO_DATABASE": "myapp"
}
}
}
}Multiple Databases Example:
{
"mcpServers": {
"storage-map": {
"command": "npx",
"args": ["storage-map-mcp"],
"env": {
"STORAGE_PROD_TYPE": "mysql",
"STORAGE_PROD_HOST": "prod-db.example.com",
"STORAGE_PROD_PORT": "3306",
"STORAGE_PROD_USER": "readonly",
"STORAGE_PROD_PASSWORD": "secret",
"STORAGE_PROD_DATABASE": "production",
"STORAGE_STAGING_TYPE": "mysql",
"STORAGE_STAGING_HOST": "staging-db.example.com",
"STORAGE_STAGING_PORT": "3306",
"STORAGE_STAGING_USER": "admin",
"STORAGE_STAGING_PASSWORD": "secret",
"STORAGE_STAGING_DATABASE": "staging",
"STORAGE_STAGING_WRITE_MODE": "true",
"STORAGE_ANALYTICS_TYPE": "athena",
"STORAGE_ANALYTICS_REGION": "us-west-2",
"STORAGE_ANALYTICS_DATABASE": "analytics",
"STORAGE_ANALYTICS_S3_OUTPUT_LOCATION": "s3://analytics-results/"
}
}
}
}Tip: Each database connection needs a unique ID (the part after
STORAGE_and before the property name). In the examples above:MYSQL,PROD,STAGING, andANALYTICSare the IDs.
3. Start Using
Ask your AI assistant to:
"List all my configured databases"
"Query the users table from my MySQL database"
"Find users older than 25 in MongoDB"
"Show me tables in my Athena database"
"Get the schema for the orders collection"
"Execute SELECT * FROM products LIMIT 10 on mysql storage"
Related MCP server: MCP Database Manager
Compatibility
Database | Status | Version |
MySQL | ✅ Fully supported | 5.7+ |
MongoDB | ✅ Fully supported | 4.4+ |
AWS Athena | ✅ Fully supported | All versions |
Key Tools
Tool | Description |
| List all configured storage connections |
| Execute read queries (SELECT, etc.) |
| Execute write operations (INSERT, UPDATE, DELETE) |
| List tables/collections in a storage |
| Get schema information for a table/collection |
| Get detailed connection information |
Configuration
Environment Variables
Storage Map uses a flexible configuration system with environment variables:
Pattern: STORAGE_<ID>_<PROPERTY>
<ID>: Unique identifier for your storage connection (e.g.,MYSQL,PROD,STAGING,ANALYTICS)Use descriptive names to identify each connection
Same database type can have multiple IDs (e.g.,
PROD_DBandSTAGING_DBfor different MySQL servers)
<PROPERTY>: Configuration property (e.g.,TYPE,HOST,PORT)
Common Properties:
TYPE: Database type (mysql,mongodb,athena) - RequiredWRITE_MODE: Enable write operations (trueorfalse, default:false)
MySQL:
HOST: Database host - RequiredPORT: Database port (default:3306)USER: Username - RequiredPASSWORD: Password - RequiredDATABASE: Database name - Required
MongoDB:
URI: Full connection string (e.g.,mongodb://localhost:27017/mydb) - Use this or HOST/PORTHOST: MongoDB host (default:localhost)PORT: MongoDB port (default:27017)USER: Username (optional)PASSWORD: Password (optional)DATABASE: Database name - RequiredAUTH_SOURCE: Authentication database (optional)REPLICA_SET: Replica set name (optional)
AWS Athena:
REGION: AWS region (default:us-east-1)DATABASE: Athena database/catalog (default:default)S3_OUTPUT_LOCATION: S3 path for query results - RequiredWORKGROUP: Athena workgroup (default:primary)
Configuration Examples
Example 1: Single MySQL Database
STORAGE_MYSQL_TYPE=mysql
STORAGE_MYSQL_HOST=localhost
STORAGE_MYSQL_PORT=3306
STORAGE_MYSQL_USER=root
STORAGE_MYSQL_PASSWORD=password
STORAGE_MYSQL_DATABASE=myappExample 2: Multiple MySQL Databases (Prod + Staging)
# Production (read-only)
STORAGE_PROD_TYPE=mysql
STORAGE_PROD_HOST=prod-db.example.com
STORAGE_PROD_PORT=3306
STORAGE_PROD_USER=readonly
STORAGE_PROD_PASSWORD=secret
STORAGE_PROD_DATABASE=production
# Staging (read-write)
STORAGE_STAGING_TYPE=mysql
STORAGE_STAGING_HOST=staging-db.example.com
STORAGE_STAGING_PORT=3306
STORAGE_STAGING_USER=admin
STORAGE_STAGING_PASSWORD=secret
STORAGE_STAGING_DATABASE=staging
STORAGE_STAGING_WRITE_MODE=trueExample 3: MongoDB (URI)
STORAGE_MONGO_TYPE=mongodb
STORAGE_MONGO_URI=mongodb://localhost:27017/myapp
STORAGE_MONGO_DATABASE=myappExample 4: MongoDB (Host/Port with Auth)
STORAGE_MONGO_TYPE=mongodb
STORAGE_MONGO_HOST=mongo.example.com
STORAGE_MONGO_PORT=27017
STORAGE_MONGO_USER=admin
STORAGE_MONGO_PASSWORD=secret
STORAGE_MONGO_DATABASE=myapp
STORAGE_MONGO_AUTH_SOURCE=admin
STORAGE_MONGO_WRITE_MODE=trueExample 5: MySQL + MongoDB + Athena
# MySQL for operational data
STORAGE_DB_TYPE=mysql
STORAGE_DB_HOST=localhost
STORAGE_DB_PORT=3306
STORAGE_DB_USER=admin
STORAGE_DB_PASSWORD=password
STORAGE_DB_DATABASE=myapp
# MongoDB for document store
STORAGE_MONGO_TYPE=mongodb
STORAGE_MONGO_URI=mongodb://localhost:27017/documents
STORAGE_MONGO_DATABASE=documents
# Athena for analytics
STORAGE_ANALYTICS_TYPE=athena
STORAGE_ANALYTICS_REGION=us-west-2
STORAGE_ANALYTICS_DATABASE=analytics
STORAGE_ANALYTICS_S3_OUTPUT_LOCATION=s3://my-bucket/athena-results/Features
Unified Interface
Query different databases using the same MCP tools, regardless of the underlying technology.
Read-Only by Default
All connections are read-only by default. Explicitly enable WRITE_MODE for write operations.
Multiple Connections
Configure multiple databases of the same or different types simultaneously.
Extensible Architecture
Easy to add new database connectors with the McpConnector interface.
Architecture
┌─────────────────────────────────────────┐
│ MCP Server (server.ts) │
├─────────────────────────────────────────┤
│ MCP Tools: query, execute, list, etc. │
└─────────────┬───────────────────────────┘
│
┌───────┴────────┐
│ Registry │
└───────┬────────┘
│
┌─────────┼──────────────────┐
│ │ │
┌───▼──────┐ ┌▼────────┐ ┌─────▼─────┐
│ MySQL │ │ MongoDB │ │ Athena │
│Connector │ │Connector│ │ Connector │
└──────────┘ └─────────┘ └───────────┘Each connector implements the McpConnector interface:
query()- Execute read queriesexecute()- Execute write operationslistCollections()- List tables/collectionsdescribeCollection()- Get schema information
Security
Never commit credentials or API tokens to version control
Use environment variables for sensitive configuration
Keep
WRITE_MODEdisabled unless absolutely necessaryReview queries before execution, especially with write access enabled
Development
# Clone the repository
git clone https://github.com/cyhoon/mcp-storage-map.git
cd mcp-storage-map
# Install dependencies
pnpm install
# Run in development mode
pnpm dev
# Build
pnpm build
# Run tests
pnpm test
# Lint
pnpm lintLicense
MIT - See LICENSE
Available Tools
6 toolsdescribe_collectionC
Get schema/structure information for a collection/table
Inputs: collection (required), storage_id (required), schema.
executeB
Execute write operations (INSERT, UPDATE, DELETE for SQL; insert, update for NoSQL)
Inputs: operation (required), storage_id (required), parameters.
get_storage_infoB
Get detailed information about a specific storage connection
Inputs: storage_id (required).
list_collectionsC
List collections/tables/datasets in a storage (tables for RDB, collections for NoSQL, datasets for Athena)
Inputs: storage_id (required), schema.
list_storagesA
List all configured storage connections (RDB, NoSQL, Athena, etc.)
Inputs: no named parameters.
queryC
Execute a query on any storage (SQL for RDB/Athena, NoSQL query for MongoDB, etc.)
Inputs: query (required), storage_id (required), parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes: list_storages vs. get_storage_info, and list_collections vs. describe_collection are well separated. The only potential confusion is between query and execute, since 'execute a query' could sound like it overlaps with write execution, but the descriptions clarify read vs. write intent.
The set mixes a consistent verb_noun pattern (list_storages, list_collections, describe_collection, get_storage_info) with bare verbs (query, execute). It remains readable, but the convention is not uniform.
Six tools are well-scoped for a multi-storage query/access server. Each tool covers a distinct operation needed to discover storage, inspect schemas, and read or write data.
The surface covers discovery, schema inspection, reads, and writes across storage types. Minor gaps exist around storage configuration management or advanced query operations, but core workflows are covered.
Maintenance
Related MCP Connectors
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Query, explore, and manage your databases through natural conversation.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with multiple database types (MySQL, MSSQL, Oracle, Sybase) through a unified interface with standardized tools for querying, inspecting schemas, and managing connections without requiring separate server configurations.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with and manage multiple database types (PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, Redis) through natural language, supporting query analysis, schema management, data analysis, backup/restore, and security analysis.8 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to connect to and interact with PostgreSQL, MySQL, SQLite, and MongoDB databases through natural language, supporting schema exploration, query execution, data export, and more.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely interact with multiple databases (MySQL, PostgreSQL) via natural language queries, with cross-database querying and enterprise-grade security.MIT