Skip to main content
Glama

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/hanwha-mcp@0.3.1"]
    }
  }
}

Restart Claude Desktop after adding.

Related MCP server: Frigate MCP Server

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 (fixed slot system, max 10 users)

username, password, enabled? (default true)

update_user

Update a user's password or enabled status

username, password?, enabled?

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.

Available Tools

43 tools
add_video_profileC
Idempotent

Add a new video profile.

Inputs: name (required), bitrate (required), frameRate (required), resolution (required), +2 more.

connect_cameraA
Idempotent

Connect to a Hanwha Vision IP camera via SUNAPI. Must be called before other tools.

Inputs: host (required), password (required), username (required), port.

create_userB
Idempotent

Create a new user account on the camera. Requires a free user slot (camera has a fixed number of slots).

Inputs: password (required), username (required), enabled.

get_datetimeA
Read-onlyIdempotent

Get current date/time, timezone, DST, and NTP configuration.

Inputs: no named parameters.

get_defocus_detectionC
Read-onlyIdempotent

Get defocus detection settings.

Inputs: channel.

get_device_infoC
Read-onlyIdempotent

Get device info and video profiles from the connected camera.

Inputs: no named parameters.

get_event_rulesA
Read-onlyIdempotent

List all event rules with name, source, enabled status, and schedule.

Inputs: no named parameters.

get_image_settingsA
Read-onlyIdempotent

Get all image settings: brightness, sharpness, white balance, exposure, SSDR, flip, IR LED.

Inputs: channel.

get_logsC
Read-onlyIdempotent

Retrieve camera logs.

Inputs: type (required).

get_network_configA
Read-onlyIdempotent

Get comprehensive network config: IP, gateway, hostname, ports.

Inputs: no named parameters.

get_network_infoB
Read-onlyIdempotent

Get network configuration: IP, MAC, DNS.

Inputs: no named parameters.

get_osd_listC
Read-onlyIdempotent

List all multiline OSD entries on the camera.

Inputs: channel.

get_overlayB
Read-onlyIdempotent

Get overlay settings (title, time, font).

Inputs: channel.

get_privacy_maskB
Read-onlyIdempotent

Get privacy mask status and color.

Inputs: channel.

get_snapshotA
Read-onlyIdempotent

Capture a live JPEG snapshot from the connected camera.

Inputs: channel, profile, maxWidth.

get_ssdrB
Read-onlyIdempotent

Get SSDR (Samsung Super Dynamic Range) settings.

Inputs: channel.

get_storage_configA
Read-onlyIdempotent

Get storage/recording configuration (enable, overwrite, auto-delete).

Inputs: no named parameters.

get_tampering_detectionC
Read-onlyIdempotent

Get tampering detection settings.

Inputs: channel.

get_usersA
Read-onlyIdempotent

List camera users with enabled status. Hanwha cameras have a fixed number of user slots.

Inputs: no named parameters.

get_video_profilesB
Read-onlyIdempotent

Get all video profiles with encoding, resolution, FPS, bitrate, and codec settings.

Inputs: channel.

get_white_balanceB
Read-onlyIdempotent

Get white balance mode and manual red/blue levels.

Inputs: channel.

reboot_cameraB
Destructive

Reboot the connected camera.

Inputs: no named parameters.

remove_osdC
Destructive

Remove a multiline OSD entry.

Inputs: index (required), channel.

remove_userB
Destructive

Remove a user account from the camera.

Inputs: username (required).

remove_video_profileC
Destructive

Remove a video profile.

Inputs: profile (required), channel.

set_datetimeA
Idempotent

Manually set camera date and time (disables NTP).

Inputs: day (required), hour (required), year (required), month (required), +2 more.

set_defocus_detectionC
Idempotent

Configure defocus detection enable, sensitivity, threshold, duration.

Inputs: enable, channel, duration, sensitivity, +1 more.

set_event_ruleC
Idempotent

Enable or disable an event rule.

Inputs: ruleIndex (required), enable.

set_flipC
Idempotent

Set image flip and rotation.

Inputs: rotate, channel, verticalFlip, horizontalFlip.

set_focusC
Idempotent

Set camera focus mode.

Inputs: mode (required), channel.

set_image_settingsC
Idempotent

Adjust image enhancements: brightness, sharpness, gamma, saturation.

Inputs: gamma, channel, sharpness, brightness, +1 more.

set_ir_ledC
Idempotent

Set IR LED mode.

Inputs: mode (required), channel.

set_network_configC
Idempotent

Update network interface: IPv4 type, address, subnet, gateway, hostname.

Inputs: hostname, ipv4Type, ipv4Address, ipv4Gateway, +1 more.

set_ntpC
Idempotent

Configure NTP time synchronization.

Inputs: servers (required).

set_osdB
Idempotent

Add or update a multiline OSD entry.

Inputs: index (required), text, enable, channel, +6 more.

set_overlayC
Idempotent

Configure overlay: title text, time display, font size.

Inputs: title, channel, fontSize, timeEnable, +5 more.

set_privacy_maskC
Idempotent

Enable/disable privacy mask and set color.

Inputs: enable, channel, maskColor.

set_ssdrC
Idempotent

Configure SSDR enable/disable, level, and dynamic range.

Inputs: level, enable, channel, dynamicRange.

set_storage_configC
Idempotent

Configure storage settings: enable, overwrite, auto-delete.

Inputs: enable, overwrite, autoDeleteDays, autoDeleteEnable.

set_tampering_detectionC
Idempotent

Configure tampering detection enable, sensitivity, threshold, duration.

Inputs: enable, channel, duration, thresholdLevel, +2 more.

set_video_profileB
Idempotent

Update a video profile's encoding, resolution, FPS, bitrate, or codec settings.

Inputs: profile (required), name, bitrate, channel, +5 more.

set_white_balanceC
Idempotent

Set white balance mode and optional manual red/blue levels.

Inputs: mode (required), channel, manualRedLevel, manualBlueLevel.

update_userA
Idempotent

Update an existing user's password or enabled status. Internally removes and re-adds the user.

Inputs: username (required), enabled, password.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 43 tools

    Disambiguation3/5

    Many tools form clear get/set pairs for distinct camera settings, but several umbrella tools overlap with more specific ones. get_device_info includes video profiles while get_video_profiles exists separately, get_image_settings overlaps with get_white_balance, get_ssdr, set_flip, and set_ir_led, and get_network_config versus get_network_info is ambiguous.

    Naming Consistency5/5

    Tool names consistently use snake_case verb_noun patterns such as get_device_info, set_image_settings, add_video_profile, remove_user, and reboot_camera. Minor awkwardness in get_osd_list does not break the overall convention.

    Tool Count2/5

    The camera domain legitimately has many settings, but 43 tools is excessive for a well-scoped MCP surface. Many granular get/set pairs could be consolidated into fewer tools with grouped parameters.

    Completeness4/5

    The surface covers core camera operations well: connection, snapshots, image/network/video profiles, users, storage, OSD, time, events, logs, and reboot. Gaps remain around PTZ, motion detection, audio, firmware, and creating/deleting event rules rather than only enabling or disabling them.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to interact with Frigate NVR security camera systems, supporting camera management, event detection, snapshots, recordings, and system stats via natural language.
      7
      14
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables LLMs to list, inspect, snapshot, and control Scrypted home-automation/NVR devices such as switches, locks, and cameras through natural language.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query and interact with Extra Low Voltage security hardware such as Hikvision and Dahua cameras and NVRs through typed, read-only-by-default MCP tools for device info, channel enumeration, and JPEG snapshot capture. Translates proprietary ISAPI and CGI protocols into safe, auditable calls that any MCP client can use over stdio.
      MIT