Connecting an MCP server to Cursor
Connecting an MCP server to Cursor
First, use the simplest file server just to check that the connection works.
- In Cursor, make a
.cursorfolder inside theopencircuitfolder and createmcp.jsoninside it. - Paste the following.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
}
}
}
- In Cursor Settings → MCP, check that
filesystemshows a green light. If it does not, click the refresh icon or restart Cursor. - Check from the chat.
Use the MCP filesystem tool to read the list of files in this folder.
When the AI asks whether it may use the tool, click Run. If a list appears, you are connected.
Adding more servers
Add more entries inside mcpServers. Do not forget the commas.
{
"mcpServers": {
"filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] },
"another-server": { "command": "...", "args": ["..."] }
}
}