postiz-mcp
postiz-mcp
Канонический клиент Postiz для любого MCP-совместимого клиента. Полный охват публичного API Postiz (интеграции, публикации, загрузки, аналитика, видео) с защищенной записью, подтверждением удаления и встроенным ограничителем частоты запросов.
Поставляется как MCP-сервер через stdio и как нативный плагин OpenClaw первого класса из одного пакета.
Зачем
Если вы используете self-hosted версию Postiz и хотите, чтобы Claude / Codex / OpenClaw / Hermes / любой MCP-клиент взаимодействовал с ней, этот инструмент предоставляет типизированный, протестированный интерфейс вместо написания HTTP-запросов вручную для каждого рабочего процесса.
Related MCP server: Postoria MCP Server
Предупреждения перед настройкой
Запись в Postiz — это публичное действие. Успешный вызов
postiz_create_postс параметромtype: "now"(или запланированный на ближайшее время) приведет к публикации в реальных социальных сетях. После публикации посты можно удалить из Postiz, но на стороне платформы пост останется — Postiz не может отозвать его.Публичный API Postiz по умолчанию ограничен 30 запросами в час. Этот сервер отслеживает лимит локально и отказывается отправлять запросы, когда бюджет исчерпан. Переопределите это значение с помощью
POSTIZ_RATE_LIMIT_PER_HOUR, если ваш экземпляр Postiz настроен на более высокий лимит.Запись и удаление по умолчанию отключены. Чтение работает всегда. Чтобы включить запись, необходимо явно установить
POSTIZ_ENABLE_WRITE_ENABLE=true. Чтобы включить удаление, необходимо дополнительно установитьPOSTIZ_ENABLE_DELETE=trueИ передатьconfirm: trueв вызове инструмента.
Инструменты
Чтение (всегда включено)
postiz_list_integrations— список подключенных каналовpostiz_check_integration— проверка API-ключаpostiz_find_next_slot— следующий свободный слот для публикации в каналеpostiz_list_posts— посты в заданном диапазоне датpostiz_get_missing_content— восстановление контента платформы для поста Postiz с отсутствующимreleaseIdpostiz_list_notifications— уведомления интерфейса Postizpostiz_get_platform_analytics— подписчики / показы / вовлеченностьpostiz_get_post_analytics— лайки / комментарии / репостыpostiz_list_voices— каталог голосов для ИИ-видеоpostiz_get_provider_settings_schema— схемаsettingsдля каждого провайдера (X, LinkedIn, Reddit и т.д.), включенная при сборке
Запись (требует POSTIZ_ENABLE_WRITE=true)
postiz_create_post— планирование / публикация сейчас / черновикpostiz_connect_integration— генерация OAuth URL для нового каналаpostiz_update_post_status— переключение DRAFT ↔ QUEUEpostiz_update_post_release_id— повторная привязка поста Postiz к его релизу на стороне платформыpostiz_upload_file— multipart-загрузка из локального файла или base64postiz_upload_from_url— загрузка на стороне сервераpostiz_generate_video— генерация ИИ-видео
Удаление (требует POSTIZ_ENABLE_WRITE=true + POSTIZ_ENABLE_DELETE=true + confirm: true)
postiz_delete_post— каскадное удаление всей группыpostiz_delete_post_group— удаление всех постов в группе кросс-постингаpostiz_delete_integration— отключение канала + всех его запланированных постов
Установка
npm install -g postiz-mcpИли из исходного кода:
git clone https://github.com/solomonneas/postiz-mcp.git
cd postiz-mcp
npm install
npm run buildКонфигурация
Установите следующие переменные окружения в конфигурации вашего MCP-клиента:
Переменная | Обязательно | По умолчанию | Описание |
| да | — | Базовый URL, например |
| да | — | API-ключ из настроек Postiz → Public API |
| нет |
| Установите |
| нет |
| Установите |
| нет |
| Тайм-аут HTTP (мс) |
| нет |
| Локальный лимит. Сервер также доверяет заголовкам ответа, если они присутствуют. |
| нет | — | Client ID сервисного токена Cloudflare Access (нужен только если Postiz за CF Access) |
| нет | — | Секрет сервисного токена Cloudflare Access |
Получение API-ключа
Войдите в Postiz как администратор
Настройки → Public API → Generate API Key
Скопируйте значение (начинается с
pos_или является UUID в зависимости от версии Postiz)
Claude Desktop
Добавьте в ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) или %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"postiz": {
"command": "postiz-mcp",
"env": {
"POSTIZ_URL": "http://localhost:5000",
"POSTIZ_API_KEY": "your-api-key-here",
"POSTIZ_ENABLE_WRITE": "true",
"POSTIZ_ENABLE_DELETE": "false"
}
}
}
}Claude Code
claude mcp add postiz \
--env POSTIZ_URL=http://localhost:5000 \
--env POSTIZ_API_KEY=your-api-key-here \
--env POSTIZ_ENABLE_WRITE=true \
-- postiz-mcpДобавьте --scope user, чтобы сделать его доступным из любой директории, а не только из текущего проекта.
OpenClaw
postiz-mcp также является нативным плагином OpenClaw. Из клонированного репозитория:
openclaw plugin add /absolute/path/to/postiz-mcp \
--config '{
"baseUrl": "http://localhost:5000",
"apiKeyEnv": "POSTIZ_API_KEY",
"enableWrite": true,
"enableDelete": false
}'Затем экспортируйте API-ключ и перезапустите шлюз:
export POSTIZ_API_KEY=your-api-key-here
systemctl --user restart openclaw-gateway
openclaw plugin list # confirm "postiz" is enabledВы также можете запустить его как обычный MCP-сервер в OpenClaw:
openclaw mcp set postiz '{
"command": "postiz-mcp",
"env": {
"POSTIZ_URL": "http://localhost:5000",
"POSTIZ_API_KEY": "your-api-key-here",
"POSTIZ_ENABLE_WRITE": "true"
}
}'Hermes Agent
Hermes Agent считывает конфигурацию MCP из ~/.hermes/config.yaml в разделе mcp_servers. Добавьте запись:
mcp_servers:
postiz:
command: "postiz-mcp"
env:
POSTIZ_URL: "http://localhost:5000"
POSTIZ_API_KEY: "your-api-key-here"
POSTIZ_ENABLE_WRITE: "true"Или из клонированного репозитория:
mcp_servers:
postiz:
command: "node"
args: ["/absolute/path/to/postiz-mcp/dist/mcp-server.js"]
env:
POSTIZ_URL: "http://localhost:5000"
POSTIZ_API_KEY: "your-api-key-here"
POSTIZ_ENABLE_WRITE: "true"Затем перезагрузите MCP внутри сессии Hermes:
/reload-mcpCodex CLI
Codex CLI регистрирует MCP-серверы через codex mcp add:
codex mcp add postiz \
--env POSTIZ_URL=http://localhost:5000 \
--env POSTIZ_API_KEY=your-api-key-here \
--env POSTIZ_ENABLE_WRITE=true \
-- postiz-mcpИли из клонированного репозитория:
codex mcp add postiz \
--env POSTIZ_URL=http://localhost:5000 \
--env POSTIZ_API_KEY=your-api-key-here \
--env POSTIZ_ENABLE_WRITE=true \
-- node /absolute/path/to/postiz-mcp/dist/mcp-server.jsCodex записывает запись в ~/.codex/config.toml в разделе [mcp_servers.postiz]. Проверьте с помощью:
codex mcp listPostiz за Cloudflare Access
Если ваш Postiz доступен через Cloudflare Tunnel + Access (например, https://postiz.example.com), создайте сервисный токен в панели управления Cloudflare Zero Trust и добавьте переменные окружения:
export POSTIZ_CF_ACCESS_CLIENT_ID=your-cf-id.access
export POSTIZ_CF_ACCESS_CLIENT_SECRET=your-cf-secretMCP-сервер пересылает их как CF-Access-Client-Id / CF-Access-Client-Secret в каждом запросе. Если вы забудете их, вы получите понятную ошибку PostizCfAccessChallengeError вместо запутанного HTML-ответа.
Примеры промптов
"Перечисли интеграции в моем Postiz."
"Запланируй пост в Bluesky на завтра на 9 утра: 'Just shipped postiz-mcp.'"
"Какой следующий доступный слот для LinkedIn? Запланируй эту цепочку из 4 твитов на это время в X, установив ответы только для верифицированных пользователей."
"Что было опубликовано на прошлой неделе и как прошел пост в X во вторник?"
"Покажи мне схему настроек провайдера X, чтобы я мог составить полезную нагрузку для цепочки."
Схемы настроек провайдеров
postiz_get_provider_settings_schema возвращает встроенную ссылку на settings для каждого провайдера (распарсенную из docs.postiz.com/public-api/providers/{slug}.md). Используйте её перед postiz_create_post, когда вам нужны специфические для провайдера поля, такие как who_can_reply_post для X или audience для LinkedIn.
Схемы обновляются ежемесячно с помощью GitHub Actions, который открывает PR, если Postiz обновил документацию какого-либо провайдера. Чтобы обновить вручную:
npm run refresh-schemasРазработка
npm install
npm run typecheck
npm test
npm run buildЛицензия
MIT
Available Tools
20 toolspostiz_check_integrationA
Verify the configured Postiz API key is valid and reaches the configured baseUrl. Useful as a first call before any other tool — if this returns ok, every other tool can authenticate against the same instance.
Inputs: no named parameters.
postiz_connect_integrationA
Generate the OAuth authorization URL for connecting a new social channel. Returns a url the user must open in a browser to finish the flow — Postiz redirects back to its own callback. This tool does NOT run a callback server. Requires enableWrite.
Inputs: provider (required), refresh.
postiz_create_postA
Create, schedule, or immediately publish one or more posts via POST /api/posts. PUBLIC SIDE EFFECT: with type='now' or a near-term schedule, this lands on real social accounts. Use postiz_get_provider_settings_schema first to construct valid settings blocks. Requires enableWrite.
Inputs: type (required), date (required), posts (required), shortLink, +1 more.
postiz_delete_integrationA
Disconnect a connected social channel. Cascades — Postiz also deletes every scheduled post for that integration. Requires enableWrite + enableDelete + confirm=true. Returns ok:false / not_found on 404 (already disconnected).
Inputs: integrationId (required), confirm (required).
postiz_delete_postA
Delete a Postiz post by id. CASCADES — every post in the same group is removed. Already-published platform posts remain live. Requires enableWrite + enableDelete + confirm=true.
Inputs: postId (required), confirm (required).
postiz_delete_post_groupA
Delete every post in a group (cross-post unit) via DELETE /api/posts/group/{group}. Use when you want to retract a whole cross-post in one call. Requires enableWrite + enableDelete + confirm=true.
Inputs: group (required), confirm (required).
postiz_find_next_slotA
Return the next available posting time for a given integration. The slot respects the org's configured posting schedule, so this is the right answer to use as date in postiz_create_post when you don't have a specific time in mind.
Inputs: integrationId (required).
postiz_generate_videoA
Generate an AI video via POST /api/video/generate. COST IMPLICATION: video generation may bill against the configured Postiz video integration's credit pool. Requires enableWrite. Body shape is provider-specific — see Postiz video docs.
Inputs: body (required).
postiz_get_missing_contentA
Fetch recent platform-side content for a post whose Postiz releaseId is marked missing. Pair with postiz_update_post_release_id to reattach.
Inputs: postId (required).
postiz_get_platform_analyticsA
Get follower / impression / engagement analytics for a connected channel via GET /api/analytics/platform. Available metrics depend on what the platform exposes to Postiz.
Inputs: integrationId (required), date.
postiz_get_post_analyticsA
Get per-post engagement metrics (likes, comments, shares) via GET /api/analytics/post. Returns whatever the source platform exposes — different shape per provider.
Inputs: postId (required).
postiz_get_provider_settings_schemaA
Look up the settings block schema for a Postiz provider (X, LinkedIn, Reddit, etc.) — bundled at build time from docs.postiz.com. Returns a default-settings template, the provider's __type value, and (by default) the full markdown reference. Call this before postiz_create_post when you need provider-specific fields.
Inputs: provider (required), includeMarkdown.
postiz_list_integrationsA
List every connected social-media channel for the org behind the configured Postiz API key. Returns id, name, providerIdentifier (the value used as __type in post settings), profile, and disabled state. Use this BEFORE postiz_create_post to get the integration id you need to target.
Inputs: no named parameters.
postiz_list_notificationsA
List notifications, sorted most-recent first. Useful for surfacing posting failures, OAuth re-auth prompts, and new-feature notices Postiz shows in its UI.
Inputs: page.
postiz_list_postsA
List posts in a date range via GET /api/posts. Returns scheduled, queued, and published posts with their integration, content, state, and any platform release URL.
Inputs: startDate, endDate, display, customer.
postiz_list_voicesA
List available AI voices for video generation via GET /api/video/function?functionName=voices. Required input for postiz_generate_video — pick a voice id from the returned catalog.
Inputs: integrationId.
postiz_update_post_release_idA
Update the releaseId (and optionally releaseURL) of a Postiz post via PATCH /api/posts/{id}/release-id. Use to reconcile a Postiz post with the actual platform-side release after a missing-content event. Requires enableWrite.
Inputs: postId (required), releaseId (required), releaseURL.
postiz_update_post_statusA
Transition a Postiz post between DRAFT and QUEUE via PATCH /api/posts/{id}/status. Moving DRAFT→QUEUE re-enters the schedule using the post's existing publishDate. Requires enableWrite.
Inputs: postId (required), state (required).
postiz_upload_fileA
Upload a media file (image, video) to Postiz storage via POST /api/uploads/file. Returns { id, path } that you can pass into postiz_create_post value[].image[]. Requires enableWrite.
Inputs: filePath, base64, fileName, mimeType.
postiz_upload_from_urlA
Upload a media file from a public URL via POST /api/uploads/url. Postiz fetches the URL server-side, so this works for sources the MCP host can't reach. Returns { id, path } usable in postiz_create_post value[].image[]. Requires enableWrite.
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a unique action and resource type. For example, postiz_create_post, postiz_delete_post, and postiz_list_posts are clearly distinct. Even overlapping actions like postiz_delete_post and postiz_delete_post_group are differentiated by scope (single vs. group). Descriptions clarify boundaries effectively.
All tools follow a consistent 'postiz_verb_noun' pattern with underscore separation. Verbs like check, connect, create, delete, find, generate, get, list, update, and upload are used uniformly. There is no mixing of camelCase or other conventions.
With 20 tools, the set is slightly above the typical 'well-scoped' range (3-15) but still reasonable given the breadth of Postiz's functionality (post management, analytics, AI video, integrations, file uploads). Each tool serves a distinct purpose.
The tools cover the main lifecycle: integration management, post CRUD, analytics, file uploads, and AI video generation. Minor gaps include no direct 'get post by ID' (though list_posts can retrieve it) and no interaction management (comments, etc.), but core workflows are well-supported.
Maintenance
Related MCP Connectors
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Create, schedule, and publish social posts through the hosted SocialSpool MCP connector.
Publish, schedule, and manage social media posts across major platforms via the Postproxy API.
Manage social publishing workflows through OpenPost
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with the Postiz social media management platform through MCP tools. Supports creating and managing posts, retrieving integrations, and accessing account information through multiple transport protocols.2-

Postoria MCP Serverofficial
AlicenseAqualityBmaintenanceEnables MCP-compatible clients to create, schedule, queue, inspect, and delete Postoria posts through the Postoria Public API.1483 npm1MIT- AlicenseNot gradedqualityFmaintenanceMCP server for managing social media posts across multiple platforms using the Postiz API. Supports creating, updating, deleting posts, and generating videos.3MIT

@fopost/mcpofficial
AlicenseAqualityBmaintenanceEnables managing social media posts, accounts, and AI-powered content features from any MCP client, including scheduling, publishing, analysis, and AI caption generation.1468 npmMIT