Skip to main content

A FastMCP-based server with SSE support for Redis operations

Project description

Redis MCP Server

A FastMCP-based server with Server-Sent Events (SSE) support for Redis operations and task management.

Features

  • Core Redis operations (get, set, list, delete)
  • Task management system built on Redis
  • Real-time updates via SSE
  • Clean separation of concerns using the mounting pattern
  • Comprehensive testing

Requirements

  • Python 3.10+
  • Redis server
  • FastMCP 2.3.3+

Installation

# Clone the repository
git clone https://github.com/yourusername/redis-mcp.git
cd redis-mcp

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install the package with development dependencies
pip install -e ".[dev]"

Usage

from fastmcp import Client

async def main():
    # Connect via SSE
    async with Client("http://localhost:8000/sse") as client:
        # Use Redis operations
        result = await client.call_tool("redis_get", {"key": "my_key"})
        print(f"Result: {result}")

Development

# Run tests
pytest

# Format code
black .
isort .

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_mcp-0.1.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redis_mcp-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file redis_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: redis_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for redis_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56e931cc105218fcfbdc8d9e8cea4996f3993733392fda8d2906c7a3081054fa
MD5 61ac638d7b38c6d799b898f2725663c8
BLAKE2b-256 a734ee5ab0f0f2bd60bbf457f647d23396a8b146b104b302a9c2ddc2d03e8ce6

See more details on using hashes here.

File details

Details for the file redis_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: redis_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for redis_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b2edfe23a9fe2ecbc94d11812ae2dbb6599f99ce56b020576940ea2c665ea8
MD5 d37117e1f4ca4fd6f5e099e55733a39f
BLAKE2b-256 c3542394e699bb84a24970a0d4e1b45533554c3b30a68a5ff2d75b3c062cbbce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page