Postgres mcp tool in cursor 1.0.0 won't start

Describe the Bug

there is no error message I can find. just won’t work, according to the agent.

"postgres": {
      "command": "npx",
      "args": [
        "-y", "@modelcontextprotocol/server-postgres",
        "--connection-string", "postgresql://postgres:XXX@localhost:5432/my_db"
      ]
    }

Steps to Reproduce

ask the agent to test the postgres mcp tool. it can’t connect.

Expected Behavior

should be able to query the db. works well in windsurf

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

theeeeeeeeeeee versions is 1.0.0
:smiley:

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, the issue is with the argument format. The server @modelcontextprotocol/server-postgres doesn’t use the --connection-string flag. The connection string should be passed as a positional argument after the package name.

"postgres": {
  "command": "npx",
  "args": [
    "-y", 
    "@modelcontextprotocol/server-postgres", 
    "postgresql://postgres:XXX@localhost:5432/my_db"
  ]
}