Ring MCP Server
Enables control of Ring home security devices, including doorbells, cameras, lights, and alarm systems, through MCP-compatible clients like Claude Desktop.
README
Ring MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Ring home security devices. Control your Ring doorbells, cameras, lights, and alarm systems through MCP-compatible clients like Claude Desktop.
🚀 Features
- Device Management: List and get detailed information about all Ring devices
- Security Control: Arm/disarm Ring alarm systems with different modes
- Camera Operations: Capture snapshots from Ring cameras
- Light Control: Turn Ring lights on/off
- Real-time Monitoring: Monitor doorbell presses, motion detection, and other Ring events
- Smart Authentication: Automatic token management with multiple authentication methods
- Auto Token Updates: Maintains push notifications by automatically updating refresh tokens
📋 Prerequisites
- Node.js 18+ and npm
- Ring Account with Two-Factor Authentication (2FA) enabled
- MCP Client like Claude Desktop or other MCP-compatible applications
⚡ Quick Start
1. Installation
git clone https://github.com/jpcors/ring-mcp
cd ring-mcp-server
npm install
npm run build
2. First Run (Interactive Authentication)
npm start
On first run, the server will automatically prompt you to authenticate with Ring:
- Enter your Ring email and password
- Provide the 2FA code when prompted
- The server will save your refresh token automatically
3. Use with Claude Desktop
Add this to your Claude Desktop MCP configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ring": {
"command": "node",
"args": ["/path/to/ring-mcp-server/build/index.js"],
"env": {}
}
}
}
🔐 Authentication Options
The server supports multiple authentication methods (checked in priority order):
Option 1: Command Line Token
npm start -- --token="your_refresh_token_here"
Option 2: Environment Variable
export RING_REFRESH_TOKEN="your_refresh_token"
npm start
Option 3: Automatic Config File
- Tokens are automatically saved to
ring-config.json - Updated tokens are automatically saved to maintain push notifications
Option 4: Interactive Authentication
- If no token is found, the server runs
ring-auth-cliautomatically - Follow the prompts to enter your Ring credentials
Manual Authentication
# Generate token manually
npm run auth
# Then start server
npm start
🛠️ Available MCP Tools
Once connected to your MCP client, you can use these tools:
list_devices
Lists all Ring devices in your account with basic information.
get_device_info
Get detailed information about a specific Ring device.
- Parameters:
deviceId(string)
arm_disarm_alarm
Control your Ring alarm system.
- Parameters:
locationId(string) - The location ID where the alarm is locatedmode(string) -home,away, ordisarmed
get_camera_snapshot
Capture a snapshot from a Ring camera.
- Parameters:
deviceId(string) - The camera device ID
turn_light_on_off
Control Ring light devices.
- Parameters:
deviceId(string) - The light device IDon(boolean) -trueto turn on,falseto turn off
monitor_events
Monitor real-time Ring events for a specified duration.
- Parameters:
duration(number, optional) - Duration in seconds (default: 30) - Returns: List of events including doorbell presses, motion detection, and notifications
⚙️ Configuration
Development Commands
npm run build # Compile TypeScript
npm run dev # Development mode with watch
npm start # Start the MCP server
npm run auth # Manual Ring authentication
npm run help # Show usage help
npm test # Run tests
Configuration Files
ring-config.json- Automatically managed token storage.env- Optional environment variablespackage.json- Project dependencies and scriptstsconfig.json- TypeScript configuration
🔒 Security Considerations
- Token Security: Refresh tokens provide full access to your Ring account
- Local Storage: Tokens are stored locally in
ring-config.json - Auto-Updates: Tokens are automatically updated to maintain security
- Gitignore: Sensitive files are excluded from version control
Important Notes:
- Never share your refresh tokens
- The
ring-config.jsonfile contains sensitive authentication data - Automatic token updates are critical for maintaining push notifications
🚨 Troubleshooting
Push Notifications Not Working
This usually means tokens aren't being updated properly:
- Check if
ring-config.jsonexists and has recentlastUpdatedtimestamp - Restart the server to trigger token refresh
- If problems persist, delete
ring-config.jsonand re-authenticate
Authentication Fails
- Ensure 2FA is enabled on your Ring account
- Check your email/password credentials
- Verify you have an active internet connection
- Try manual authentication:
npm run auth
Device Not Found
- Use
list_devicesto get correct device IDs - Ensure the device is online in the Ring app
- Check that your Ring account has access to the device
MCP Connection Issues
- Verify the path in your MCP client configuration
- Ensure the server compiled successfully:
npm run build - Check MCP client logs for connection errors
🔧 Development
Project Structure
src/
index.ts # Main MCP server implementation
package.json # Dependencies and scripts
tsconfig.json # TypeScript configuration
ring-config.json # Auto-generated token storage
.env # Optional environment variables
Key Architecture Components
- RingMCPServer: Main server class handling MCP protocol
- Token Management: Multi-tier authentication system
- Ring API Integration: Uses
ring-client-apilibrary - Event Monitoring: Real-time Ring event subscriptions
Building and Testing
npm install # Install dependencies
npm run build # Compile TypeScript
npm run dev # Development with watch mode
npm start -- --help # Show usage options
⚠️ Disclaimer
This is an unofficial integration using the community-driven ring-client-api library. It is not affiliated with or endorsed by Ring/Amazon. Use at your own risk and in accordance with Ring's Terms of Service.
🙏 Acknowledgments
- dgreif/ring - The Ring API library
- Model Context Protocol - The MCP specification
- Ring community for reverse-engineering efforts
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。