Decorative doodle

Post to Discord from Claude Code

Claude Code can send and schedule Discord messages through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, connect your Discord server in Postiz, and ask Claude Code to announce a release in a specific channel, attach a screenshot, or schedule a recurring community update, straight from the terminal.

Setup GuideGitHub

Please make sure there is always a human in the loop.

Last updated: September 2026

Decorative doodleDecorative doodle

How to post to Discord from Claude Code

Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect Discord in Postiz, and then describe the post in plain language. Setup takes about a minute.

Setup once, then just ask

# One-time setup: add the Postiz MCP server (OAuth, no API key)
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Or install the Postiz skill instead
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then ask Claude Code:
> Post the v2.4 release notes from
  CHANGELOG.md to our #announcements Discord
  channel, tomorrow at 10am

Claude Code: Done! Discord message scheduled
  in #announcements for tomorrow at 10:00 AM.

What can Claude Code do on Discord?

On Discord, Claude Code can post text and media messages into any channel your Postiz bot can reach, on a schedule or immediately.

📢

Channel Messaging

Send messages directly to any Discord channel. Target announcements, general chat, or dedicated content channels.

📎

Media Attachments

Attach images, videos, and files to your Discord messages. Share rich content with your community automatically.

⏰

Scheduled Messages

Schedule Discord messages for specific times. Perfect for announcements, event reminders, and timed content drops.

🤖

Bot Integration

Works through your Discord bot connection. Post messages as your bot to any server and channel it has access to.

💬

Community Updates

Automate recurring community updates, changelogs, and newsletters. Keep your Discord server engaged on autopilot.

📅

Multi-Channel

Post to different channels with different messages. Customize content for each channel in your Discord server.

How does Claude Code post to Discord through Postiz?

You describe what you want in plain language and Claude Code handles the Postiz calls for you. Here is how a typical conversation goes.

1

Find Your Discord Integration

Ask Claude Code whether your Discord account is connected. It also checks which options the platform supports.

Example conversation

> Is my Discord account connected to Postiz?

Claude Code: Yes — your Discord account is connected
  and ready. Want me to post something?
2

Get Your Channel ID

Find the Discord channel ID where you want to post. In Discord, enable Developer Mode, then right-click the channel and copy its ID.

Example conversation

> Draft a Discord post about our new
  feature launch

Claude Code: Here's a draft for Discord:
  "We just shipped something big..."
  Want me to add media and schedule it?
3

Create Your Message

Schedule a Discord message with your content, optional media attachments, and the target channel ID.

Example conversation

> Yes — add screenshot.png and schedule
  it for tomorrow at 9am

Claude Code: Done! Scheduled on Discord for
  tomorrow at 9:00 AM.

Discord Settings Reference

Mention any of these in plain language and Claude Code sets them for you. These are the options every Discord message can carry.

FieldTypeDescription
__typestringMust be "discord"
channelstringDiscord channel ID to post to

Common Configurations

Ask Claude Code for any of these common Discord messaging scenarios and it applies the matching settings.

Announcement Channel Message

Just ask

> Post it with: Announcement Channel Message

Claude Code: Got it. Applying:
  channel: 123456789012345678

Message with Media Attachment

Example

> Post "Excited to announce our new feature!" to
  Discord and LinkedIn tomorrow at 9am, then schedule
  a daily tip on Discord every weekday at 10am

Claude Code: Done! Scheduled:
  - Discord + LinkedIn: tomorrow 9:00 AM
  - Daily tips on Discord: Mon-Fri 10:00 AM

Scheduled Weekly Update

Example

> What's scheduled on Discord this week?

Claude Code: 6 posts on Discord: the announcement tomorrow
  at 9:00 AM and daily tips Mon-Fri at 10:00 AM.
  Want me to move or cancel any of them?

Multi-Channel Posting

Example

> What's scheduled on Discord this week?

Claude Code: 6 posts on Discord: the announcement tomorrow
  at 9:00 AM and daily tips Mon-Fri at 10:00 AM.
  Want me to move or cancel any of them?

Example prompts for Discord in Claude Code

These are prompts you can type into a Claude Code session, or pass to claude -p in a script. Claude Code reads your repo, calls Postiz, and confirms before publishing.

Release announcement with a screenshot

Claude Code

> Announce v2.4 in #announcements with the
  top 3 changes from CHANGELOG.md and attach
  ./assets/release.png

Claude Code: Message drafted (under 2,000 chars),
  release.png uploaded. Ready to send, approve?

Find the right channel

Claude Code

> Which Discord channels can Postiz post to?
  Send "Office hours start in 10 minutes" to
  the community one at 2:50pm

Claude Code: Channels: #announcements,
  #community, #dev. Scheduled in #community.

Deploy notification from CI

Claude Code

$ claude -p "Post 'Production deploy of $(git
  rev-parse --short HEAD) finished' to our #dev
  Discord channel via Postiz."

# Drop this at the end of a deploy job

Discord limits and gotchas to know

Discord messages through Postiz go to a specific channel, so a couple of details matter.

  • ✓channel is required and is a Discord channel ID. Claude Code can list the channels available to your Postiz bot and pick the right one.
  • ✓Discord messages are limited to 2,000 characters. Claude Code keeps drafts under that limit when it knows the target is Discord.
  • ✓Media is uploaded through Postiz, so reference a local file or URL.
  • ✓The Postiz bot must be invited to the server and have permission to post in the channel you target.

What is Claude Code?

