---
title: "Where Is Cursor mcp.json? Paths for Mac, Windows, Linux"
url: "https://mcpshelf.co/guides/cursor-mcp-json-location"
description: "Cursor's mcp.json is in ~/.cursor for all projects or .cursor inside a project. Full paths for macOS, Windows and Linux, and what to put in a new file."
updated: "2026-11-01"
site: "MCP Shelf"
---

# 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

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.
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](https://mcpshelf.co/guides/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.

---

From [MCP Shelf](https://mcpshelf.co/): A short shelf of MCP servers that are worth installing. Index for agents: https://mcpshelf.co/llms.txt

