Add Home Security MCP Server for cameras and smart locks#3
Draft
nfaggian wants to merge 1 commit into
Draft
Conversation
Implements a comprehensive MCP (Model Context Protocol) server for home security automation with the following features: Cameras: - List and manage multiple security cameras - Start/stop recording, capture snapshots - Configure motion detection with sensitivity levels - Get streaming URLs (RTSP) - View motion events and recordings - Storage management Smart Locks: - Lock/unlock front door remotely - PIN code access with validation - Manage access codes (add, remove, deactivate) - Time-restricted and one-time codes - Access logging with audit trail - Auto-lock configuration - Tamper detection alerts - Battery status monitoring Security: - Centralized alert system - Multiple failed attempt detection - Event acknowledgment workflow Server: - FastMCP-based with tools and resources - Supports stdio and SSE transports - Pre-defined prompts for common tasks - Demo data for testing Also includes: - Comprehensive test suite (37 tests) - Updated README with usage documentation - Python 3.12+ support Co-authored-by: Nathan Faggian <nathan.faggian@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a comprehensive MCP (Model Context Protocol) server for home security automation, enabling AI agents to manage security cameras and smart door locks.
Features
Camera Management
Smart Lock Management
Security Features
MCP Server
Files Changed
src/mcp_servers/home_security/server.pysrc/mcp_servers/home_security/camera.pysrc/mcp_servers/home_security/lock.pysrc/mcp_servers/home_security/models.pytests/test_home_security_mcp.pyREADME.mdpyproject.tomlmcpdependency, Python 3.12+ supportUsage
Claude Desktop Integration
{ "mcpServers": { "home-security": { "command": "python", "args": ["-m", "src.mcp_servers.home_security.server"], "cwd": "/path/to/this/project" } } }Testing
All 37 tests pass:
Demo Data
The server includes demo devices for testing: