Set up your app
Where Cursor keeps mcp.json
By Sophie Filer · Updated 1 Nov 2026
There are two mcp.json files. One lives in your home folder and applies everywhere; the other lives inside a project.
- All projects
~/.cursor/mcp.json- One project
.cursor/mcp.json- Hidden folder
- Mac: Cmd + Shift + . in Finder
Full paths
| System | All projects | One project |
|---|---|---|
| macOS | /Users/you/.cursor/mcp.json | your-project/.cursor/mcp.json |
| Windows | C:\Users\you\.cursor\mcp.json | your-project\.cursor\mcp.json |
| Linux | /home/you/.cursor/mcp.json | your-project/.cursor/mcp.json |
Folders starting with a dot are hidden. On a Mac press Cmd + Shift + . in Finder to show them; on Windows turn on Hidden items in File Explorer's View menu.
Open it from Cursor instead
- Step 1: Open Customize in the sidebar and find the MCP servers. Older versions have them in Cursor Settings (Cmd/Ctrl + Shift + J), under MCP or Tools & Integrations.
- Step 2: Choose to add a custom MCP server. Cursor opens the home folder file, creating it if needed.
For the project file, make a .cursor folder at the root of the project and save mcp.json inside it yourself.
Starting a new file
The file only exists once you add a server. Create it with this and add servers inside the braces:
{
"mcpServers": {}
}A filled-in file with one local server that needs an API key looks like this. The key comes from your environment, so the file is safe to commit:
{
"mcpServers": {
"firecrawl": {
"command": "npx",
"args": ["-y", "firecrawl-mcp"],
"env": { "FIRECRAWL_API_KEY": "${env:FIRECRAWL_API_KEY}" }
}
}
}For the rest of the setup, from adding the server to reading its logs, see Adding MCP servers to Cursor.
Which one should I use?
- Personal tools you want everywhere (search, docs, memory): the home folder file.
- Servers tied to one codebase (its database, its cloud project): the project file.
- Anything with a secret in it: the home folder file, so it never lands in git.
Questions
What if the same server name is in both files?
The project entry is used for that project. Giving servers distinct names avoids confusion.
I saved mcp.json but nothing changed. Is it the wrong file?
Check the server appears in the MCP list on Cursor's Customize page. If it is listed with an error, the file is right and the server failed to start; if it is missing, check the folder is .cursor (with the dot) and the JSON is valid.
Should I commit .cursor/mcp.json to git?
Committing it shares the same servers with your team, which is handy. Keep keys out of it with ${env:NAME} values so each person supplies their own.
Plant Your First Pea
Every server on the shelf has a tab with the exact config for your app.
For bots & AI agents
Machine-readable versions of this guide and MCP Shelf. Fetch these instead of parsing this page.
This guide (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs