Safeword
Stores guardian records, safe-word questions, and alert history in Amazon DynamoDB, with safe fallback behavior when AWS is unavailable.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SafewordA caller says my grandson is in jail and needs gift cards—is this a scam?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Safeword
Safeword is an open-source MCP trust layer that makes Alexa+ a calmer, safer co-pilot for vulnerable people in high-stakes moments.
When someone asks, “Alexa, is this real?”, Safeword creates a pause before an irreversible action.
What it does
Safeword exposes five reusable MCP tools over Streamable HTTP:
Tool | Purpose |
| Scores scam patterns from a call, text, email, or encounter. |
| Retrieves a private, family-set challenge question. |
| Logs an alert and gives a trusted guardian approve/block controls. |
| Adds a confidence score and caveats to health or financial claims. |
| Stops improvisation and provides a calm human-resource handoff. |
The included browser app is a simulated Alexa+ experience. It calls the real MCP endpoint and REST dashboard routes, so the demo exercises the same server that an Alexa+ integration would use.
Related MCP server: Raksha
Hackathon submission
Primary track: Amazon Developer Hackathon — Alexa+
Track technology: self-hosted MCP server, Streamable HTTP, protocol version
2025-11-25Mini challenges: AWS Builder and Open Source
Demo video: add the public under-three-minute URL here before submission
Quick start
Requirements: Node.js 20+.
npm install
npm run typecheck
npm run build
npm run devOpen:
Simulated Alexa+: http://localhost:5173
MCP health: http://localhost:3000/health
MCP endpoint: http://localhost:3000/mcp
The demo works without AWS credentials. It uses a seeded in-memory profile for
demo_user_001 and deterministic heuristic fallbacks. To enable AWS adapters,
copy .env.example to .env and configure credentials, Bedrock, DynamoDB,
and SNS. Never commit .env or credentials.
MCP contract
POST /mcp JSON-RPC requests and tool calls
GET /mcp Streamable HTTP server stream for an active session
DELETE /mcp Session terminationInitialize a session with protocol 2025-11-25, retain the returned
Mcp-Session-Id, then call tools/list or tools/call. All tool results are
structured JSON strings in result.content[0].text.
REST helpers used by the simulated guardian UI:
GET /health
POST /setup
GET /alerts/:userId
PATCH /alert/:alertId body: { "status": "APPROVED" | "BLOCKED" }AWS integrations
Amazon Bedrock: scam analysis and claim verification, with optional Bedrock Guardrails screening.
Amazon DynamoDB: guardian records, safe-word questions, and alert history.
Amazon SNS: optional guardian notifications when
SNS_TOPIC_ARNis set.
Every AWS call is wrapped in a safe fallback. The demo remains usable if AWS is unavailable, and the full safe-word answer is never persisted—only its first character hint is stored for the local demo.
Reproducible evaluation
The labeled dataset contains 50 mixed scam, legitimate, and suspicious cases. Run:
npm run evaluateThe evaluator uses the same deterministic fallback classifier used when AWS is not configured and prints precision, recall, F1, and the confusion matrix.
Latest local baseline (50 labeled cases, no AWS credentials):
Precision: 100.0%
Recall: 88.0%
F1 Score: 93.6%
TP:22 TN:25 FP:0 FN:3The baseline is intentionally reproducible; Bedrock-backed runs can produce different scores depending on the configured model and prompt response.
Current local baseline (50 cases, scam threshold risk_score >= 61):
Precision: 100.0%
Recall: 88.0%
F1 Score: 93.6%
TP:22 TN:25 FP:0 FN:3Repository map
packages/mcp-server/ Streamable HTTP MCP server and service adapters
packages/web-app/ React/Vite simulated Alexa+ and guardian dashboard
docs/ Architecture, demo script, feedback, friction log
infrastructure/ Bedrock Guardrail starter configurationPrivacy and safety boundaries
Safeword does not record or inspect phone audio.
Safe-word answers are not stored; only a first-character hint is retained.
Guardian alerts contain a concise summary, not surveillance transcripts.
A high score means “pause and verify”, not a final legal or financial determination. Users should contact trusted people and official resources.
Contributing
See CONTRIBUTING.md. New scam patterns, translations, tool schemas, tests, and documentation are welcome.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
44-tool MCP server for AI compliance and trust checks. Pay-per-call, no signup.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables an Alexa+ assistant to name scam warning signs drawn from FTC and FBI alerts, verify a story by texting a family member's pre-saved number, and surface official report links and guidance. It exposes tools and MCP Apps views for checking a suspicious call, while never approving payments, contacting the caller, or collecting sensitive numbers.MIT
- AlicenseNot gradedqualityBmaintenanceA self-hosted MCP server that lets Alexa+ help care for an older family member — medicines, health readings, family messages, errands and scam calls — with every tool call screened by a deterministic safety gate and a Cedar policy. It applies zones, tripwire lockdowns, scam watches and approval-fatigue limits so money actions require explicit family approval.MIT
- AlicenseNot gradedqualityCmaintenanceEnables an older adult to talk with Alexa+ about medicines and daily routine while a caregiver sees a calm, consent-gated dashboard and push alerts only when a genuine pattern (e.g. an unusually late first activity) appears. Includes elicitation-based consent, emergency bypass, resumable SSE streams, and an inline MCP App view.MIT
- AlicenseNot gradedqualityBmaintenanceExposes standardized MCP tools over SSE and JSON-RPC that let an Alexa+ agent retrieve patient vitals and medication adherence, control Ring doorbells and smart deadbolts, dispatch emergency escalations with SBAR triage notes, and log immutable care events to a cloud ledger. This enables proactive, autonomous health monitoring and emergency response on an Echo Show for elderly people living alone.MIT