Skip to content

Running this MCP Server using Docker command #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MasonMao-dev opened this issue Apr 21, 2025 · 2 comments
Closed

Running this MCP Server using Docker command #4

MasonMao-dev opened this issue Apr 21, 2025 · 2 comments
Assignees

Comments

@MasonMao-dev
Copy link

How to Run this MCP Server using docker command?

Is it possible?

@MasonMao-dev MasonMao-dev changed the title Running this MCP Server with Docker command Running this MCP Server using Docker command Apr 21, 2025
@mortensi
Copy link
Member

Hello, I just tested this configuration for Claude Desktop. First, build the image with:

docker build -t mcp-redis .

And configure Claude Desktop to run the container in claude_desktop_config.json.

{
  "mcpServers": {
    "redis": {
      "command": "docker",
      "args": ["run",
                "--rm",
                "--name",
                "redis-mcp-server",
                "-i",
                "-e", "REDIS_HOST=<redis_hostname>",
                "-e", "REDIS_PORT=<redis_port>",
                "-e", "REDIS_USERNAME=<redis_username>",
                "-e", "REDIS_PWD=<redis_password>",
                "mcp-redis"]
    }
  }
}

Of course, the container must reach a running Redis Server instance (I tested with a Redis Cloud database). Please take a look and let me know if this works for you.

@mortensi mortensi self-assigned this Apr 22, 2025
@MasonMao-dev
Copy link
Author

Thank you Sir, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants