Hed MCP Server

Model Context Protocol (MCP) server for HED (Hierarchical Event Descriptor) validation. Provides tools for validating HED strings, TSV files, and

Local serverstdioPython

What is the Hed MCP MCP server?

Model Context Protocol (MCP) server for HED (Hierarchical Event Descriptor) validation. Provides tools for validating HED strings, TSV files, and sidecar files through a standardized MCP interface. Exposed over MCP by the hed mcp mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

  • HED string validation — Validate individual HED tag strings against schema specifications
  • TSV file validation — Validate entire BIDS TSV files containing HED annotations
  • JSON sidecar validation — Parse and validate HED sidecar JSON files
  • File system access — Read files from local filesystem paths
  • Multi-schema support — Support for standard HED schemas and library schemas
  • Definition processing — Handle HED definitions for enhanced validation

Its toolset

Everything the assistant can do here goes through one of these:

  • validateHedString — Validates HED tag strings
  • validateHedTsv — Validates TSV files with HED
  • validateHedSidecar — Validates HED sidecar JSON files
  • getFileFromPath — Reads files from filesystem
  • Prerequisites — 1. Node.js 22+: Download from nodejs.org 2. Basic understanding of HED: Familiarity with HED concepts is helpful 3

Configuration

You will need one environment variable: DEBUG. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before using the HED MCP Server, ensure you have: 1. Node.js 22+: Download from nodejs.org 2. Basic understanding of HED: Familiarity with HED concepts is helpful 3. MCP-compatible client: Such as the MCP Inspector or custom client

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Among the file and storage access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Hed MCP's toolset — validateHedString, validateHedTsv, validateHedSidecar and 2 more — is a fair guide to whether it matches your workflow. It is maintained by hed-standard; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Hed MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the hed mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
validateHedStringValidates HED tag strings
validateHedTsvValidates TSV files with HED
validateHedSidecarValidates HED sidecar JSON files
getFileFromPathReads files from filesystem
Prerequisites1. **Node.js 22+**: Download from [nodejs.org](https://nodejs.org/) 2. **Basic understanding of HED**: Familiarity with HED concepts is helpful 3. **MCP-compatible client**: Such as the MCP Inspector or custom client

How to install the Hed MCP MCP server

{
  "mcpServers": {
    "hed": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/inspector"],
      "env": {
        "DEBUG": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

Before using the HED MCP Server, ensure you have: 1. Node.js 22+: Download from nodejs.org 2. Basic understanding of HED: Familiarity with HED concepts is helpful 3. MCP-compatible client: Such as the MCP Inspector or custom client

VariableDescriptionRequired
DEBUGConfiguration value read at startup.Optional

Example prompts to try

  • Use Hed MCP to validateHedString.
  • Use Hed MCP to validateHedTsv.
  • Use Hed MCP to validateHedSidecar.

Frequently asked questions

It connects Hed MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (validateHedString, validateHedTsv, validateHedSidecar, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Hed MCP directly.