Skip to main content
Glama
Nicolas-One

Redis CRUD MCP Server

by Nicolas-One

Redis CRUD MCP Server

This is an MCP (Model Context Protocol) server plugin for Redis database operations, providing a full suite of CRUD tools.

✨ Features

  • 🔍 Automatic Project Configuration Detection - Automatically searches upwards for .env files to locate the project root directory

  • 🔄 Multi-Project Support - Automatically uses different Redis connections for different projects

  • âąī¸ Connection Timeout Protection - 10-second default timeout, configurable via environment variables

  • 📝 Multiple Configuration Formats - Supports both INI section and KEY=VALUE formats

  • đŸ› ī¸ Multi-Tool Compatibility - Supports Claude Code, Cline, Codex, etc.

Related MCP server: MCP Server Redis

🚀 Quick Start

npm install -g redis-crud-server

MCP Configuration

Create a .mcp.json file in your project root:

{
  "mcpServers": {
    "redis-crud": {
      "command": "redis-crud-server"
    }
  }
}

âš™ī¸ Configuration Guide

Configuration Format 1: INI Section Format

[REDIS]
REDIS_HOSTNAME = 127.0.0.1
PORT = 6379
REDIS_PASSWORD = your_password
SELECT = 0

Configuration Format 2: KEY=VALUE Format

REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=your_password

Supported Configuration Names

Configuration Item

Supported Names

Host

REDIS_HOST / REDIS_SERVER_HOST / REDIS_HOSTNAME

Port

REDIS_PORT / REDIS_SERVER_PORT / PORT

Password

REDIS_PASSWORD / REDIS_SERVER_PASSWORD / PASSWORD

Database

REDIS_DB / SELECT / DATABASE_INDEX

🔧 Tool List

String Operations

  • redis_set - Set string key-value

  • redis_get - Get string key-value

  • redis_del - Delete key

  • redis_exists - Check if key exists

Hash Operations

  • redis_hset - Set hash field

  • redis_hget - Get hash field

  • redis_hgetall - Get all hash fields

  • redis_hdel - Delete hash field

Information

  • redis_info - Get connection information

âąī¸ Timeout Configuration

The default connection timeout is 10 seconds, which can be configured via environment variables:

{
  "mcpServers": {
    "redis-crud": {
      "command": "redis-crud-server",
      "env": {
        "REDIS_TIMEOUT": "30000"
      }
    }
  }
}

📝 Usage Examples

Set Key-Value

redis_set: key=test_key, value=hello_world

Get Key-Value

redis_get: key=test_key

Hash Operations

redis_hset: key=user:1, field=name, value=åŧ ä¸‰
redis_hget: key=user:1, field=name
redis_hgetall: key=user:1

🐛 Troubleshooting

Connection Timeout

  • Check network connection and firewall settings

  • Confirm the Redis server is accessible

  • Adjust the REDIS_TIMEOUT environment variable

Configuration File Not Found

  • Ensure the .env file is in the project root directory

  • MCP will automatically search upwards for the .env file

INI Format Parsing Failure

  • Ensure the correct section name [REDIS] is used

  • Supports Windows (\r\n), Unix (\n), and legacy Mac (\r) line endings

📄 License

MIT

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    F
    maintenance
    Provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
    112
    30
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A server that provides Claude with Redis database access and operations through a set of tools for basic operations, lists, hashes, sets, and pub/sub functionality.
    24
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to perform comprehensive Redis database operations including managing strings, hashes, lists, sets, sorted sets, TTL management, and data backup/restore. Supports secure connections and provides batch operations for efficient Redis interaction through natural language.
    34
    11
    2
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI to safely view and operate Redis databases with read-only mode by default and support for key operations.
    11
    MIT

View all related MCP servers

Related MCP Connectors

  • GibsonAI MCP server: manage your databases with natural language

  • The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.

  • JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.

View all MCP Connectors

Latest Blog Posts

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/Nicolas-One/redis-crud-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server