postiz-mcp
Allows creating, scheduling, updating, and deleting social media posts on Bluesky, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on dev.to, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Discord, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Dribbble, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Facebook Pages, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Hashnode, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Instagram, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Lemmy, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Mastodon, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Medium, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Pinterest, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Reddit, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Slack, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Telegram, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on Threads, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on TikTok, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on WordPress, as well as uploading media files.
Allows creating, scheduling, updating, and deleting social media posts on YouTube, as well as uploading media files.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@postiz-mcpcreate a new post for Twitter and LinkedIn saying 'Hello World'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Postiz MCP Server & CLI
A Model Context Protocol (MCP) server and command-line interface for the Postiz social media scheduling API. Both entrypoints share the same tool definitions so that AI assistants and human operators can manage social media posts across multiple platforms with identical capabilities.
Features
Command-line interface:
postizbinary with--helpoutput designed for humans and LLMsGet Channels: List available social media integrations
Upload Files: Upload images and media for posts
List Posts: Query posts with date range filtering
Create Posts: Create draft, scheduled, or immediate posts
Update Posts: Modify existing posts
Delete Posts: Remove posts
Generate Videos: AI video generation with slides or prompts (Beta)
Supported Platforms
Postiz supports posting to: X (Twitter), LinkedIn, LinkedIn Pages, Reddit, Instagram (Facebook Business), Instagram (Standalone), Facebook Pages, Threads, YouTube, TikTok, Pinterest, Dribbble, Discord, Slack, Mastodon, Bluesky, Lemmy, Warpcast, Telegram, Nostr, VK, Medium, Dev.to, Hashnode, and WordPress.
Installation
Clone or download this repository
Install dependencies:
npm installBuild the project:
npm run build
Using the CLI
The CLI and the MCP server share the same environment variables (
POSTIZ_API_KEY,POSTIZ_BASE_URL). Configure them once and they will work in both contexts.
Quick test without installation
npx tsx src/cli.ts --helpInstall the postiz binary
npm run build
npm_config_prefix="$HOME/.npm-global" npm link # Or just `npm link` if you have system permissionsMake sure $(npm config get prefix)/bin (e.g. ~/.npm-global/bin) is in your PATH, then run:
postiz --help
postiz posts --start-date 2024-10-01 --end-date 2024-10-07 --prettyHot reload during development
npm run dev:cli -- --helpThe watcher re-runs the CLI with the same arguments every time you save a file under src/.
Configuration
Environment Variables
Set the variables in your shell profile (~/.zshrc, ~/.bash_profile, etc.) or create a .env file with the following values:
POSTIZ_API_KEY=your_postiz_api_key_here
POSTIZ_BASE_URL=https://api.postiz.com/public/v1 # Optional, defaults to hosted PostizGetting Your API Key
Log into your Postiz account
Go to Settings > API Keys
Generate a new API key
Copy the key to your
.envfile
Note: The Postiz API has a rate limit of 30 requests per hour.
Usage with Claude Desktop
Add this to your Claude Desktop configuration file:
Windows
%APPDATA%\Claude\claude_desktop_config.json
macOS
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"postiz": {
"command": "node",
"args": ["/path/to/postiz-mcp/build/index.js"],
"env": {
"POSTIZ_API_KEY": "your_postiz_api_key_here"
}
}
}
}Available Tools
All commands exposed by the MCP server are available in the CLI. Run postiz --help to see the full list and postiz <tool-name> --help to inspect the parameters (help text is generated automatically from the Zod schema).
postiz-get-channels (CLI: postiz channels)
Get list of available social media channels/integrations.
No parameters requiredpostiz-upload-file (CLI: postiz upload)
Upload a file for use in posts.
- filePath: string (required) - Path to the file to upload
- filename: string (optional) - Custom filenamepostiz-list-posts (CLI: postiz posts)
List posts with date range filtering.
- startDate: string (required) - Start date in YYYY-MM-DD or ISO 8601 datetime (date-only expands to 00:00:00)
- endDate: string (required) - End date in YYYY-MM-DD or ISO 8601 datetime (date-only expands to 23:59:59.999)
- customer: string (optional) - Customer filterpostiz-create-post (CLI: postiz create)
Create a new post.
- content: string (required) - Post text content
- integrations: string[] (required) - Array of channel IDs
- status: 'draft' | 'scheduled' | 'now' (optional, default: 'draft')
- scheduledDate: string (optional) - ISO 8601 date for scheduling
- images: string[] (optional) - Array of image URLs/file IDspostiz-update-post (CLI: postiz update)
Update an existing post. IMPORTANT: updates are not partial; include the full content again or it will be cleared.
- id: string (required) - Post ID to update
- content: string (optional) - Full content (send all text again, even if unchanged)
- integrations: string[] (optional) - New channel IDs
- status: 'draft' | 'scheduled' | 'now' (optional) - New status
- scheduledDate: string (optional) - New schedule date
- images: string[] (optional) - New imagespostiz-delete-post (CLI: postiz delete)
Delete a post.
- id: string (required) - Post ID to deletepostiz-generate-video
Generate AI video (Beta feature).
- slides: object[] (optional) - Array of slide objects with image and text
- prompt: string (optional) - Text prompt for AI generation
- voice: string (optional) - Voice setting
- duration: number (optional) - Duration in secondsExample Usage (CLI)
# Create an immediate post
postiz create \
--content "Hello from my AI assistant! 🤖" \
--integrations twitter_channel_id \
--integrations linkedin_channel_id \
--status now
# Schedule a post
postiz create \
--content "Scheduled post content" \
--integrations twitter_channel_id \
--status scheduled \
--scheduled-date "2024-01-15T10:00:00+01:00"
# Upload an image and reuse it
postiz upload --file-path /path/to/image.jpg --pretty
# Use the returned URL in the --images array when calling `postiz create`Development
Build
npm run buildDevelopment Mode
# Rebuilds and restarts the MCP server in watch mode
npm run dev
# Iterate on the CLI without rebuilding the output in build/
npm run dev:cli -- --helpFormat Code
npm run formatAPI Rate Limits
Postiz API has a rate limit of 30 requests per hour. The MCP server will handle rate limit errors gracefully and return appropriate error messages.
Self-Hosted Postiz
If you're using a self-hosted Postiz instance, set the POSTIZ_BASE_URL environment variable:
POSTIZ_BASE_URL=https://your-postiz-instance.com/public/v1Error Handling
All tools return structured JSON responses with:
success: boolean indicating if the operation succeedederror: error message if operation failedstatusCode: HTTP status code for API errorsData fields specific to each operation
License
MIT License - see LICENSE file for details.
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a Pull Request
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/antoniolg/postiz-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server