Show HN:透過 Poke MCP 將 Claude AI 連接至 iMessage/WhatsApp

Show HN:透過 Poke MCP 將 Claude AI 連接至 iMessage/WhatsApp

Hacker News·

一項新專案允許使用者透過 Poke MCP 服務將 Claude AI 與 iMessage 和 WhatsApp 等通訊平台整合,直接在這些應用程式中進行對話。此解決方案部署於 Cloudflare Workers,並需要 Anthropic API 金鑰。

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

To see all available qualifiers, see our documentation.

Connect Claude AI to Poke via MCP - chat with Claude through iMessage, WhatsApp, SMS & Telegram. Deploys to Cloudflare Workers.

License

Uh oh!

There was an error while loading. Please reload this page.

andrexibiza/claude-mcp-poke

Folders and files

Latest commit

History

Repository files navigation

Connect Claude AI to Poke via MCP

This integration was built from scratch and verified working on January 14, 2025.

This guide shows you how to connect Claude AI (Anthropic) to Poke - the AI assistant that works through iMessage, WhatsApp, SMS, and Telegram. Once connected, you can chat with Claude directly from your messaging apps.

Image

What This Does

Why This Matters

With Claude integrated into Poke, you can:

Prerequisites

Quick Start (5 minutes)

1. Clone and Setup

2. Create Configuration Files

wrangler.toml

tsconfig.json

3. Create the MCP Server

Create src/index.ts:

4. Deploy to Cloudflare

You'll see output like:

5. Set Your Anthropic API Key

Important: Get your API key from https://console.anthropic.com/settings/keys

6. Test the Deployment

7. Connect to Poke

8. Start Chatting!

Message Poke through iMessage, WhatsApp, or SMS and ask it to use Claude:

Understanding the Architecture

MCP Protocol Details

Transport

This implementation uses the Streamable HTTP transport (not SSE), which Poke requires:

Available Tools

JSON-RPC Methods

Customization

Change the Claude Model

Edit the model parameter in callClaude():

Available models:

Add Custom Tools

Add new tools to the TOOLS array and handle them in handleToolCall():

Add Rate Limiting

Cloudflare Workers supports rate limiting. Add to wrangler.toml:

Troubleshooting

"Invalid MCP server URL" in Poke

"API key not configured"

Claude API Errors

Timeout Errors

Security Considerations

Adding Basic Authentication

To add API key authentication:

Then in Poke, add your auth key to the API Key field when creating the integration.

Cost Estimation

A typical conversation costs approximately $0.01-0.05 depending on length.

Alternative Deployments

Render (Python/FastMCP)

Poke provides an official template: https://github.com/InteractionCo/mcp-server-template

AWS Lambda

Adapt the code to use AWS Lambda with API Gateway.

Self-hosted

Run on any server that supports Node.js/Deno with HTTPS.

Key Technical Details

Why Streamable HTTP (Not SSE)

Many MCP tutorials show SSE (Server-Sent Events) transport, but Poke requires Streamable HTTP transport. This was the key insight that made this integration work:

If you're getting "Invalid MCP server URL" errors, you're probably using the wrong transport.

The /mcp Endpoint

Poke expects:

Common Pitfalls

Resources

License

MIT License - feel free to use and modify.

Contributing

Found an issue or want to improve this guide? Open an issue or PR!

Acknowledgments

This integration was built with assistance from Claude Code (Anthropic's AI coding assistant). The irony of using Claude to build a Claude integration is not lost on us.

Built by @axlibiza - January 2025

About

Connect Claude AI to Poke via MCP - chat with Claude through iMessage, WhatsApp, SMS & Telegram. Deploys to Cloudflare Workers.

Topics

Resources

License

Uh oh!

There was an error while loading. Please reload this page.

Stars

Watchers

Forks

Releases

Packages

  0

Languages

Footer

Footer navigation

Hacker News

相關文章

  1. 在使用AI的同時,尋找隱私保護之路?

    3 個月前

  2. Anthropic 推出互動式 Claude 應用程式,整合 Slack 與其他職場工具

    Techcrunch · 3 個月前

  3. Claude Code:透過頻道功能將外部事件推播至執行中的工作階段

    大約 1 個月前

  4. 在網頁上排程任務

    27 天前

  5. Claude 技能、資源與工具列表,用於客製化 Claude AI 工作流程

    3 個月前