How to Remove One MCP Server from Claude Code

Download Hemory
On this page

Removing an MCP server from Claude Code should affect only the entry you intend to remove. The exact command or configuration location can depend on your Claude Code version and whether the entry is configured for a project or more broadly. Use the current official Claude Code instructions for the removal itself, then check both that the target is gone and that a server you are keeping still works.

TL;DR

  • Record the exact server name and identify the scope where it is configured before changing anything.
  • Use Claude Code’s current official instructions; don’t guess a command or edit a configuration file at an assumed path.
  • After removal, reload or restart as documented, confirm the target entry is absent, and test one server you’re keeping.

Remove one MCP server carefully

1. Identify the entry and its scope

Find the exact name Claude Code uses for the server you want to remove. Then use the current Claude Code documentation to determine where that entry is configured and whether it applies to the current project or a broader user configuration. Don’t assume that a name shown in one project is configured in the same place elsewhere.

Before changing anything, note the names of the other configured servers. If you edit a configuration file, make a backup or record the existing contents so you can restore the setup if needed.

2. Follow the current Claude Code removal instructions

Consult the official Claude Code documentation for managing MCP servers in your installed version. Use its documented removal command if one applies to your setup. If the documented method is to edit a configuration file, locate it using those instructions and remove only the entry whose name you identified.

Avoid copying commands or file paths from instructions for another client or an older Claude Code version. Don’t delete a whole configuration file, clear all MCP servers, or change unrelated entries just to remove one server.

Hemory’s Features page lists Claude Code as an MCP client, but it does not document Claude Code’s removal commands or configuration locations. If the entry you are removing connects Hemory, this guide covers the Claude Code configuration—not Hemory data management. Don’t treat removing a client entry as a way to delete Hemory Memory or other stored data.

3. Reload and confirm the change

Follow Claude Code’s instructions for applying configuration changes. Depending on the documented procedure, that may involve restarting the client or refreshing its server list. Use the client’s documented status or listing method to check that the target server no longer appears.

Then test a server you intend to keep with a small, safe task appropriate to that server. Confirm that Claude Code can still use it and that the client reports no relevant connection or configuration error. If another server fails, inspect the change for an unintended edit before changing additional entries.

If the removed server still appears

First confirm that you changed the configuration scope Claude Code is currently using. Check for another entry with the same server name in a different scope, and repeat the documented status check after applying the change. Don’t remove similarly named entries unless you have confirmed that they refer to the server you intend to remove.

If the result remains unclear, consult the current Claude Code documentation or support resources with your Claude Code version and the relevant scope. Avoid sharing secrets or sensitive configuration values when asking for help.

FAQ

Will removing an MCP server disrupt my other servers?

It should not if you remove only the intended entry, but verify the result rather than assuming. Confirm that the target is absent and test a server you are keeping.

Does removing a Hemory MCP entry delete Hemory data?

This guide does not cover Hemory data deletion. It covers changing a Claude Code server entry. Manage any Hemory data separately through the applicable documented controls.

Next step

Once the target entry is removed and a remaining server works, leave the rest of your configuration unchanged. If you still need the removed service later, consult the current setup instructions before adding it again.

Start building your memory palace

Download Hemory — from today on, every real conversation becomes material you can generate from tomorrow.

Get Hemory for iOS Get Hemory for Android Download APK

macOS, Windows, Linux, Web, and Self-host coming soon