---
title: thv registry convert
hide_title: true
description: Reference for ToolHive CLI command `thv registry convert`
last_update:
  author: autogenerated
slug: thv_registry_convert
mdx:
  format: md
---

## thv registry convert

Convert a legacy registry file to the upstream MCP format

### Synopsis

Convert a legacy ToolHive registry JSON file to the upstream MCP registry format.

Reads from --in (or stdin) and writes to --out (or stdout). Use --in-place to
overwrite the input file; a backup is written to <path>.bak unless --no-backup
is set.

```
thv registry convert [flags]
```

### Options

```
  -h, --help         help for convert
      --in string    Input file (default: stdin)
      --in-place     Overwrite the input file (writes a .bak backup unless --no-backup is set)
      --no-backup    Do not write a .bak backup when using --in-place
      --out string   Output file (default: stdout)
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv registry](thv_registry.md)	 - Manage MCP server registry

