Skip to content

Bookmarks Json To Html MCP tool

MCP findutils:bookmarks_json_to_html

Convert a bookmarks JSON file into a Netscape bookmarks.html that Chrome, Firefox, Edge and Safari import. Reads three shapes: the Chromium profile file named Bookmarks (Chrome, Edge, Brave; no extension; roots.bookmark_bar / other / synced, date_added in microseconds since 1601), a Firefox JSON backup (text/x-moz-place containers with uri and dateAdded in microseconds since 1970), and a plain tree of {title|name, url|uri|href, children} objects or an array of them. Folder nesting and root folders are kept, dates are converted to the Unix seconds bookmarks.html uses, entries with no address and separators are skipped and counted. Other formats are refused, and nothing is fetched.

Arguments

application/json
  • input

    string required

    The bookmarks JSON text.

  • include_synced

    boolean optional

    Include the Mobile / synced bookmarks root (Chromium synced, Firefox mobile). Default true. Default true.

  • include_other

    boolean optional

    Include the Other bookmarks root (Chromium other, Firefox unfiled). Default true. Default true.

  • include_dates

    boolean optional

    Write each bookmark's ADD_DATE when the JSON has one. Default true. Default true.

Example arguments

Verified
{
  "input": {
    "roots": {
      "bookmark_bar": {
        "name": "Bookmarks bar",
        "type": "folder",
        "children": [
          {
            "name": "Example",
            "type": "url",
            "url": "https://example.com/",
            "date_added": "13245678900000000"
          }
        ]
      },
      "other": {
        "name": "Other bookmarks",
        "type": "folder",
        "children": []
      },
      "synced": {
        "name": "Mobile bookmarks",
        "type": "folder",
        "children": []
      }
    },
    "version": 1
  }
}