Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hmr

MCP server by promplate Verified · promplate.dev

hmr reloads only the affected Python modules when files change, keeping app state intact. It suits developers who want faster edit cycles than full-restart reloaders. Run it from the command line with hmr followed by your entry file.

  • Score 76
  • 60 stars
  • Updated

Install hmr

Built from the published package, never by AI.

claude mcp add --transport http hmr https://pyth-on-line.promplate.dev/hmr/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install hmr in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the hmr block.

About

hmr is a Python package that provides hot module reload and a reactive programming engine. It reruns only the modules affected by a file change, from the modified module up to the entry file, instead of restarting the whole process. The CLI runs a script with the same parameters as python, and changes take effect without losing state. It also covers non-Python files such as YAML and JSON by monitoring file reads.

Written from the project's README and checked against it.

What you need

  • Python
  • uv (optional, for uvx)

Try asking

  • Run my app.py with hmr so my edits reload without restarting.
  • Help me set up hmr for my FastAPI service so model startup isn't repeated.
  • Explain how hmr decides which modules to reload after I edit a file.

Good to know

  • Server-side only. It does not update the browser when code changes.
  • Circular dependencies in some edge cases may cause unexpected behavior.
  • Use with caution if there is a lot of code in __init__.py.
  • The README describes the hmr ecosystem as essentially stable but not without edge cases.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Keep app state while editing Python code
  • Speed up FastAPI or ML service development
  • Hot reload Python scripts from the command line

Alternatives to hmr

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

hmr: common questions

Does hmr restart the whole process when a file changes?

No. The README says hmr reruns only what is necessary and keeps app state intact, instead of restarting the entire process.

Does hmr reload the browser page?

No. The README says hmr does not do client-side reloading. It only reloads Python code on the server side.

How does hmr know what to reload?

It uses runtime dependency tracking rather than static analysis. It tracks attribute access on modules and uses watchfiles to detect changes.

How do I install hmr?

In Claude Code run claude mcp add --transport http hmr https://pyth-on-line.promplate.dev/hmr/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is hmr the official server?

hmr is published by promplate.dev from its verified domain in the official MCP Registry.

Is hmr free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is hmr safe to use?

It scores 76 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hmr?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does hmr work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

Add to stack

Loading.