Stimulus is not bound to Rails in any way. It‘s just an NPM package which can be used whereever you have a JavaScript bundler setup (e.g., Webpack). I‘m not sure whether there is a build that can be embedded directly with a <script> tag.
It's a matter of including a <script> tag and then reading the caveats. Very likely to work for a traditional server-rendered app.