| Crates.io | claude-sensors |
| lib.rs | claude-sensors |
| version | 0.3.0 |
| created_at | 2026-01-07 02:26:02.170824+00 |
| updated_at | 2026-01-07 17:11:17.443719+00 |
| description | Cross-platform environmental awareness for AI assistants - a suite of MCP servers |
| homepage | |
| repository | https://github.com/sqrew/claude-sensors |
| max_upload_size | |
| id | 2027309 |
| size | 154,127 |
Cross-platform environmental awareness for AI assistants. A suite of MCP servers that let Claude (or any MCP-compatible AI) perceive your local environment.
A collection of lightweight MCP (Model Context Protocol) servers that expose system information to AI assistants. Each server is standalone, cross-platform, and built in Rust.
Together, they transform Claude from "chatbot in a terminal" to "ambient presence aware of your environment."
cargo install claude-sensors
This gives you all 14 tools in a single binary.
If you only need specific sensors:
cargo install rmcp-idle # User idle time detection
cargo install rmcp-display # Monitor/display info
cargo install rmcp-network # Network interfaces
cargo install rmcp-usb # USB devices
cargo install rmcp-battery # Battery/power status
cargo install rmcp-bluetooth # BLE device scanner
cargo install rmcp-git # Git repository info
cargo install rmcp-sysinfo # CPU, memory, disk, processes
cargo install rmcp-weather # Weather conditions and forecast
| Server | Tools | What It Sees |
|---|---|---|
| rmcp-display | get_display_info |
Monitors, resolutions, refresh rates, physical sizes |
| rmcp-idle | get_idle_time, is_idle_for |
Time since last keyboard/mouse input |
| rmcp-network | get_interfaces |
Network interfaces, IPs, MACs |
| rmcp-usb | get_usb_devices |
Connected USB devices with vendor/product info |
| rmcp-battery | get_battery_status |
Charge level, power state, health, temperature |
| rmcp-bluetooth | scan_ble_devices |
Nearby Bluetooth Low Energy devices |
| rmcp-git | get_status, get_log |
Repo branch, commits, uncommitted changes |
| rmcp-sysinfo | get_system_info, get_disk_info, get_top_processes |
CPU, memory, disk, uptime, processes |
| rmcp-weather | get_weather, get_forecast |
Current conditions and multi-day forecast |
Here's what Claude sees when using these sensors:
System Information:
CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 cores)
CPU Usage: 12.3%
Memory: 5.2 GB / 46.8 GB (11%)
Swap: 0 B / 0 B
Disk: 105.2 GB / 333.5 GB free
Uptime: 35h 25m
Load Average: 1.80 2.04 1.83 (1m 5m 15m)
User Idle Time:
Raw: 847 seconds
Formatted: 14m 7s
USB Devices:
1. USB Optical Mouse
Manufacturer: Logitech
Vendor ID: 046d, Product ID: c077
Bus: 1, Device: 27
2. Xbox Series X Controller
Manufacturer: BDA
Vendor ID: 20d6, Product ID: 2001
Bus: 1, Device: 7
3. Huion Tablet_H1161
Manufacturer: HUION
Vendor ID: 256c, Product ID: 0064
Bus: 1, Device: 6
Total: 10 USB devices
Weather for Portland, Maine:
Conditions: Partly cloudy
Temperature: 28°F / -2°C
Feels like: 21°F / -6°C
Humidity: 65%
Wind: 8 mph NW
UV Index: 1
Add to your Claude Code config (~/.claude.json):
{
"mcpServers": {
"sensors": {
"type": "stdio",
"command": "claude-sensors",
"args": [],
"env": {}
}
}
}
Or for individual sensors:
{
"mcpServers": {
"idle": {
"type": "stdio",
"command": "rmcp-idle",
"args": [],
"env": {}
}
}
}
AI assistants are blind. They don't know if you're at your computer or away. They can't see your network, your devices, or your environment. They respond when prompted and sit idle otherwise.
These sensors change that. An AI with environmental awareness can:
It's the foundation for proactive AI — assistants that exist in your space, not just your chat window.
rmcp crate| Sensor | Crate | Notes |
|---|---|---|
| Display | display-info |
X11, Wayland, Win32, macOS |
| Idle | user-idle |
X11, Win32, macOS |
| Network | network-interface |
All platforms |
| USB | nusb |
Pure Rust, no libusb |
| Battery | battery |
All platforms |
| Bluetooth | btleplug |
BLE on all platforms |
| Git | git2 |
libgit2 bindings |
| System | sysinfo |
All platforms |
| Weather | reqwest |
wttr.in API |
git clone https://github.com/sqrew/claude-sensors
cd claude-sensors
cargo build --release
# Unified binary at target/release/claude-sensors
# Individual binaries in crates/*/target/release/
rmcp — The Rust MCP framework these servers are built onrmcp-breakrs — Desktop reminder/timer MCP serverrmcp-i3 — i3 window manager control via MCPMIT
Built with Claude. For Claude. By sqrew.