claude-code-whatsapp-approval

adstastic/claude-code-whatsapp-approval

3.3

If you are the rightful owner of claude-code-whatsapp-approval and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Claude MCP Approval Server is a Model Context Protocol server that facilitates approval prompts via WhatsApp before executing potentially sensitive commands, ensuring secure operations.

The Claude MCP Approval Server is designed to enhance security by intercepting tool executions and requesting user approval via WhatsApp before proceeding. Built on FastMCP and integrated with Twilio, this server ensures that potentially sensitive commands are not executed without explicit user consent. The server sends formatted approval requests to the user's WhatsApp, allowing them to approve or deny the execution with quick-reply buttons. This setup is particularly useful for environments where command execution needs to be monitored and controlled remotely. The server also features an auto-expiry mechanism for requests, ensuring that unapproved requests do not linger indefinitely, and maintains a database for tracking approval requests.

Features

  • Permission Prompts: Intercepts tool executions and requests approval via WhatsApp.
  • WhatsApp Integration: Uses Twilio to send approval requests with quick-reply buttons.
  • FastMCP: Built on FastMCP for easy integration with Claude.
  • Smart Formatting: Formats commands and reasons in a readable way.
  • Auto-expiry: Requests expire after 5 minutes for security.

Usages

usage with Claude

{
  "mcpServers": {
    "approval-server": {
      "command": "uv",
      "args": ["run", "approval_server.py"]
    }
  }
}

usage with ngrok

bash
ngrok http 8000  # Replace 8000 with your SERVER_PORT if different

usage with Tailscale

bash
tailscale funnel --bg 8000  # Replace 8000 with your SERVER_PORT if different