[GH-ISSUE #3681] [BUG]: Failed to start MCP server: time [-32000] MCP error -32000: Connection closed #2375

Closed
opened 2026-02-22 18:29:24 -05:00 by yindo · 4 comments
Owner

Originally created by @japen0617 on GitHub (Apr 20, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3681

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I tried to start a MCP server , but it failed , the error message show :Failed to start MCP server: time [-32000] MCP error -32000: Connection closed

Image

MCP Setting

Image

Are there known steps to reproduce?

No response

Originally created by @japen0617 on GitHub (Apr 20, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3681 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? I tried to start a MCP server , but it failed , the error message show :Failed to start MCP server: time [-32000] MCP error -32000: Connection closed <img width="1423" alt="Image" src="https://github.com/user-attachments/assets/f8779c3d-8ede-48ec-9162-2e8bf76cbcc1" /> MCP Setting <img width="895" alt="Image" src="https://github.com/user-attachments/assets/463fd633-eb5a-48aa-9d80-801668f28bc3" /> ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:29:24 -05:00
yindo closed this issue 2026-02-22 18:29:24 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 20, 2025):

We are not an MCP tool discussion board: https://docs.anythingllm.com/mcp-compatibility/desktop#command-availability

Image

In this case, you also havnt provided any other OS information, if you even have python3 available in $PATH and command line, or anything else.

99% of the time, you just need to change command to the exact path to your python 3 binary since aliases are not going to be loaded in spawned processes

@timothycarambat commented on GitHub (Apr 20, 2025): We are not an MCP tool discussion board: https://docs.anythingllm.com/mcp-compatibility/desktop#command-availability <img width="879" alt="Image" src="https://github.com/user-attachments/assets/0a931b9f-f7cc-4804-98e9-afe1a66d382b" /> In this case, you also havnt provided any other OS information, if you even have python3 available in $PATH and command line, or anything else. 99% of the time, you just need to change command to the exact path to your python 3 binary since `alias`es are not going to be loaded in `spawn`ed processes
Author
Owner

@irfansofyana commented on GitHub (Apr 21, 2025):

@timothycarambat hmm I still have difficulty on how to setup MCP here.

I already tried to use the commands based on the exact path where it's being installed.

For example:

I use uvx as a command to install mcp and here is my mcp config in the anythingllm_mcp_servers.json

{
  "mcpServers": {
    "youtube": {
      "command": "/opt/homebrew/bin/uvx",
      "args": [
        "--from",
        "git+https://github.com/adhikasp/mcp-youtube",
        "mcp-youtube"
      ]
    }
  }
}

and uvx binary is available in my host machine under that directory (based on command which uvx)

is there steps I missed here?

note: I'm running AnythingLLM desktop Version 1.8.0 (1.8.0) on MacOS

@irfansofyana commented on GitHub (Apr 21, 2025): @timothycarambat hmm I still have difficulty on how to setup MCP here. I already tried to use the commands based on the exact path where it's being installed. For example: I use `uvx` as a command to install mcp and here is my mcp config in the `anythingllm_mcp_servers.json` ```json { "mcpServers": { "youtube": { "command": "/opt/homebrew/bin/uvx", "args": [ "--from", "git+https://github.com/adhikasp/mcp-youtube", "mcp-youtube" ] } } } ``` and uvx binary is available in my host machine under that directory (based on command `which uvx`) is there steps I missed here? note: I'm running AnythingLLM desktop Version 1.8.0 (1.8.0) on MacOS
Author
Owner

@timothycarambat commented on GitHub (Apr 21, 2025):

Possible ideas:

  • That direct binary is not executable by the user/proecss runner that ANythingLLM is running commands with
  • uvx was not originally found since your $PATH was not being inherited by the process being spawned by MCP SDK
{
  "mcpServers": {
    "youtube": {
      "command": "/opt/homebrew/bin/uvx",
      "args": [
        "--from",
        "git+https://github.com/adhikasp/mcp-youtube",
        "mcp-youtube"
      ],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      }
    }
  }
}
@timothycarambat commented on GitHub (Apr 21, 2025): Possible ideas: - That direct binary is not executable by the user/proecss runner that ANythingLLM is running commands with - `uvx` was not originally found since your $PATH was not being inherited by the process being spawned by MCP SDK ```json { "mcpServers": { "youtube": { "command": "/opt/homebrew/bin/uvx", "args": [ "--from", "git+https://github.com/adhikasp/mcp-youtube", "mcp-youtube" ], "env": { "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" } } } } ```
Author
Owner

@UnixSafe commented on GitHub (May 28, 2025):

i have the same error :

`{
"mcpServers": {
"playwright": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"],
"env": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
}
}
}
}

` i try with the path and without the path and i have same error Failed to start MCP server: playwright [-32000] MCP error -32000: Connection closed

@UnixSafe commented on GitHub (May 28, 2025): i have the same error : `{ "mcpServers": { "playwright": { "command": "/usr/local/bin/npx", "args": ["-y", "@executeautomation/playwright-mcp-server"], "env": { "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" } } } } ` i try with the path and without the path and i have same error Failed to start MCP server: playwright [-32000] MCP error -32000: Connection closed
yindo changed title from [BUG]: Failed to start MCP server: time [-32000] MCP error -32000: Connection closed to [GH-ISSUE #3681] [BUG]: Failed to start MCP server: time [-32000] MCP error -32000: Connection closed 2026-06-05 14:46:12 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2375