Claude Code is Anthropic's agentic coding tool that lives in your terminal. It handles software engineering tasks — writing features, fixing bugs, and answering questions about your codebase — and it can run shell commands and MCP tools like Postiz.

Not the same as Claude Cowork (Anthropic's desktop agent for knowledge workers) or the Postiz connector for Claude.ai (chat in the browser or desktop app). Claude Code runs in your terminal and IDE and can read your repository while it writes Discord posts.

💻

Terminal & IDE Native

Claude Code runs in your terminal, with extensions for VS Code and JetBrains. You type what you want in plain English and it handles Postiz for you.

🔧

Agentic Execution

Claude Code plans and works through multi-step tasks on its own — discovering channels, uploading media, and scheduling posts — and asks for permission before it acts.

⚡

Parallel Tasks

Run several Claude Code sessions side by side, or spawn subagents in one. Schedule posts to different platforms while it handles other coding work.

How Postiz Works with Claude Code

Claude Code discovers Postiz through the Postiz skill or the Postiz MCP server. It reads the SKILL.md (or the MCP tool list) to learn what it can do, then chains calls together for social media workflows.

  • ✓Install the Postiz skill, or add the Postiz MCP server with claude mcp add
  • ✓Claude Code discovers the Postiz tools over MCP, or reads SKILL.md when you use the skill
  • ✓MCP route: sign in with OAuth, no API key. Skill route: set POSTIZ_API_KEY
  • ✓Claude Code asks for permission before running commands
  • ✓Works alongside your coding tasks in parallel

Install Postiz

# Option A: add the Postiz MCP server
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Option B: install the Postiz skill
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then just ask
claude "list my social media integrations"

Discord Messaging with Claude Code

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

💻

Just Ask Claude Code

Terminal and IDE integration

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

Claude Code CLI

$ claude "Post to Discord about our
  new feature launch, schedule for
  tomorrow at 9am"

Claude Code: I'll handle that.
  Found your Discord integration.
  Composing and scheduling the post.

  Done! Your post is scheduled.
  Post ID: abc-123
💻

Parallel Tasks

Multiple tasks at once

Claude Code runs headless with claude -p, so several tasks can run in parallel. Schedule posts to different platforms while it works on other coding tasks.

Claude Code Parallel Tasks

# Run multiple posting tasks in parallel
$ claude -p "Schedule a post about our
  launch to X for tomorrow 9am" &

$ claude -p "Write a LinkedIn article
  about our new feature and schedule
  for tomorrow noon" &

$ claude -p "Fix the bug in auth.ts"

# All three tasks run simultaneously

Why Claude Code + Postiz for Discord

Claude Code's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for Discord workflows.

  • ✓Runs in your terminal or IDE — just type what you want
  • ✓Permission-based execution — you stay in control
  • ✓Parallel task support — post while coding
  • ✓Reads SKILL.md for automatic command discovery
  • ✓Cross-post to Discord + other platforms in a single session
  • ✓Powered by Claude — Anthropic's most capable models

SKILL.md (auto-discovered)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms including Discord
metadata:
  claude-code:
    requirements:
      env:
        - POSTIZ_API_KEY
      binaries:
        - postiz
---

# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>

# Discord Settings
channel (required channel ID)

Also Works with Claude Cowork

Postiz works with any AI agent that can run commands or call MCP tools. That includes Claude Cowork, Anthropic's desktop agent, and the Claude.ai connector. See the agents overview for every supported agent.

C

Claude Cowork

by Anthropic

Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your Discord integration, identifies the right channel, and sends your message with any attachments.

Claude Cowork

> Send an announcement to our Discord
  #releases channel that v2.0 is live,
  attach the changelog screenshot

Claude Cowork: Done! Scheduled on Discord for
  tomorrow at 9:00 AM.

Post to Discord and other platforms from Claude Code

One request can schedule the same content to Discord and other channels, and each platform keeps its own settings. Every platform below has its own Claude Code guide.

Example

> Post "Excited to announce our new feature!" to
  Discord and Slack tomorrow at 9am, then schedule
  a daily tip on Discord every weekday at 10am

Claude Code: Done! Scheduled:
  - Discord + Slack: tomorrow 9:00 AM
  - Daily tips on Discord: Mon-Fri 10:00 AM

See all 25 platforms in the Claude Code social media guide, compare agents on the AI agents overview, read about the Postiz MCP server, or check pricing. For the channel itself, seeDiscord scheduling features in Postiz.

Discord and Claude Code: frequently asked questions

How do I post to a Discord channel from Claude Code?

Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your Discord server in Postiz. Then name the channel and the message. Claude Code resolves the channel ID, drafts the text, uploads any media, and sends or schedules the message through Postiz.

Can Claude Code post deploy or release notifications to Discord automatically?

Yes. Use headless mode, claude -p, at the end of a deploy job or release workflow. Claude Code can read the git log or changelog, write a short message, and send it to your Discord channel through Postiz before exiting. The Postiz MCP server or skill must be configured on the CI machine.

How does Claude Code know which Discord channel to use?

The Discord channel setting is a channel ID, not a name. Ask Claude Code which channels Postiz can post to and it lists them, then maps your channel name to the ID. If several channels match, it asks before sending, and it always requests permission before a message goes out.

Can Claude Code attach images to Discord messages through Postiz?

Yes. Reference a screenshot or image file in your repo and Claude Code uploads it through Postiz and attaches it to the Discord message. Keep the text under Discord's 2,000-character limit; for longer release notes, ask for a summary with a link to the full changelog.

Start posting to Discord

Install Postiz Agent and automate your Discord community messaging with AI-powered scheduling and publishing.