Claude Code + Slack
Post to Slack from Claude Code
Through iHatePosting, Claude Code can post messages and team updates into a Slack channel. Register iHatePosting in Claude Code with a single terminal command and a browser sign-in, then ask it for the post you want.
Setup takes about a minute. A message can hold up to 3,000 characters, Slack's own limit for a block of text.
Posting to Slack from Claude Code
Add iHatePosting to Claude Code once, connect Slack, and then describe the post. Setup takes about a minute.
Add iHatePosting to Claude Code once
Register iHatePosting in Claude Code with a single terminal command and a browser sign-in. Then connect Slack in iHatePosting if you have not already.
claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauthAsk for the Slack post
Describe the post in plain language. Claude Code writes it, applies the settings and schedules it.
> Post the changelog summary to #releases on Slack today at 17:00.
Claude Code: Done. Scheduled on Slack.What Claude Code can do on Slack
On Slack, Claude Code can post messages and team updates into a Slack channel.
Channel messages
Send a message into a channel of your workspace.
Channel list
List the channels available, then choose one.
Pictures
Attach pictures to a message; video is not sent to Slack.
Scheduling
Send the update at a time you name.
How Claude Code gets a post onto Slack
You say what you want and Claude Code makes the calls. A typical conversation goes like this.
Find your Slack channel
Which Slack accounts do I have in iHatePosting?
What happens
- Claude Code lists your channels and finds Slack
- It can also run the channels helper: Lists the channels the agent can post to.
Compose your content
List my Slack channels and post this week's plan to #team-updates on Monday at 9:00.
What happens
- Claude Code drafts the text for Slack
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Claude Code schedules the post in iHatePosting
- iHatePosting publishes it to Slack at that time
Slack settings reference
Say the option in your own words and Claude Code fills in the matching field. This is every Slack setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| channel | string | Yes | Channel must be an id |
Common configurations
Each case below is a request Claude Code understands, followed by the Slack options it sets.
Choose a channel
Post it in #team-updates
- Applies: channel: the channel's id
Slack requests to try in Claude Code
A release note
Post the changelog summary to #releases on Slack today at 17:00.
A Monday update
List my Slack channels and post this week's plan to #team-updates on Monday at 9:00.
A picture
Post chart.png with a two-line explanation to #metrics tomorrow at 10:00.
Slack limits and gotchas to know
A few of Slack's rules shape how Claude Code writes your request, so it helps to know them.
- A message can hold up to 3,000 characters, Slack's own limit for a block of text.
- Pictures only: a post with a video is refused for Slack.
- Every post names one channel by its id; the agent lists the channels first and picks the one you mean.
What is Claude Code?
Claude Code is Anthropic's agentic tool for software work. It lives in a terminal, with extensions for popular editors, understands the code around it, runs commands and can call MCP tools such as iHatePosting.
That makes it a natural place to announce a release: it can read the changelog, write the copy and schedule it in iHatePosting without you leaving the project.
How iHatePosting works with Claude Code
Once connected, iHatePosting hands Claude Code its tools: your channels, posts, media and each channel's settings (14 tools in all). Claude Code calls them while you describe what you want.
- iHatePosting MCP server (sign in):
claude mcp add--transport httpihatepostinghttps://app.ihateposting.com/mcp/oauth - iHatePosting plugin:
/pluginmarketplace addiHatePostingOrg/iHatePosting-Agent - iHatePosting skill (command line): npx skills add
iHatePostingOrg/iHatePosting-Agent
# iHatePosting MCP server (sign in)
claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauthSlack and the other platforms Claude Code reaches
Ask for Slack and other channels in a single message; every channel still applies its own settings.
Frequently asked questions
Start free for 30 daysRegister iHatePosting in Claude Code with a single terminal command and a browser sign-in, connect Slack in iHatePosting, then ask Claude Code for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A message can hold up to 3,000 characters, Slack's own limit for a block of text.
Claude Code can set channel. The settings reference on this page lists what each one does.
Not on the MCP route, where the browser takes care of the sign-in. The skill and plugin routes go through the command line, which signs in with ihateposting auth:login or reads IHATEPOSTING_API_KEY.