Skip to content

Unable to run the mcp using given commands in the Readme #51

@Shreeyak

Description

@Shreeyak

I'm trying to run the MCP server on my system and in VS Code.

Mostly, the command hangs and does not proceed further. I've verified redis-server is running on default port on localhost and I can ping it.
Expected behaviour is that the terminal prints "connected to redis". This is what I see when I run the pip installed version. It hangs after starting:

(.venv) shrek@macpro:tmp_redis_mcp ❯ redis-mcp-server
Starting the Redis MCP Server

Same behaviour when I try the main github branch:

(.venv) shrek@macpro:tmp-redis ❯ uvx --from git+https://github.com/redis/mcp-redis.git redis-mcp-server --url redis://localhost:6379/0
Installed 36 packages in 36ms
Starting the Redis MCP Server

^C^C
Aborted!

Trying older git releases give other errors:

(.venv) shrek@macpro:koboldx-backend ❯ uvx --from git+https://github.com/redis/[email protected] red
is-mcp-server --url redis://localhost:6379/0
      Built redis-mcp-server @ git+https://github.com/redis/mcp-redis.git@9abea4327aaf9ffb8358769709925e3a
Installed 36 packages in 32ms
Package `redis-mcp-server` does not provide any executables.
(.venv) shrek@macpro:koboldx-backend ❯ uvx --from git+https://github.com/redis/[email protected] redis-mcp-server --url redis://localhost:6379/0
      Built redis-mcp-server @ git+https://github.com/redis/mcp-redis.git@dc54488ca41d595ca09e5a56f071a8fb
Installed 36 packages in 36ms
Traceback (most recent call last):
  File "/Users/shrek/.cache/uv/archive-v0/8zNBP2xIWFeTPZd6VfDHg/bin/redis-mcp-server", line 6, in <module>
    from src.main import cli

  ...

  File "/Users/shrek/.cache/uv/archive-v0/8zNBP2xIWFeTPZd6VfDHg/lib/python3.13/site-packages/pydantic/json_schema.py", line 2407, in model_json_schema
    cls.__pydantic_core_schema__.rebuild()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/shrek/.cache/uv/archive-v0/8zNBP2xIWFeTPZd6VfDHg/lib/python3.13/site-packages/pydantic/_internal/_mock_val_ser.py", line 67, in rebuild
    raise PydanticUserError(self._error_message, code=self._code)
pydantic.errors.PydanticUserError: `json_setArguments` is not fully defined; you should define `JsonType`, then call `json_setArguments.model_rebuild()`.

For further information visit https://errors.pydantic.dev/2.11/u/class-not-fully-defined

Also stuck when I try to clone the repo and run with uv:

shrek@macpro:mcp-redis ❯ uv sync
Resolved 96 packages in 13ms
Installed 16 packages in 30ms
 + authlib==1.6.1
 + black==25.1.0
 + docutils==0.22
 + dotenv==0.9.9
 + httpx-sse==0.4.0
 + mypy==1.17.0
 + mypy-extensions==1.1.0
 + psutil==6.1.1
 + pydantic==2.9.2
 + pytest==8.4.1
 + pytest-mock==3.14.1
 + python-multipart==0.0.20
 + redis==6.0.0
 + ruamel-yaml-clib==0.2.12
 + ruff==0.12.5
 + sniffio==1.3.1

shrek@macpro:mcp-redis ❯ uv run redis-mcp-server --url redis://localhost:6379/0
Starting the Redis MCP Server

Running on VS Code gives the following output and then freezes the application window:

2025-09-01 17:44:01.209 [info] Starting server from LocalProcess extension host
2025-09-01 17:44:01.219 [info] Connection state: Starting
2025-09-01 17:44:01.219 [info] Connection state: Running
2025-09-01 17:44:04.427 [warning] [server stderr] Starting the Redis MCP Server
2025-09-01 17:44:04.442 [warning] [server stderr] [09/01/25 17:44:04] INFO     Processing request of type            server.py:624
2025-09-01 17:44:04.442 [warning] [server stderr]                              ListToolsRequest
2025-09-01 17:44:04.449 [warning] [server stderr]                     INFO     Processing request of type            server.py:624
2025-09-01 17:44:04.449 [warning] [server stderr]                              ListPromptsRequest
2025-09-01 17:44:04.449 [info] Discovered 44 tools

System: macbook (m1, arm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions