Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Bug Description
When the workspace root is set to the user’s home directory (~), all MCP servers defined in ~/.cursor/mcp.json appear duplicated in the Tools & MCP settings panel — once as “Global” and once as “Project-level”.
Root Cause
Cursor loads MCP server configurations from two paths:
- Global config:
~/.cursor/mcp.json - Project config:
<workspace_root>/.cursor/mcp.json
When the workspace root is the home directory (~), both paths resolve to the exact same file. Cursor reads it twice without deduplication, causing every server to appear twice in the UI.
Steps to Reproduce
Steps to Reproduce
- Open Cursor via SSH (or locally) with the home directory as the workspace root (e.g.,
/home/usernameor~) - Define one or more MCP servers in
~/.cursor/mcp.json - Open Settings → Tools & MCP
- Every server appears twice — one enabled (from global scope) and one disabled (from project scope), or both shown side by side
Expected Behavior
Expected Behavior
Each MCP server should appear only once in the UI, regardless of whether the global and project config paths resolve to the same file. Cursor should deduplicate entries when both paths point to the same physical file (e.g., by comparing resolved/canonical paths).
Actual Behavior
Every server in ~/.cursor/mcp.json is listed twice — once under the global scope and once under the project scope.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
Environment
- Cursor version: Latest (SSH Remote)
- OS: Linux (RHEL/CentOS 9 — kernel 5.14.0)
- Connection: SSH Remote
- Workspace path:
/home/<username>(home directory)
Does this stop you from using Cursor
No - Cursor works, but with this issue
