Skip to main content
Glama
lm203688

redis-mcp-server

by lm203688

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REDIS_MCP_HOSTNoRedis server host (default: localhost)
REDIS_MCP_PORTNoRedis server port (default: 6379)
REDIS_MCP_PASSWORDNoRedis password (optional)
REDIS_MCP_READ_ONLYNoEnable read-only mode (default: true)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pingA

测试Redis连接是否正常

server_infoB

获取Redis服务器信息

db_sizeA

获取当前数据库的键数量

scan_keysC

扫描匹配的键

get_key_typeB

获取键的类型和TTL

get_key_valueB

自动识别键类型并获取值(支持string/list/set/hash/zset)

get_hashB

获取哈希类型的所有字段和值

get_memory_usageC

获取键的内存使用量

set_stringA

设置字符串值(需要关闭只读模式)

delete_keysC

删除键(需要关闭只读模式)

set_expireA

设置键的过期时间(需要关闭只读模式)

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_redis生成Redis分析提示词
find_keys_by_pattern生成键搜索提示词

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/lm203688/redis-mcp-server'

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