Dan,
3 Rail 'O' Gauge locomotives (Lionel, MTH, etc.), whether traditional-sized or scale-sized, have traditionally been powered by AC through the track (except for a few outliers made in the late 1970's or early 80's as cost-cutting moves). Early on they all had AC motors inside them as a result. In the last 30 years DC motors have come to dominate, but are still powered by AC from the track in order to retain compatibility back to the 1930's. DCC bucks the trend here significantly.
2 Rail 'O' Scale locomotives on the other hand mirror what you find in 'HO' or 'N', or any of the other scale-proportioned sizes (which collectively we call HONGZ). DCC is quite appropriate here.
For most older 'O' Gauge locomotives including the older ones you've inherited , which we call 'conventional', covering roughly 1930's through 1995, and some later than that even, you can't easily add a DCC decoder within the engine to accomplish what you want, because the motors are presently AC powered and DCC is built upon DC power. It can be done but is expensive and makes the locomotives unusable to most people in the hobby except you.
Most newer 'O' Gauge locomotives can be run conventionally, but have many more features (DCC-like) available which are unlocked under what we call 'command control'. Unfortunately 'O' Gauge command control is incompatible with DCC, and in fact interferes with it if imposed on the same track. These newer models are more easily converted to DCC because they have DC can motors driving the wheels. Just as above however the conversion leaves them orphans.
The only reasonable conversion, thus the one that takes place most often, is to convert them from 3 Rail to 2 Rail, at the same time DCC is installed to replace command control. Now your collection has more utility because it's no longer filled with orphans. However, this type of conversion is usually only employed with scale-proportioned 3 Rail stuff, and not traditionally-sized engines, because it's expensive.
A better alternative may be to consider constructing data gateways between JMRI or CMRI and the native command control protocols. All of these native protocols are accessible within the native equipment that operates the various flavors of command control, through serial interfaces (RS-232 based). In fact one of these gateways (to/from TMCC) may already exist.
Lionel's TMCC protocol is open-source and works with Lionel locomotives fitted with TMCC, generally made from 1996 onward.
Lionel's Legacy protocol is not but has been published. It also would have to be licensed. It is a superset of TMCC offering more functions for Lionel locomotives fitted with Legacy, generally made from 2008 onward. Legacy engines will respond to TMCC (but with reduced features), and Legacy equipment will also transmit basic TMCC for older locomotives to use.
MTH's DCS (PS-2 and PS-3) has been reverse engineered but also has not been published. It would also have to be licensed. It's completely different from TMCC and Legacy. On the other hand many PS-3 locomotives are already fitted with a subset of DCC to use as an option, selected via a switch on the underside of the locomotive.
Using data gateways would save the expense of hardware conversions on all of your locomotives and eliminate orphans.
But the gateways suggested above will not work with conventionally controlled engines, all older Lionel (before 1996) and MTH's PS-1 for example.
These would use a power gateway instead, several of which already exist, for example Lionel's PowerMasters, fed by command control data and adjusting voltage levels to the track to provide motion, direction, whistle/horn and bell in the conventional way.
While the data gateways facilitate communication to command control engines, and such engines can run anywhere on your layout, conventional engines must be segregated to 'blocks', or switched sections of track. Each of these typically has a power gateway, and each is switched to follow it's engine around the layout, in order to prevent multiple engines on different areas of the layout from responding identically to the voltage sent by a single power gateway. CMRI and JMRI can be used to accomplish this switching.
JMRI and CMRI will work with existing 3 Rail 'O' Gauge command control stuff but it will take some effort to get it to do so.
So which do you prefer? Hardware conversions or gateways?
Mike