npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hemla/hanwha-mcp

v0.3.1

Published

MCP server for configuring Hanwha Vision IP cameras via SUNAPI

Readme

Hanwha Vision Camera MCP Server

npm CI License: GPL-3.0

MCP server for configuring Hanwha Vision (Wisenet) IP cameras. Connects via SUNAPI and exposes 30+ tools for device info, live snapshots, video profiles, image tuning, overlays, OSD, NTP, network, events, security, and storage management.

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "Hanwha": {
      "command": "npx",
      "args": ["-y", "@hemla/[email protected]"]
    }
  }
}

Restart Claude Desktop after adding.

Usage

Once installed, ask your AI assistant to connect to a camera:

"Connect to my Hanwha camera at 192.168.1.100 with username admin and password mypass"

Then interact naturally:

"Take a snapshot"

"Show me all video profiles"

"Set the title overlay to Building A - Lobby"

"What are the current image settings?"

"Configure NTP to use pool.ntp.org"

"Enable tampering detection with 80% sensitivity"

Tools

Connection

| Tool | Description | Parameters | |---|---|---| | connect_camera | Connect to a camera (required first) | host, username, password, port? (default 80) |

Device & Snapshots

| Tool | Description | Parameters | |---|---|---| | get_device_info | Model, serial, firmware, video profiles | — | | get_snapshot | Live JPEG snapshot (auto-resized) | channel?, profile?, maxWidth? (default 1280) |

Video Profiles

| Tool | Description | Parameters | |---|---|---| | get_video_profiles | List all profiles with encoding, resolution, FPS, bitrate | channel? | | set_video_profile | Update profile encoding, resolution, FPS, bitrate, codec settings | channel?, profile, name?, encodingType?, resolution?, frameRate?, bitrate?, bitrateControlType?, govLength? | | add_video_profile | Add a new video profile | channel?, name, encodingType, resolution, frameRate, bitrate | | remove_video_profile | Remove a video profile | channel?, profile |

Image Settings

| Tool | Description | Parameters | |---|---|---| | get_image_settings | Brightness, sharpness, white balance, exposure, SSDR, flip, IR | channel? | | set_image_settings | Adjust brightness, sharpness, gamma, saturation | channel?, brightness? (0-100), sharpness?, gamma?, saturation? (0-100) | | set_flip | Image flip and rotation | channel?, horizontalFlip?, verticalFlip?, rotate? (Off/90/180/270) | | set_ir_led | IR LED mode | channel?, mode (Auto/Off/On) | | set_focus | Focus mode | channel?, mode (SimpleAutoFocus/ManualFocus) |

White Balance & SSDR

| Tool | Description | Parameters | |---|---|---| | get_white_balance | White balance mode and manual levels | channel? | | set_white_balance | Set mode and optional manual red/blue levels | channel?, mode (ATW/Indoor/Outdoor/Manual), manualRedLevel?, manualBlueLevel? | | get_ssdr | SSDR enable, level, dynamic range | channel? | | set_ssdr | Configure SSDR | channel?, enable?, level?, dynamicRange? (Narrow/Wide) |

Privacy Mask

| Tool | Description | Parameters | |---|---|---| | get_privacy_mask | Privacy mask status and color | channel? | | set_privacy_mask | Enable/disable and set color | channel?, enable?, maskColor? (Gray/White/Black/Red/Blue/Green) |

Overlays & OSD

| Tool | Description | Parameters | |---|---|---| | get_overlay | Title and time overlay settings | channel? | | set_overlay | Configure title text, time format, font | channel?, titleEnable?, title?, titlePositionX?, titlePositionY?, timeEnable?, timeFormat?, weekdayEnable?, fontSize? | | get_osd_list | List multiline OSD entries | channel? | | set_osd | Add/update OSD entry | channel?, index (1-8), enable?, osdType?, text?, positionX?, positionY?, fontSize?, osdColor?, transparency? | | remove_osd | Delete an OSD entry | channel?, index |

Date, Time & NTP

| Tool | Description | Parameters | |---|---|---| | get_datetime | Time, timezone, DST, NTP config | — | | set_ntp | Configure NTP servers | servers (comma-separated) | | set_datetime | Set time manually (disables NTP) | year, month, day, hour, minute, second? |

Event Detection

| Tool | Description | Parameters | |---|---|---| | get_tampering_detection | Tampering detection settings | channel? | | set_tampering_detection | Configure tampering detection | channel?, enable?, sensitivityLevel?, thresholdLevel?, duration?, darknessDetection? | | get_defocus_detection | Defocus detection settings | channel? | | set_defocus_detection | Configure defocus detection | channel?, enable?, sensitivity?, thresholdLevel?, duration? |

Event Rules

| Tool | Description | Parameters | |---|---|---| | get_event_rules | List all event rules | — | | set_event_rule | Enable/disable an event rule | ruleIndex, enable? |

Network

| Tool | Description | Parameters | |---|---|---| | get_network_info | MAC, link status, DNS | — | | get_network_config | Full config: IP, gateway, hostname, ports | — | | set_network_config | Update interface settings | ipv4Type? (DHCP/Static), ipv4Address?, ipv4SubnetMask?, ipv4Gateway?, hostname? |

Security & Users

| Tool | Description | Parameters | |---|---|---| | get_users | List camera users with admin/enabled status | — | | create_user | Create a new user account | username, password, role? (admin/user/viewer, default viewer) | | update_user | Update a user's password or role | username, password?, role? | | remove_user | Remove a user account | username |

Storage & Recording

| Tool | Description | Parameters | |---|---|---| | get_storage_config | Storage enable, overwrite, auto-delete | — | | set_storage_config | Configure storage settings | enable?, overwrite?, autoDeleteEnable?, autoDeleteDays? |

System

| Tool | Description | Parameters | |---|---|---| | get_logs | System, access, or event logs | type (system/access/event) | | reboot_camera | Reboot the camera | — |

All read-only tools are annotated for automatic approval. Write tools are marked as non-destructive and idempotent. Only reboot_camera, remove_osd, remove_video_profile, and remove_user require confirmation.

Compatibility

Works with Hanwha Vision cameras that expose SUNAPI (/stw-cgi/) endpoints, including Wisenet X, P, Q, A, and L series.

Development

git clone https://github.com/hemla-com/hanwha-mcp.git
cd hanwha-mcp
npm install
npm run dev

# Run tests
npm test

# Run with coverage
npm run test:coverage

License

Copyright (c) 2026 Hemla. Licensed under GPL-3.0.

Derivative works must use the same license and acknowledge Hemla as the original author.