AI Agents GUIDE

MCP Configuration Validation Guide

Check server configuration structure and review command, URL, argument, and environment patterns.

Updated About 4 min read
Open MCP Config Validator

Separate configuration shape from server behavior

An MCP client uses configuration to decide which servers to start or connect to. A local server may be launched as a process; a remote server may be reached through a URL. The exact configuration file and supported fields depend on the client, so a common format is not a universal contract.

CyberClutch's MCP Config Validator examines a JSON object containing mcpServers. It checks common structural problems and highlights patterns worth reviewing. It does not launch commands, connect to configured endpoints, authenticate, or perform an MCP handshake. A structurally acceptable document still needs testing in the client that will consume it.

Understand the common fields

FieldExpected role in this tool
mcpServersAn object mapping server names to server definitions
commandA non-empty executable name or path for a local server
argsAn array of command arguments when supplied
envAn object containing environment settings when supplied
urlA non-empty endpoint URL for a remote server

A server entry needs a command or a URL. Command arguments should be separate array entries rather than one long shell command. An env object records values passed by a supporting client; it does not guarantee that a variable reference will be expanded or that the receiving server understands it.

Review a command-based example

{
  "mcpServers": {
    "project-files": {
      "command": "/opt/example/bin/mcp-files",
      "args": ["/home/user/project"],
      "env": {
        "LOG_LEVEL": "info"
      }
    }
  }
}

The executable and path are illustrative placeholders. Validation does not check that the binary exists, that its arguments are supported, or that the server enforces the requested directory scope. Prefer the intended executable directly where practical; adding a shell such as sh, bash, or powershell creates another layer of quoting and execution behavior to review.

Review a URL-based example

{
  "mcpServers": {
    "reference-service": {
      "url": "https://example.com/mcp"
    }
  }
}

This URL is a placeholder, not a working MCP service. Confirm the real hostname, transport, authentication method, and client-supported fields with your provider's documentation. HTTPS protects the transport connection; it does not establish that the service is appropriate to receive sensitive data or has restricted tool permissions.

Validate step by step

  1. Paste the configuration into the input area. Start with a copy that contains no real credentials.
  2. Run the validation action and review the overall result.
  3. Fix syntax or structure errors first: invalid JSON, an array where an object is expected, or missing transport fields.
  4. Review each server's warnings and informational details.
  5. Use Load example when you need a known starting shape, then replace the placeholder values deliberately.
  6. Revalidate the changed text before testing it in your MCP client.

Common mistakes include naming the top-level object incorrectly, supplying args as a string, inserting comments or trailing commas, and setting env to an array. A field can also be syntactically valid but semantically wrong: a URL may point to a normal website rather than the provider's MCP endpoint.

Handle secrets and access boundaries

The validator flags some long literal strings in environment keys that look sensitive, such as API_KEY or TOKEN. This is a heuristic. Short credentials, unusual key names, or secrets embedded elsewhere may escape detection. Conversely, a long non-secret value can trigger a warning. Check the configuration manually rather than assuming an empty warning list means no credentials are present.

A value such as ${MCP_API_KEY} is only a reference-shaped string. It is useful documentation, but it works at runtime only if the chosen client supports that substitution. Use the client's documented secret storage and avoid committing credential values.

Remote HTTP endpoints generally warrant review because the connection is not encrypted. Localhost development is a different context, but still requires attention to which interfaces are exposed and who can access them. Broad filesystem paths and shell arguments also deserve investigation even if the client accepts the configuration.

Complete the runtime checks separately

After static validation, verify the executable's provenance, version, permissions, argument handling, and actual tool surface in a controlled environment. Check that authentication succeeds with the expected account and that the server has only the access needed for the workflow. Review the MCP security guidance for protocol-level risks that configuration shape alone cannot establish.

Processing in CyberClutch happens locally. Existing usage analytics do not include the pasted configuration. Avoid sending credentials through a screenshot or copied result after analysis. Use the MCP Config Validator for the initial structural pass, then the MCP Security Scanner for an additional review of potentially risky patterns.

Ready to try it?

MCP Config Validator

Check server configuration structure and review command, URL, argument, and environment patterns.

Open MCP Config Validator

Related tools

Related resources