Where did my Claude Code MCP settings go? Adding, checking and removing them step by step
Do what you can first.
Add MCP settings, check the contents of .mcp.json, and finally delete it. This article is not about successful connections with external services.
Applies to Macs that have Claude Code installed. Check the setting location and try it in the practice folder.
Table of contents of this article
- 1. Open a terminal and check if Claude Code can be used
- 2. Create a practice area separate from your regular projects
- 3. Add one setting for the project
- 4. Read “Added” and “Connected” separately.
- 5. Delete settings added during practice
- If the display is different, first check your current location and save location.
I found the command to add the tool. But if I run that, what settings will change? I wonder if I can go back later.
I wanted to take a look at that before increasing collaboration. This time,Add one MCP setting to the practice folder, look at the contents, and finally delete it.I'll try it up to that point.
MCP is a mechanism for connecting Claude Code with external tools. However, being able to write the settings and actually being able to use the tool are two different things. This time, I will also check the boundaries.
Revised on November 5, 2026. The previous article "Full automation with over 30 tools" has been revised to explain the setting operations that were confirmed to be executed. Tested using Claude Code 2.1.283, macOS, and isolated configuration directory. This is not an article that verifies authentication to external services or successful acquisition of materials.
1. Open a terminal and check if Claude Code can be used
This article is for Macs with Claude Code installed. If not yetOfficial setup guidePlease complete the installation and then return.
Search for and open “Terminal” using Command + Space. Paste the following one frame at a time and press the Return key. at the top $ There is no need to add.
claude --version
Results during verification:
2.1.283 (Claude Code)
Once the version is available, we can proceed.command not found If so, you're not yet at the point where you need to add MCP. After installation, reopen the terminal and return to the official guide to confirm the installation. Display and specifications vary depending on the version.
2. Create a practice area separate from your regular projects
Instead of adding it to your work folder, create a practice space in a temporary folder on your Mac.
mcp_practice_dir=$(mktemp -d /tmp/mcp-practice.XXXXXX)
cd "$mcp_practice_dir"
pwd
Here is an example of the result: The trailing character changes from run to run. This example output is not the command you would enter.
/tmp/mcp-practice.aB3xY9
Confirmation: The display is /tmp/mcp-practice. A dedicated folder starting with is OK. If an error occurs, you will not be able to proceed with the additional operation. This practice location is for temporary use, so it will not be used as a place to store long-term settings.
3. Add one setting for the project
The example uses Context7’s HTTP endpoint, which provides library documentation. This walkthrough only registers the endpoint; it does not include entering authentication credentials.
claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp
During verification, the following message appeared. The path part will be replaced with your practice folder.
Added HTTP MCP server context7 with URL: https://mcp.context7.com/mcp to project config
File modified: …/project/.mcp.json
Next, look at what was saved.
cat .mcp.json
Contents during verification:
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}
Confirmation: The file was written successfully if it contains context7, http and the URL you registered. Here, --scope project targets .mcp.json in this folder. Include the scope each time during practice; do not assume omitting it uses the same location.
4. Read “Added” and “Connected” separately.
claude mcp get context7
The result of the verification was as follows.
context7:
Scope: Project config (shared via .mcp.json)
Status: ⏸ Pending approval (run `claude` to approve)
Type: http
URL: https://mcp.context7.com/mcp
Here's what we found out: It is registered as a project setting. Meanwhile, the status is pending approval. This display should not be interpreted as ``the material was successfully obtained.''
The configuration file has a name, it is approved by Claude Code, you can connect to the service, and you can retrieve the desired material. There are different things to check for each of these four. This time I actually checked the first stage.
If you want to proceed to actual use,Official Context7 installation instructionsPlease check the authentication method. Current instructions include OAuth and API key settings. The registration command in this article alone does not complete the authentication process.
5. Delete settings added during practice
Just run it in the same terminal, same folder.
claude mcp remove --scope project context7
Results during verification:
Removed MCP server context7 from project config
File modified: …/project/.mcp.json
Next, check the file.
cat .mcp.json
Confirmation: The practice is complete when context7 is no longer inside mcpServers. This does not remove configurations with the same name in other scopes.
If the display is different, first check your current location and save location.
.mcp.jsonis not found: Usepwdto check that you are in the practice folder, then check that your add command included--scope project.- It says already registered: Instead of deleting the usual settings and continuing, create a new practice folder from step 2. Administrator settings may take precedence in managed environments.
- Waiting for approval appears: This is the same stage as this verification. Rather than assuming that the connection has failed, check the registration details and approval status separately.
- An authentication error occurs during actual use: Repeating additional commands may not resolve the issue. Check the service-side authentication steps.
You can see where the settings are and how to restore them. That alone will give you a better outlook when trying out your next collaboration. First, let's find out where this one thing entered and how it disappeared.
MCP scope and status displayClaude Code official documentationis referring to. The output of the command is the verification result of this article.