MCP.so
登录

Claude MCP Approval Server

@adstastic

关于 Claude MCP Approval Server

MCP server with Whatsapp integration (Twilio) to remote approve Claude Code tool use

基本信息

分类

AI 与智能体

运行时

python

传输方式

stdio

发布者

adstastic

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "claude-code-whatsapp-approval": {
      "command": "python",
      "args": [
        "setup_template.py"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Claude MCP Approval Server?

A Model Context Protocol (MCP) server that provides approval prompts via WhatsApp before executing potentially sensitive commands. Built with FastMCP and Twilio, it is designed for users of Claude who want a security layer on tool execution.

How to use Claude MCP Approval Server?

Install dependencies with uv install, set up a Twilio account, configure environment variables in .env, create a WhatsApp template, expose your local server via ngrok or Tailscale, configure the Twilio webhook, start the server with uv run approval_server.py, then launch Claude with --mcp-config mcp-servers.json and --permission-prompt-tool mcp__approval-server__permissions__approve. Approve or deny commands by tapping WhatsApp quick-reply buttons.

Key features of Claude MCP Approval Server

  • Intercepts tool executions and requests approval via WhatsApp
  • Uses Twilio to send requests with quick‑reply buttons
  • Built on FastMCP for easy Claude integration
  • Requests automatically expire after 5 minutes
  • SQLite database tracks approval request history
  • Only accepts responses from the configured phone number

Use cases of Claude MCP Approval Server

  • Approve bash commands or file operations from anywhere via WhatsApp
  • Add a security review step before Claude executes sensitive tools
  • Enable remote teams to control infrastructure actions with two‑factor approval
  • Maintain an audit trail of which commands were allowed or denied

FAQ from Claude MCP Approval Server

How does the approval process work?

When Claude attempts to execute a tool, the permissions__approve function sends a WhatsApp message with formatted command details and quick‑reply buttons. Your tap approves or denies execution.

What happens if I don’t respond to an approval request?

The request expires after 5 minutes for security. If no response is received, Claude does not execute the command.

Does the approval server work in interactive Claude mode?

No. Non‑interactive mode (without the -p flag) does not use the --permission-prompt-tool flag, so approval prompts are not triggered in that mode.

Which phone number receives the approval messages?

The phone number set in the APPROVAL_PHONE environment variable. This must be the same number that joined the Twilio WhatsApp sandbox.

Does using the -p prompt mode affect network access for the server?

The -p (prompt) mode itself has no network access, but the MCP server runs as a separate process and can still send WhatsApp requests if it has network connectivity.

评论

AI 与智能体 分类下的更多 MCP 服务器