AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Mcpmon

mcp-neilopet-mcpmon · by neilopet

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

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add mcp-neilopet-mcpmon

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-neilopet-mcpmon)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mcpmon? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcpmon

[](https://nodejs.org/) [](https://opensource.org/licenses/MIT) [](./tests/) [](https://prettier.io/)

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 ``

  1. 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 ```

  1. 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

# 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

# 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:

# 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):

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

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.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:

# 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:

sequenceDiagram
    participant Client as MCP Client
    participant mcpmon
    participant Server as MCP Server
    
    Client->>mcpmon: Request
    mcpmon->>Server: Request
    Server->>mcpmon: Response
    mcpmon->>Client: Response
    
    Server->>Server: File changed
    Note right of Server: Auto restart
    
    Client->>mcpmon: Request
    mcpmon->>Server: Request
    Server->>mcpmon: Response
    mcpmon->>Client: Response

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

| Feature | Without mcpmon | With mcpmon | |---------|---------|---------| | File changes | Manual restart required | Automatic restart | | Client connection | Must reconnect | Stays connected | | Lost messages | Possible | Never (buffered) | | Setup complexity | Manual config changes | Just add mcpmon |

Need Help?

Enable verbose logging to see what's happening:

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](TROUBLESHOOTING.md)

Development

# Run tests (includes clean and build)
npm test

# Development mode
npm run dev

See [Contributing Guide](CONTRIBUTING.md) for more details.

Installation

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

# Install globally (recommended)
npm install -g mcpmon

# Or use without installing
npx mcpmon node server.js

Contributing

We welcome contributions! See [Contributing Guide](CONTRIBUTING.md) for details.

Documentation

  • [API Documentation](docs/api.md) - Library usage and advanced features
  • [Architecture Guide](docs/architecture.md) - How mcpmon works internally
  • [Testing Guide](docs/testing.md) - Test architecture and patterns
  • [Troubleshooting Guide](TROUBLESHOOTING.md) - Common issues and solutions
  • [Contributing Guide](CONTRIBUTING.md) - How to contribute
  • [Changelog](CHANGELOG.md) - Version history and changes

License

MIT License - see [LICENSE](LICENSE) file for details.


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

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.