MCP Hot-Reload logo

MCP Hot-Reload

Community
neilopet

Hot Module Replacement (HMR) for MCP (Model Context Protocol) servers - instant reloading on file changes

Publisherneilopet
Repositorymcpmon
LanguageTypeScript
Forks
2
Stars
10
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP Hot-Reload exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    10 stars and 2 forks from the linked repository.

mcpmon

Node.js License: MIT Tests Code Style

Hot-reload monitor for MCP servers - like nodemon but for Model Context Protocol

Make changes to your MCP server code and see them instantly without restarting your MCP client. Just like nodemon automatically restarts Node.js applications, mcpmon automatically restarts MCP servers.

What it is

mcpmon is a transparent proxy that sits between your MCP client (Claude Code, Claude Desktop, MCP Inspector, etc.) and your MCP server. When you modify your server code, mcpmon automatically restarts the server while keeping your client connected.

Key benefits:

  • Like nodemon, but for MCP - Simple command-line interface you already know
  • Zero configuration - Just wrap your server command with mcpmon
  • Non-disruptive development - Your MCP client stays connected while your server reloads
  • Zero message loss - Requests are buffered during server restart
  • Universal compatibility - Works with any MCP server (Node.js, Python, Deno, etc.)
  • Library support - Import as a dependency for custom monitoring solutions

Quick Start

  1. Install globally:

    bash
    npm install -g mcpmon
  2. Use with your MCP server:

    bash
    # Instead of: node server.js
    mcpmon node server.js
    
    # Instead of: python server.py  
    mcpmon python server.py
    
    # Instead of: deno run --allow-all server.ts
    mcpmon deno run --allow-all server.ts
  3. Use with MCP clients:

    bash
    # MCP Inspector
    npx @modelcontextprotocol/inspector mcpmon node server.js
    
    # For existing Claude Code/Desktop servers, use setup:
    mcpmon setup my-server

    Setup automatically configures your existing MCP servers for hot-reload! ✨

That's it! Your MCP server now has hot-reload enabled. Edit your server code and changes apply instantly.

Usage Examples

Basic Usage

bash
# Node.js server
mcpmon node server.js

# Python server
mcpmon python -m mcp_server

# Python with args
mcpmon python server.py --port 3000

# Deno server
mcpmon deno run --allow-all server.ts

# With debugging
mcpmon node --inspect server.js

With MCP Inspector

bash
# Direct command
npx @modelcontextprotocol/inspector mcpmon node server.js

# With environment variables
API_KEY=your-key npx @modelcontextprotocol/inspector mcpmon node server.js

With Claude Code or Claude Desktop

Easiest way: Use the automatic setup command for existing servers:

bash
# Setup hot-reload for an existing server
mcpmon setup my-server

# Setup all stdio servers for hot-reload
mcpmon setup --all

# List available servers
mcpmon setup --list

# Restore original config if needed
mcpmon setup --restore

The setup command automatically:

  • ✅ Backs up your original configuration
  • ✅ Detects and uses modern Node.js versions for compatibility
  • ✅ Wraps your server command with mcpmon
  • ✅ Preserves all environment variables and arguments
  • ✅ Enables hot-reload instantly
  • ✅ Idempotent - safe to run multiple times

🔥 Claude Desktop Hot-Reload Tips

After setting up hot-reload:

  • Code changes: Your server automatically restarts - no action needed!
  • Schema changes (new tools/resources): Toggle the MCP server off/on in Claude Desktop settings
    • Go to Claude Desktop Settings → Features → Model Context Protocol
    • Toggle your server off, then back on
    • No restart needed - just the toggle!
  • Config changes: Restart Claude Desktop only if you modify the configuration file directly

Pro tip: For the best development experience, make code changes first, then schema changes. Claude Desktop will pick up tool calls from the latest hot-reloaded code even after schema updates!

Manual configuration: You can also manually update your config:

Claude Code (~/.claude_code_config):

json
{
  "mcpServers": {
    "my-server": {
      "command": "mcpmon",
      "args": ["node", "server.js"],
      "env": {
        "API_KEY": "your-key"
      }
    }
  }
}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "my-server": {
      "command": "/Users/username/.nvm/versions/node/v22.15.0/bin/node",
      "args": ["/usr/local/bin/mcpmon", "python", "server.py"],
      "env": {
        "PYTHONPATH": "/path/to/your/modules"
      }
    }
  }
}

Note: The setup command automatically detects your latest Node.js version and mcpmon path. The above shows what the generated config looks like - you rarely need to write this manually!

Configuration

mcpmon works out of the box with zero configuration. It automatically detects your server file and starts watching for changes.

To watch additional files:

bash
# Watch multiple files
MCPMON_WATCH="server.js,config.json" mcpmon node server.js

That's it! mcpmon is designed to work with zero configuration.

Environment Variables

  • MCPMON_WATCH - Override files/directories to watch (comma-separated)
  • MCPMON_DELAY - Restart delay in milliseconds (default: 1000)
  • MCPMON_VERBOSE - Enable verbose logging

How It Works

mcpmon acts as a transparent proxy between your MCP client and server, providing automatic hot-reload capabilities:

The magic: Your MCP client stays connected while your server reloads. No need to reconnect Claude Code or restart MCP Inspector!

FeatureWithout mcpmonWith mcpmon
File changesManual restart requiredAutomatic restart
Client connectionMust reconnectStays connected
Lost messagesPossibleNever (buffered)
Setup complexityManual config changesJust add mcpmon

Need Help?

Enable verbose logging to see what's happening:

bash
MCPMON_VERBOSE=1 mcpmon node server.js

Common issues:

  • "ReadableStream is not defined"? mcpmon requires Node.js 16+. Use mcpmon setup to auto-detect modern Node.js versions
  • Server won't start? Check the error messages for missing dependencies
  • No hot reload? Verify your server file is being detected in the logs
  • Schema changes not visible? Toggle your MCP server off/on in Claude Desktop settings
  • Need help? See our Troubleshooting Guide

Development

bash
# Run tests (includes clean and build)
npm test

# Development mode
npm run dev

See Contributing Guide for more details.

Installation

Requirements: Node.js 16+ (automatically detected by setup command)

bash
# Install globally (recommended)
npm install -g mcpmon

# Or use without installing
npx mcpmon node server.js

Contributing

We welcome contributions! See Contributing Guide for details.

Documentation

License

MIT License - see LICENSE file for details.


Like nodemon? You'll love mcpmon. Simple, fast, and reliable hot-reload for MCP development.

Use MCP Hot-Reload MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Hot-Reload is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP Hot-Reload as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP Hot-Reload MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcpmon": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP Hot-Reload MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP Hot-Reload MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Hot-Reload to help me with this task?
MCP Hot-Reload
Sure. I read it.
Here is what I found using MCP Hot-Reload.

Frequently asked questions

What is the MCP Hot-Reload MCP server used for?

MCP Hot-Reload is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Hot-Reload MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Hot-Reload with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Hot-Reload MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Hot-Reload connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Hot-Reload MCP to TypingMind?

MCP Hot-Reload runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP Hot-Reload MCP provide in TypingMind?

MCP Hot-Reload exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Hot-Reload MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Hot-Reload requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