poke_discord

poke_discord

Enables interaction with Discord through natural language, including reading and sending messages, managing servers, and user actions.

Category
访问服务器

README

Discord Integration for Poke

An MCP (Model Context Protocol) server that connects your Discord account to Poke, allowing you to interact with Discord through natural conversation in Apple Messages, Telegram, WhatsApp, and RCS.

Features

  • Read Messages — Ask Poke "What's happening in #general?"
  • Send Messages — "Send a message to #announcements that the deploy is done"
  • DMs — "DM @alice and ask if she's free at 3pm"
  • Server Management — "List my servers" or "Show channels in My Server"
  • Message Actions — "Delete that message", "Edit my last message", "Add a 👍 reaction"
  • User Lookup — "Who is @bob on Discord?"

Prerequisites

  • Node.js 22+ (or Docker)
  • A Discord Bot Token
  • A publicly accessible URL (use ngrok for local development, or deploy to Railway/Fly.io)

Creating a Discord Bot

  1. Go to https://discord.com/developers/applications and click New Application
  2. Go to the Bot tab, click Add Bot, then Reset Token to get your token
  3. Under Privileged Gateway Intents, enable Message Content Intent
  4. Go to OAuth2 > URL Generator, select bot scope, add permissions:
    • Read Messages
    • Send Messages
    • Read Message History
    • Add Reactions
    • Manage Messages
  5. Use the generated URL to invite the bot to your servers

Quick Start

# Copy the env template and fill in your values
cp .env.example .env

# Run with Docker (pulls from GHCR)
docker compose --env-file .env up -d

Your Poke MCP Server URL will be http://localhost:3000/sse (expose with ngrok or deploy to a cloud provider).

Run locally (no Docker)

git clone https://github.com/thesammykins/poke_discord.git discord-poke
cd discord-poke
pnpm install
pnpm build
cp .env.example .env  # fill in DISCORD_TOKEN
source .env && node dist/index.js

Connect to Poke

  1. Go to https://poke.com/integrations/new
  2. Enter Name: Discord
  3. Enter MCP Server URL: your server URL with /sse (e.g. https://abc123.ngrok-free.app/sse)
  4. Enter API Key: Your Discord bot token
  5. Click Create Integration
  6. Try "List my Discord servers" in Poke

Development

pnpm install       # Install dependencies
pnpm dev           # Run with hot reload
pnpm typecheck     # TypeScript check
pnpm test          # Run tests
pnpm build         # Production build

Tools

Tool Description
discord_list_guilds List servers the bot is in
discord_list_channels List channels in a server
discord_read_messages Read recent messages with optional keyword filter
discord_send_message Send a message with optional embeds
discord_send_dm Send a direct message to a user
discord_get_user Get user profile info
discord_add_reaction Add an emoji reaction to a message
discord_delete_message Delete a message
discord_edit_message Edit a message
discord_search_guild_members Search server members
discord_pin_message Pin a message to a channel
discord_unpin_message Unpin a message

Docker Image

Prebuilt images are published to GitHub Container Registry:

ghcr.io/thesammykins/poke_discord:main

Tags available: main, v1.0.0, v1.0, v1, and per-commit SHA.

Deployment

Ready-to-use configs live in deploy/.

ngrok (local dev / free tier)

ngrok http --config=deploy/ngrok.yml 3000

Use your ngrok domain as PUBLIC_URL.

Pangolin (self-hosted)

docker compose -f deploy/docker-compose.pangolin.yml --env-file .env up -d

Adds Traefik labels for automatic routing. Set PANGOLIN_HOST to your domain.

Fly.io (free tier)

fly deploy -c deploy/fly.toml

Free allowance: 3 shared-cpu-1x VMs, 256MB RAM. Set DISCORD_TOKEN via fly secrets set.

Railway (free tier)

One-click from deploy/railway.json. Connect your GitHub repo and Railway auto-deploys on push.

Render (free tier)

Uses deploy/render.yaml as a Blueprint. Connect your repo and Render builds + deploys automatically.

Architecture

User (Messages) ←→ Poke (AI) ←→ MCP Server (SSE) ←→ Discord REST API

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选