Redalert MCP Server
MCP server for Israel's RedAlert emergency alert system - real-time alerts, statistics, shelter search, and city data
Ask AI about Redalert MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Redalert MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
RedAlert MCP Server
An MCP (Model Context Protocol) server for Israel's RedAlert emergency alert system. Provides real-time rocket alerts, historical statistics, shelter search, and city data through 12 MCP tools.
Features
- Real-time alerts via Socket.IO with buffered polling model
- Historical statistics - summaries, per-city stats, alert history, distribution
- Shelter search - find nearby shelters by coordinates or city name
- City catalog - lookup cities with translations, coordinates, and countdown times
- Test mode - connect to the test server for simulated alerts
Tools
REST API Tools (8)
| Tool | Description |
|---|---|
get_active_alerts | Real-time snapshot of cities currently under alert |
get_stats_summary | Alert totals, top cities/zones/origins, timeline, peak hour |
get_stats_cities | Per-city alert statistics with pagination and search |
get_stats_history | Historical alert records with city filtering |
get_stats_distribution | Alert distribution by category or origin |
search_shelters | Find nearby shelters by coordinates or city name |
get_cities | City catalog with translations, coordinates, countdown |
health_check | API health check |
Real-time Tools (4)
| Tool | Description |
|---|---|
subscribe_alerts | Connect to Socket.IO and start receiving alerts |
poll_alerts | Retrieve buffered alerts (peek or acknowledge) |
unsubscribe_alerts | Disconnect and clear buffer |
get_alert_subscription_status | Check connection state and buffer size |
Setup
Prerequisites
- Node.js 18+
- A RedAlert API key (get one at redalert.orielhaim.com)
Configure in Claude Code
Add to ~/.claude.json under your project's mcpServers:
{
"redalert": {
"type": "stdio",
"command": "npx",
"args": ["-y", "redalert-mcp-server"],
"env": {
"REDALERT_API_KEY": "your-api-key-here"
}
}
}
Configure in Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"redalert": {
"command": "npx",
"args": ["-y", "redalert-mcp-server"],
"env": {
"REDALERT_API_KEY": "your-api-key-here"
}
}
}
}
Usage Examples
Once configured, you can ask Claude:
- "Show me active alerts right now"
- "Find all missile alerts in Kfar Saba in the last 24 hours"
- "Search for shelters near Tel Aviv"
- "Get alert statistics summary with top cities"
- "Subscribe to test alerts and poll for updates"
- "Compare missile alerts between Kfar Saba and Shoham in the last 2 months"
Example: City Comparison
Prompt: "Compare the missile alerts in the last 2 months between Kfar Saba and Shoham"
ββββββββββββββββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ
β β Kfar Saba β Shoham β
ββββββββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Zone β Sharon β Yarkon β
ββββββββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Missile alerts β 64 β 77 β
ββββββββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Total alerts (all types) β 205 β 217 β
ββββββββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Last missile alert β Mar 14, 12:43 β Mar 13, 21:22 β
ββββββββββββββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ
Shoham had ~20% more missile alerts than Kfar Saba over this period (77 vs 64).
Both cities had a similar ratio of missile alerts to total alerts (~31-35%).
Claude automatically uses get_stats_cities and get_stats_history to gather and compare data across cities.
Example: Weekly Alert Summary (Hebrew)
Prompt: "ΧͺΧ¨ΧΧ ΧΧ ΧΧͺ ΧΧ ΧΧΧͺΧ¨ΧΧΧͺ Χ©ΧΧΧ ΧΧΧ€Χ¨ Χ‘ΧΧ ΧΧ©ΧΧΧ’ ΧΧΧΧ¨ΧΧ"
ΧΧ Χ ΧΧ ΧΧΧͺΧ¨ΧΧΧͺ ΧΧΧ€Χ¨ Χ‘ΧΧ ΧΧ©ΧΧΧ’ ΧΧΧΧ¨ΧΧ (7-14 ΧΧΧ¨Χ₯):
| ΧͺΧΧ¨ΧΧ ΧΧ©Χ’Χ (UTC) | Χ‘ΧΧ ΧΧͺΧ¨ΧΧ |
|-------------------|----------------------|
| 14/3, 13:04 | ΧΧΧΧΧ |
| 14/3, 12:43 | ΧΧΧΧΧ |
| 14/3, 12:39 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 14/3, 00:30 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 13/3, 21:22 | ΧΧΧΧΧ |
| 13/3, 17:31 | ΧΧΧΧΧ |
| 13/3, 17:26 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 13/3, 14:58 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 13/3, 11:26 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 13/3, 08:49 | ΧΧΧΧ¨Χͺ ΧΧΧ ΧΧΧ‘ Χ’ΧΧΧ |
| 12/3, 19:42 | ΧΧΧΧΧ |
| 12/3, 19:38 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 12/3, 15:19 | ΧΧΧΧ¨Χͺ ΧΧΧ ΧΧΧ‘ Χ’ΧΧΧ |
| 12/3, 13:03 | ΧΧΧΧΧ |
| 12/3, 12:57 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 12/3, 07:22 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
| 12/3, 02:13 | ΧΧΧΧΧ |
| 12/3, 02:07 | ΧΧΧΧ’Χ ΧΧ§ΧΧΧΧ |
Χ‘ΧΧΧΧ ΧΧ©ΧΧΧ’ ΧΧΧ€Χ¨ Χ‘ΧΧ:
- 8 ΧΧͺΧ¨ΧΧΧͺ ΧΧΧΧΧ
- 8 ΧΧΧΧ’ΧΧͺ ΧΧ§ΧΧΧΧΧͺ
- 2 ΧΧΧΧ¨ΧΧͺ ΧΧΧ ΧΧΧ‘ Χ’ΧΧΧ
Claude uses get_stats_history with Hebrew city search, automatically filtering results to show only Kfar Saba. Works in any language.
Example: Nearest Shelters
Prompt: "ΧͺΧ¨ΧΧ ΧΧ ΧΧͺ Χ©ΧΧΧ©Χͺ ΧΧΧ§ΧΧΧΧ ΧΧΧ Χ§Χ¨ΧΧΧΧ ΧΧͺΧΧΧΧ¨ΧΧ ΧΧΧΧΧ ΧΧͺΧ ΧΧΧΧ"
Χ©ΧΧΧ©Χͺ ΧΧΧ§ΧΧΧΧ ΧΧ§Χ¨ΧΧΧΧ ΧΧΧΧͺΧ¨ ΧΧͺΧΧΧΧ¨ΧΧ ΧΧΧΧΧ:
| # | ΧΧ¨ΧΧ§ | ΧΧͺΧΧΧͺ | Χ©Χ | Χ‘ΧΧ | Χ©ΧΧ |
|---|--------|---------------------------|----------------------|----------------------|-----------|
| 1 | 143 Χ' | ΧΧΧΧ¨ΧΧ 4 (ΧΧΧΧ¨ ΧΧΧΧΧ) | ΧΧΧΧΧ/Χ©Χ' ΧΧ Χ¦ΧΧΧ | ΧΧ§ΧΧ ΧΧ©ΧΧ ΧΧ ΧΧΧ | 2,000 Χ"Χ¨ |
| 2 | 154 Χ' | ΧΧΧΧ¨ΧΧ 1 | ΧΧΧΧ ΧΧͺΧ¨ΧΧΧͺ | ΧΧ ΧΧΧ ΧΧΧ‘Χ ΧΧ¦ΧΧΧΧ¨ | 37,200 Χ"Χ¨|
| 3 | 260 Χ' | ΧΧΧ"Χ 54 | - | ΧΧ§ΧΧ Χ¦ΧΧΧΧ¨Χ | 92 Χ"Χ¨ |
- ΧΧ§ΧΧ 1 - ΧΧΧ© ΧΧΧΧΧ¨ ΧΧΧΧΧ, ΧΧΧ©Χ Χ¦ΧΧΧΧ¨ΧΧͺ
- ΧΧ§ΧΧ 2 - ΧΧΧΧ ΧΧͺΧ¨ΧΧΧͺ, ΧΧΧ ΧΧΧ ΧΧΧΧΧ ΧΧ©ΧΧ© ΧΧΧΧ‘Χ ΧΧ¦ΧΧΧΧ¨
- ΧΧ§ΧΧ 3 - ΧΧΧ"Χ 54 Χ€ΧΧ Χͺ ΧΧ¨ΧΧΧ¨Χ§ 20, ΧΧͺΧΧͺ ΧΧΧΧͺ ΧΧ Χ‘Χͺ
Claude resolves the landmark to coordinates and uses search_shelters to find the nearest shelters with full details.
Testing
# Unit tests (91 tests)
npm test
# E2E tests against live API (56 tests)
REDALERT_API_KEY=your-key node e2e/run-e2e.mjs
Architecture
src/
api/ # HTTP client and API endpoint wrappers
tools/ # MCP tool handlers (one per endpoint)
realtime/ # Socket.IO connection manager and alert buffer
__tests__/ # Unit tests (vitest)
config.ts # Configuration and API key
errors.ts # Error handling and MCP error mapping
server.ts # MCP server setup
index.ts # Entry point with stdio transport
e2e/ # End-to-end test runner and test plans
API Reference
Based on RedAlert API by Oriel Haim.
License
MIT
