Skip to main content
Deploying to Vercel? Consider Vercel KV for edge-compatible storage without managing Redis infrastructure.

Requirements

Development Setup

Projects created with frontmcp create --target node include Docker files in the ci/ folder:
When running inside Docker, use redis (the service name) as REDIS_HOST, not localhost. Projects created with frontmcp create include a ci/.env.docker file with Docker-specific values.

Option 2: Local Installation

Configuration

Already configuring the top-level redis block (or redis.provider: 'vercel-kv') on @FrontMcp? Set CachePlugin.init({ type: 'global-store' }) so the plugin automatically reuses that store without duplicating credentials.
For complete CachePlugin API documentation, see the Cache Plugin Guide.

Production Setup

Redis is required in production. Without Redis, session data will be lost on restart and caching will not persist across instances.

Self-Hosted Production

For self-hosted Redis in production:

Security Best Practices

  1. Authentication: Always set REDIS_PASSWORD in production
  2. Network: Run Redis in private network, not exposed to internet
  3. TLS: Enable TLS for encrypted connections
  4. Persistence: Use AOF for durability (appendonly yes)

Configuration Example

Switch the redis block to { provider: 'vercel-kv' } when deploying on Vercel KV—the Cache Plugin will keep reusing the same store without code changes.

Environment Variables

Redis Configuration

Plugin Secrets

In development, REMEMBER_SECRET is auto-generated and stored in .frontmcp/remember-secret.json. Add this file to .gitignore. In production, always set REMEMBER_SECRET explicitly to ensure consistent encryption across instances.

Health Checks

Troubleshooting

Connection Refused

  • Verify Redis is running: redis-cli ping
  • Check firewall rules
  • Verify host/port configuration

Authentication Failed

  • Ensure REDIS_PASSWORD matches server config
  • Check for special characters in password (may need URL encoding)

Memory Issues

  • Set maxmemory and maxmemory-policy in Redis config
  • Monitor with redis-cli INFO memory

Docker Network Issues

When using Docker Compose, the app container should use redis as the hostname (the service name), not localhost: