Modern in-memory datastore compatible with Redis and Memcached.
## Dragonfly MCP Server: Ultra-Fast Redis Alternative The **Dragonfly MCP Server** connects Google Antigravity to Dragonfly, the modern Redis-compatible in-memory datastore that delivers 25x higher throughput than Redis. This integration enables AI-assisted caching strategies and high-performance data operations with natural language commands. ### Why Dragonfly MCP? Dragonfly represents the next generation of in-memory datastores: - **25x Faster**: Multi-threaded architecture vs Redis single-thread - **Lower Memory**: Advanced compression reduces memory by 80% - **Redis Compatible**: Drop-in replacement for Redis applications - **No Cluster Needed**: Vertical scaling handles massive workloads - **Antigravity Native**: AI-optimized caching and data operations ### Key Features #### 1. High-Performance Caching ```javascript // Simple key-value caching await dragonfly.set("user:123:session", sessionData, "EX", 3600); // Hash operations for complex objects await dragonfly.hset("product:456", { name: "Widget Pro", price: 99.99, inventory: 150 }); // Sorted sets for leaderboards await dragonfly.zadd("game:scores", score, playerId); ``` #### 2. Advanced Data Structures Full Redis data structure support with enhanced performance: - **Strings**: Simple caching with automatic expiration - **Hashes**: Object storage with field-level access - **Lists**: Message queues and activity feeds - **Sets**: Unique collections and intersections - **Sorted Sets**: Rankings and time-series data - **Streams**: Event sourcing and log aggregation #### 3. Memory Optimization Dragonfly's intelligent memory management: - Automatic memory defragmentation - Tiered storage for cold data - Compressed string encoding - Shared memory for duplicate values ### Configuration ```json { "mcpServers": { "dragonfly": { "command": "npx", "args": ["-y", "@anthropic/mcp-dragonfly"], "env": { "DRAGONFLY_HOST": "localhost", "DRAGONFLY_PORT": "6379", "DRAGONFLY_PASSWORD": "your-password" } } } } ``` ### Use Cases **Session Management**: Store user sessions with sub-millisecond access times, handling millions of concurrent users on a single instance. **Real-Time Analytics**: Track page views, clicks, and user actions with atomic counters and sorted sets for instant leaderboards. **Message Queuing**: Implement pub/sub patterns and stream processing for event-driven architectures with guaranteed delivery. The Dragonfly MCP Server brings Redis-compatible operations to Antigravity with dramatically improved performance and efficiency.
{
"mcpServers": {
"dragonfly": {}
}
}