You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-5Lines changed: 46 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ The Redis MCP Server is a **natural language interface** designed for agentic ap
37
37
-[Redis ACL](#redis-acl)
38
38
-[Configuration via command line arguments](#configuration-via-command-line-arguments)
39
39
-[Configuration via Environment Variables](#configuration-via-environment-variables)
40
+
-[Logging](#logging)
40
41
-[Integrations](#integrations)
41
42
-[OpenAI Agents SDK](#openai-agents-sdk)
42
43
-[Augment](#augment)
@@ -78,7 +79,7 @@ Additional tools.
78
79
79
80
## Installation
80
81
81
-
The Redis MCP Server is available as a PyPI package and as direct installation from the GitHub repository.
82
+
The Redis MCP Server is available as a PyPI package and as direct installation from the GitHub repository.
82
83
83
84
### From PyPI (recommended)
84
85
Configuring the latest Redis MCP Server version from PyPI, as an example, can be done importing the following JSON configuration in the desired framework or tool.
@@ -125,7 +126,7 @@ However, starting the MCP Server is most useful when delegate to the framework o
125
126
126
127
You can configure the desired Redis MCP Server version with `uvx`, which allows you to run it directly from GitHub (from a branch, or use a tagged release).
127
128
128
-
> It is recommended to use a tagged release, the `main` branch is under active development and may contain breaking changes.
129
+
> It is recommended to use a tagged release, the `main` branch is under active development and may contain breaking changes.
129
130
130
131
As an example, you can execute the following command to run the `0.2.0` release:
131
132
@@ -140,7 +141,7 @@ Additional examples are provided below.
@@ -318,7 +319,7 @@ If desired, you can use environment variables. Defaults are provided for all var
318
319
319
320
There are several ways to set environment variables:
320
321
321
-
1.**Using a `.env` File**:
322
+
1.**Using a `.env` File**:
322
323
Place a `.env` file in your project directory with key-value pairs for each environment variable. Tools like `python-dotenv`, `pipenv`, and `uv` can automatically load these variables when running your application. This is a convenient and secure way to manage configuration, as it keeps sensitive data out of your shell history and version control (if `.env` is in `.gitignore`).
323
324
For example, create a `.env` file with the following content from the `.env.example` file provided in the repository:
324
325
@@ -330,7 +331,7 @@ Then edit the `.env` file to set your Redis configuration:
330
331
331
332
OR,
332
333
333
-
2.**Setting Variables in the Shell**:
334
+
2.**Setting Variables in the Shell**:
334
335
You can export environment variables directly in your shell before running your application. For example:
335
336
336
337
```sh
@@ -342,6 +343,46 @@ export REDIS_PORT=6379
342
343
This method is useful for temporary overrides or quick testing.
343
344
344
345
346
+
### Logging
347
+
348
+
The server uses Python's standard logging and is configured at startup. By default it logs at WARNING and above. You can change verbosity with the `MCP_REDIS_LOG_LEVEL` environment variable.
- Numeric values are also accepted, including signed (e.g., `"10"`, `"+20"`)
353
+
- Default when unset or unrecognized: `WARNING`
354
+
355
+
Handler behavior
356
+
- If the host (e.g., `uv`, VS Code, pytest) already installed console handlers, the server will NOT add its own; it only lowers overly-restrictive handler thresholds so your chosen level is not filtered out. It will never raise a handler's threshold.
357
+
- If no handlers are present, the server adds a single stderr StreamHandler with a simple format.
Integrating this MCP Server to development frameworks like OpenAI Agents SDK, or with tools like Claude Desktop, VS Code, or Augment is described in the following sections.
0 commit comments