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.
Install hmr
Built from the published package, never by AI.
claude mcp add --transport http hmr https://pyth-on-line.promplate.dev/hmr/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"hmr": {
"url": "https://pyth-on-line.promplate.dev/hmr/mcp"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"hmr": {
"url": "https://pyth-on-line.promplate.dev/hmr/mcp"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"hmr": {
"url": "https://pyth-on-line.promplate.dev/hmr/mcp"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
{
"mcpServers": {
"hmr": {
"serverUrl": "https://pyth-on-line.promplate.dev/hmr/mcp"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
https://pyth-on-line.promplate.dev/hmr/mcpIn ChatGPT: Settings, Connectors, Add custom connector, then paste this URL. Works in any client that supports remote servers.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
