There is a lot of fine detail in that engine that you do not normally see in model steam engines. I would think it was part of an early toy of larger size, maybe a toy sawmill, or factory.
I would guess this engine was factory made, due to the cast flywheel, base, pulley, and probably the cylinder.
The pulley had a number cast into it.
Details you seldom see include the ribs on the top of the crosshead guides, the carefully laid out oil holes (indicates a working model), the counterbalances on the crankshaft, the hardwood handle on the steam valve, the flywheel mounted governor system (very cool), and the intricate dovetail in the wood base joints.
The pulley and flywheel are carefully crowned like the real engines in order to keep a flat belt centered on them (an indication that this engine probably ran little line shafts).
This has to be a factory-made engine (in my opinion).
Don't know what model or make, but I would say built by a toy manufacturer in the early 1,900's.
You can always draw up your own plans, or better yet, make a 3D model.
It is not that difficult to do.
Just pay close attention to proportion.
Pat J