Skip to content

MCP server hangs with no output on Windows (Node.js 22.14.0, both Atlas and non-Atlas connections) #264

Open
@rockyAI5657

Description

@rockyAI5657

Environment:

OS: Windows
Node.js version: 22.14.0
MCP server version: (latest and 0.1.0, both tried)
Shells tried: PowerShell, Command Prompt
Issue: When I run the MCP server with either a MongoDB Atlas connection string or a non-Atlas (replica set) connection string, the process hangs indefinitely with no output. This happens in both PowerShell and Command Prompt.

Commands tried:
mongodb-mcp-server --connectionString "mongodb+srv://inSightUser:[email protected]/?retryWrites=true&w=majority"
mongodb-mcp-server --connectionString "mongodb://crudDbUser:[email protected]:13720,zlp33051.vci.att.com:13720,zlp33066.vci.att.com:13720/crudDb?authSource=crudDb&replicaSet=rs-MS_PROD"

lso tried with npx and with --telemetry disabled and specifying --logPath.

What works: Direct Node.js scripts using the same connection strings connect and list databases successfully. Example:
const { MongoClient } = require("mongodb");
const uri = "mongodb://crudDbUser:[email protected]:13720,zlp33051.vci.att.com:13720,zlp33066.vci.att.com:13720/crudDb?authSource=crudDb&replicaSet=rs-MS_PROD";
const client = new MongoClient(uri);
async function run() {
try {
await client.connect();
const dbs = await client.db().admin().listDatabases();
console.log("Databases:", dbs);
} catch (e) {
console.error(e);
} finally {
await client.close();
}
}
run();

This script returns a full list of databases for both Atlas and non-Atlas connections.

What doesn't work:

MCP server hangs with no output, no errors, and nothing in the logs.
Tried latest and 0.1.0 versions, both globally and with npx.
Tried disabling telemetry and specifying logPath.
No errors in mcp-logs directory.
Request: Please advise on further troubleshooting or if this is a known compatibility issue with Windows/Node.js 22.14.0. Happy to provide more details or logs if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions