What to Check Before Adding an MCP Server in Claude Code

Download Hemory
On this page

A server’s MCP setup snippet can look like a universal Claude Code command, even when it depends on a particular client, connection method, or set of server-specific values. Before running claude mcp add or editing configuration, check what the server expects and confirm the syntax your installed Claude Code version supports.

TL;DR

  • Treat a server’s command example as client-specific, not as a universal MCP recipe.
  • Identify the server name, connection details, required environment variables, and any configuration scope before running a command.
  • Check Claude Code’s current CLI help or official documentation for exact argument order and options; the schematic below is not executable syntax.
  • After adding the server, confirm that it connects and test only a tool whose effect you understand.

1. Check that the instructions are for your client

Start with the MCP server’s own setup page. Confirm that its instructions explicitly cover Claude Code, or explain how to adapt them to Claude Code. A command written for another MCP client may use a different configuration format, option name, or connection method.

Look for the server’s expected connection method, such as launching a local process or connecting to an endpoint. Also check any prerequisites, such as a required runtime, package, account, or environment variable. Do not combine pieces from examples written for different clients unless their documentation says they are compatible.

If the instructions do not name Claude Code, treat the command as a clue about the required values—not as proof that the syntax will work in Claude Code.

2. Separate the command pattern from server-specific values

Think of claude mcp add as the client command followed by client-supported options and details that identify and connect to a particular server. This is a conceptual map, not verified Claude Code command grammar:

claude mcp add + [client-supported options] + [server name] + [server-specific connection details]

The server name is the label Claude Code uses for the configured server. The remaining details depend on the server’s instructions and connection method. They may include a command to start a local process, an endpoint, arguments, or environment variables. Which fields are required—and where they go—must come from the server’s instructions and Claude Code’s current command help.

Before running an example, replace only the values the server documentation identifies as placeholders. Do not guess at flags or copy a command for a different client. Check the installed Claude Code CLI help or current official documentation for the exact argument order and supported options. If the instructions and client help disagree, resolve the mismatch before changing your configuration.

3. Review scope, secrets, and expected access

Find out which configuration location the command or file change affects. Check that it is the intended project or user context, and follow your team’s rules before adding a server to shared configuration.

Review every environment variable and credential the server asks for. Use the secret-handling method recommended by the client and your organization. Avoid pasting credentials into shared examples, committed files, or logs where others may see them.

Also read what the server says it can do and what data it needs. The fact that a server uses MCP does not, by itself, tell you what tools Claude Code will expose or what access they have. Review the client’s connection and tool-approval behavior rather than inferring permissions from the add command.

4. Choose the CLI or configuration-file route deliberately

Use the CLI when the server’s instructions provide a Claude Code command and you can confirm its syntax and scope. Choose a configuration-file route only when the client and server documentation describe the required fields and you know which file and scope are intended.

Whichever route you use, make one change at a time and keep a copy of the previous configuration if you are editing a file. That makes it easier to spot a typo or revert a change without disturbing unrelated servers.

5. Confirm the connection before relying on it

After adding the server, use Claude Code’s current MCP status or management view to confirm that it appears connected. Compare the available tools with the server’s documentation. If the connection fails, check the reported error against the server’s prerequisites, connection details, and environment variables before changing unrelated settings.

If you test a tool, choose a harmless action whose effect you understand. Do not use a write or external-action tool as a connection test unless you intend that action and have reviewed the approval process. A server appearing in the client is a useful connection check; it does not establish that every tool works as expected or has appropriate access for your task.

If you are connecting Hemory

Do not treat a third-party server’s claude mcp add example as Hemory’s setup path. Hemory’s Features page describes an in-app MCP connection flow. Follow Hemory’s product instructions for that connection instead of reusing another server’s command or inferring its permissions from the example.

FAQ

Can I copy an MCP server’s command from its documentation?

Only after confirming that it is for Claude Code and matches your installed client’s current syntax. Otherwise, use it to identify the required server-specific values and check the client’s own instructions for the correct command or configuration format.

What should I replace in a server command?

Replace only the placeholders the server documentation identifies, such as a server label, endpoint, launch command, arguments, or environment-variable values. Confirm the exact fields and their order in the current Claude Code help; do not guess at options.

Does adding an MCP server tell me what permissions it has?

No. Review the server’s documented tools and the client’s connection, approval, and access behavior. The add command alone does not establish the server’s full permissions or what actions it can take.

How do I know the server is ready to use?

Confirm that Claude Code reports the server as connected and shows the expected tools. If you need a functional test, use a low-impact tool you understand and check its result before relying on the connection.

Next step

Before changing a command or configuration file, compare the server’s instructions with Claude Code’s current help and check the intended scope. Then confirm the connection and test cautiously. This helps distinguish a syntax or setup mismatch from a problem with the server itself.

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