Unable to connect to the mcp with the docker #8
Replies: 4 comments 1 reply
-
|
Additional information needed: OS and version : macos and 15.4 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for trying MongoDB Lens Congratulations—you discovered a bug in the documentation 🙈 😅 - "-e", "CONFIG_LOG_LEVEL='verbose'",
+ "-e", "CONFIG_LOG_LEVEL=verbose",I've just patched the README and also updated MongoDB Lens to handle single-quoted Docker The next time you start Claude Desktop the latest version of I've replicated your Claude setup, configured it to connect to a MongoDB v5 instance, and its working for me… mongodb-lens_discussions_8.mp4…so it'll be interesting to see what your verbose logs say Cheers |
Beta Was this translation helpful? Give feedback.
-
|
Hey @furey , Sorry for the late reply, Here are the logs, 2025-04-26T07:45:27.671Z [mongodb-lens] [info] Initializing server... Here is the config: |
Beta Was this translation helpful? Give feedback.
-
|
Ok so I am getting this error only in the 2025-05-04T10:25:31.605Z [mongodb-lens] [info] Initializing server... but when I run the docker command directly in the terminal, it is working fine, latest: Pulling from furey/mongodb-lens |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Here are the logs:
2025-04-13T18:51:56.018Z [mongodb-lens] [info] Initializing server...
2025-04-13T18:51:56.043Z [mongodb-lens] [info] Server started and connected successfully
2025-04-13T18:51:56.044Z [mongodb-lens] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
Unable to find image 'furey/mongodb-lens:latest' locally
latest: Pulling from furey/mongodb-lens
6e771e15690e: Already exists
6943333fe3c9: Already exists
19f059763ac0: Already exists
422fec2897b5: Already exists
cb12c568c31a: Pulling fs layer
af2b6d934555: Pulling fs layer
fb39dce3b776: Pulling fs layer
649ba88cb6b5: Pulling fs layer
649ba88cb6b5: Waiting
af2b6d934555: Verifying Checksum
af2b6d934555: Download complete
cb12c568c31a: Download complete
cb12c568c31a: Pull complete
af2b6d934555: Pull complete
fb39dce3b776: Verifying Checksum
fb39dce3b776: Download complete
fb39dce3b776: Pull complete
649ba88cb6b5: Download complete
649ba88cb6b5: Pull complete
Digest: sha256:e80b69cd0d56fe84379064a7b28f1357210902f41f182c1e947d70658db70a0b
Status: Downloaded newer image for furey/mongodb-lens:latest
MongoDB Lens v9.1.0 starting…
2025-04-13T18:52:56.046Z [mongodb-lens] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":0,"reason":"Error: MCP error -32001: Request timed out"}}
2025-04-13T18:52:56.047Z [mongodb-lens] [info] Client transport closed
2025-04-13T18:52:56.051Z [mongodb-lens] [info] Server transport closed
2025-04-13T18:52:56.051Z [mongodb-lens] [info] Client transport closed
2025-04-13T18:52:56.051Z [mongodb-lens] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e.
console.error('...')in JavaScript,print('...', file=sys.stderr)in python) and it will appear in this log.2025-04-13T18:52:56.052Z [mongodb-lens] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation {"context":"connection"}
Exiting…
2025-04-13T18:52:56.329Z [mongodb-lens] [info] Server transport closed
2025-04-13T18:52:56.329Z [mongodb-lens] [info] Client transport closed
2025-04-13T19:01:22.163Z [mongodb-lens] [info] Initializing server...
2025-04-13T19:01:22.213Z [mongodb-lens] [info] Server started and connected successfully
2025-04-13T19:01:22.214Z [mongodb-lens] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
latest: Pulling from furey/mongodb-lens
6e771e15690e: Already exists
6943333fe3c9: Already exists
19f059763ac0: Already exists
422fec2897b5: Already exists
cb12c568c31a: Pulling fs layer
af2b6d934555: Pulling fs layer
fb39dce3b776: Pulling fs layer
649ba88cb6b5: Pulling fs layer
649ba88cb6b5: Waiting
af2b6d934555: Verifying Checksum
af2b6d934555: Download complete
cb12c568c31a: Verifying Checksum
cb12c568c31a: Download complete
cb12c568c31a: Pull complete
af2b6d934555: Pull complete
fb39dce3b776: Verifying Checksum
fb39dce3b776: Download complete
fb39dce3b776: Pull complete
649ba88cb6b5: Verifying Checksum
649ba88cb6b5: Download complete
649ba88cb6b5: Pull complete
Digest: sha256:e80b69cd0d56fe84379064a7b28f1357210902f41f182c1e947d70658db70a0b
Status: Downloaded newer image for furey/mongodb-lens:latest
Error parsing environment variable for config [logLevel]: Config [logLevel] is invalid: 'verbose'. Using default: info
MongoDB Lens v9.1.0 starting…
2025-04-13T19:01:59.762Z [mongodb-lens] [info] Initializing server...
2025-04-13T19:01:59.809Z [mongodb-lens] [info] Server started and connected successfully
2025-04-13T19:01:59.810Z [mongodb-lens] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
latest: Pulling from furey/mongodb-lens
Digest: sha256:e80b69cd0d56fe84379064a7b28f1357210902f41f182c1e947d70658db70a0b
Status: Image is up to date for furey/mongodb-lens:latest
Error parsing environment variable for config [logLevel]: Config [logLevel] is invalid: 'verbose'. Using default: info
MongoDB Lens v9.1.0 starting…
2025-04-13T19:02:59.813Z [mongodb-lens] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":0,"reason":"Error: MCP error -32001: Request timed out"}}
2025-04-13T19:02:59.814Z [mongodb-lens] [info] Client transport closed
2025-04-13T19:02:59.815Z [mongodb-lens] [info] Server transport closed
2025-04-13T19:02:59.815Z [mongodb-lens] [info] Client transport closed
2025-04-13T19:02:59.815Z [mongodb-lens] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e.
console.error('...')in JavaScript,print('...', file=sys.stderr)in python) and it will appear in this log.2025-04-13T19:02:59.815Z [mongodb-lens] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation {"context":"connection"}
Exiting…
2025-04-13T19:03:00.031Z [mongodb-lens] [info] Server transport closed
2025-04-13T19:03:00.031Z [mongodb-lens] [info] Client transport closed
Here is the config
"mongodb-lens": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--network=host",
"--pull=always",
"-e",
"CONFIG_LOG_LEVEL='verbose'",
"furey/mongodb-lens",
"mongodb://localhost:27017/finnhub_test"
]
}
Beta Was this translation helpful? Give feedback.
All reactions