How to Read a Claude Code `mcp add` Example

Download Hemory
On this page

A server’s setup page may show a claude mcp add command, but that does not make every argument suitable for every MCP server. The server name, connection details, and client options may depend on the server’s instructions and your Claude Code setup. Use the steps below to understand what to check before running a command or editing configuration.

TL;DR

  • Treat claude mcp add as the start of a command example, not as enough information to recreate its full syntax.
  • Confirm the current Claude Code instructions and the MCP server’s own setup guide before supplying arguments or changing configuration.
  • After adding a server, use Claude Code’s documented method to check its status and available tools. A saved configuration alone does not confirm that the connection works.
  • If you are connecting Hemory, follow its own setup path rather than adapting a third-party server’s command.

What does claude mcp add tell you?

It identifies the command family named in the example. By itself, it does not tell you which arguments are required, what values to use, where the settings will be stored, or what access the server will receive.

Read the rest of the command against two sources: the current Claude Code documentation for the client-side syntax, and the MCP server’s current setup instructions for its name and connection requirements. The server’s example may also assume a particular Claude Code version, operating system, or environment.

This is a way to interpret an example, not executable command grammar. The exact flags and argument order must come from current documentation for the client and server you are using.

Check these details before running an example

1. Confirm the server and its instructions

Make sure the command belongs to the server you intend to connect. Use that server’s current documentation to identify its required setup and values. Do not reuse a server name, endpoint, or launch detail from an unrelated example.

If the instructions refer to a package or executable, confirm that it comes from the expected publisher and source. Be especially careful with commands that download or run code, include access tokens, or rely on environment variables. Do not paste a secret into a command or shared configuration unless the official instructions explain how it is handled safely.

2. Match the connection details to the documented setup

MCP servers may have different connection requirements. Follow the server’s instructions for the connection method it supports and the current Claude Code syntax for expressing it. Do not infer flags or substitute a remote address, local launch command, or other value based on a different server’s example.

Also check whether the command is intended for your operating system and shell. Quoting, paths, and environment-variable syntax can differ. If an example does not explain a value that you must supply, find the relevant documentation or ask the server maintainer instead of guessing.

3. Check scope and configuration effects

Before running the command, confirm which configuration scope it targets and which file or settings it may change using current Claude Code documentation. Do not assume that an example changes only a project-local setting, or that it applies to every project.

Review the command and its source before execution. If you choose to edit a configuration file instead, use the structure documented for your Claude Code version and preserve any existing settings. Avoid copying a full example over an existing file without understanding what it would replace.

4. Understand access rather than assuming it

A successful add command does not, by itself, explain every permission or action available to the connected server. Check the client’s current permission behavior and the server’s documented capabilities. Do not assume that connecting an MCP server grants—or rules out—access beyond what those sources specify.

Verify the result in Claude Code

Once you have added the server, follow Claude Code’s current documentation to inspect its connection status and available tools. Then check that the server is the one you intended to add and that the tools shown match its documented purpose.

If the connection is missing or reports an error, compare the configured values with the server’s instructions, check any required environment variables, and review the client’s reported error. Do not respond by adding guessed flags or weakening access controls. A command that completed or a configuration entry that exists does not necessarily mean the server is connected and usable.

Hemory uses a separate setup path

If your goal is to connect Hemory, do not treat another MCP server’s claude mcp add example as Hemory setup guidance. Hemory’s product page describes an in-app connection path for Claude and MCP clients. Use the instructions presented for Hemory and your client; do not infer Hemory-specific command arguments or permissions from a third-party server’s instructions.

FAQ

Can I copy a claude mcp add command from a server’s website?

Only after checking that it is current and intended for your Claude Code version and setup. Confirm the server-specific values, connection requirements, and configuration scope before running it.

Does a successful add command mean the MCP server is ready?

Not necessarily. Use Claude Code’s documented checks to confirm the connection and available tools, then compare them with the server’s stated capabilities.

Before you run it

Use the server’s own setup instructions for server-specific details and Claude Code’s current documentation for client syntax, scope, and verification. When either source leaves a required value unclear, resolve that question before changing configuration.

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