I am using Cursor AI and trying to add multiple MCP servers, but it only allows me to add one. Could you please explain why I can’t add more than one?
Thank you.
I am using Cursor AI and trying to add multiple MCP servers, but it only allows me to add one. Could you please explain why I can’t add more than one?
Thank you.
Hi there is no restriction in adding only one or more.
Could you please share the error or message you are seeing to see what is going wrong?
When I click “Add MCP,” the previous MCP is displayed, and I can’t add a new one. If I delete and re-add it, the old MCP disappears.
I am using Windows 11 and the beta version, but the same issue occurs in the standard version as well.
could you share which cursor version you use?
are you overwriting the MCP or adding a new one?
This issue occurs in all versions after 4.6.
When I click “Add MCP Server,” instead of adding a new one, it opens the edit page for the existing MCP at the blue-marked area above.
yes thats fine, it was changed to use the edit code.
when you have one mcp (here for example) and you want to add one more, you have to append it.
one server:
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "mcp-server"],
"env": {
"API_KEY": "value"
}
}
}
}
two servers: (see the ,
after }
on first server.
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "mcp-server"],
"env": {
"API_KEY": "value"
}
},
"server-name2": {
"command": "npx",
"args": ["-y", "mcp-server2"],
"env": {
"API_KEY": "value"
}
}
}
}
“Global MCP config: JSON syntax error: Unexpected non-whitespace character after JSON at position 322 (line 19 column 1).”
It seems like there might be a formatting issue in the JSON configuration. Could you check if there are any extra or misplaced characters?
Thats close but not yet complete.
I meant that you have to combine them in this way. You see there is a single "mcpServers": {
entry and the two servers "server-name": {
and "server-name2": {
are joined by },
the comma after first server
here again two servers (apologies, i corrected the change)
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "mcp-server"],
"env": {
"API_KEY": "value"
}
},
"server-name2": {
"command": "npx",
"args": ["-y", "mcp-server2"],
"env": {
"API_KEY": "value"
}
}
}
}
Thank you, it works now!