loading…
Search for a command to run...
loading…
Integrates PostProxy API with Claude Code for publishing posts, checking statuses, and managing social media profiles across multiple platforms.
Integrates PostProxy API with Claude Code for publishing posts, checking statuses, and managing social media profiles across multiple platforms.
MCP (Model Context Protocol) server for integrating PostProxy API with Claude Code. This server provides tools for publishing posts, checking statuses, and managing social media profiles through Claude Code.
npm install -g postproxy-mcp
npm install postproxy-mcp
Claude Code stores MCP server configuration under ~/.claude/plugins/.
After installing postproxy-mcp, Claude will automatically detect the server on restart.
After installing postproxy-mcp, register it with Claude Code using the claude mcp add command:
claude mcp add --transport stdio postproxy-mcp --env POSTPROXY_API_KEY=your-api-key --env POSTPROXY_BASE_URL=https://api.postproxy.dev/api -- postproxy-mcp
Replace your-api-key with your actual PostProxy API key.
The configuration will be automatically saved to ~/.claude/plugins/. After running this command:
For non-technical users, you can use the interactive setup command:
postproxy-mcp setup
or
postproxy-mcp-setup
This will guide you through the setup process step by step and register the server using claude mcp add automatically.
auth_statusCheck authentication status, API configuration, and workspace information.
Parameters: None
Returns:
{
"authenticated": true,
"base_url": "https://api.postproxy.dev/api",
"profile_groups_count": 2
}
profiles_listList all available social media profiles for posting.
Parameters: None
Returns:
{
"profiles": [
{
"id": "profile-123",
"name": "My Twitter Account",
"platform": "twitter",
"profile_group_id": "group-abc"
}
]
}
profiles_placementsList available placements for a profile. For Facebook profiles, placements are business pages. For LinkedIn profiles, placements include the personal profile and organizations. For Pinterest profiles, placements are boards. For Telegram profiles, placements are channels the bot can post to. Available for facebook, linkedin, pinterest, and telegram profiles.
Parameters:
profile_id (string, required): Profile hashidReturns (LinkedIn example):
{
"placements": [
{
"id": null,
"name": "Personal Profile"
},
{
"id": "108520199",
"name": "Acme Marketing"
}
]
}
Notes:
chat_id is required on every postprofiles_statsGet the follower/engagement timeseries for a profile. Snapshots are captured roughly every 23 hours, so you can plot follower growth and other trends over time. The stats fields are platform-native (not normalized) — see Stats Fields by Platform in the post_stats section for shape and add-on profile-level keys (followers_count, followersCount, etc.) per network.
Parameters:
profile_id (string, required): Profile hashidplacement_id (string, conditional): Required for facebook, linkedin, and telegram profiles. Get it from profiles_placements. Omit for instagram, threads, youtube, twitter, tiktok, pinterest, and bluesky.from (string, optional): ISO 8601 timestamp — only include snapshots recorded at or after this timeto (string, optional): ISO 8601 timestamp — only include snapshots recorded at or before this timeReturns (LinkedIn example):
{
"data": {
"profile_id": "prof_li_001",
"platform": "linkedin",
"placement_id": "108520199",
"records": [
{ "stats": { "followerCount": 4500, "shareCount": 8, "likeCount": 80 }, "recorded_at": "2026-05-09T08:00:00Z" },
{ "stats": { "followerCount": 4520, "shareCount": 9, "likeCount": 90 }, "recorded_at": "2026-05-10T08:00:00Z" }
]
}
}
For non-placement networks (e.g. Bluesky), omit placement_id:
{
"data": {
"profile_id": "prof_bsky_001",
"platform": "bluesky",
"placement_id": null,
"records": [
{ "stats": { "followersCount": 8800, "postsCount": 40 }, "recorded_at": "2026-05-09T08:00:00Z" }
]
}
}
post_publishPublish a post to specified social media profiles.
Parameters:
content (string, required): Post content text
profiles (string[], required): Array of profile IDs (hashids) or platform names (e.g., "linkedin", "instagram", "twitter"). When using platform names, posts to the first connected profile for that platform.
schedule (string, optional): ISO 8601 scheduled time
media (string[], optional): Array of media URLs or local file paths
idempotency_key (string, optional): Idempotency key for deduplication
require_confirmation (boolean, optional): If true, return summary without publishing
draft (boolean, optional): If true, creates a draft post that won't publish automatically
queue_id (string, optional): Queue ID to add the post to. The queue will automatically assign a timeslot. Do not use together with schedule.
queue_priority (string, optional): Priority when adding to a queue: high, medium (default), or low
platforms (object, optional): Platform-specific parameters. Key is platform name (e.g., "instagram", "youtube", "tiktok"), value is object with platform-specific options. See Platform Parameters Reference for full documentation.
Example:
{
"instagram": {
"format": "reel",
"collaborators": ["username1", "username2"],
"first_comment": "Link in bio!"
},
"youtube": {
"title": "My Video Title",
"privacy_status": "public"
},
"tiktok": {
"privacy_status": "PUBLIC_TO_EVERYONE",
"auto_add_music": true
}
}
Returns:
{
"post_id": "job-123",
"accepted_at": "2024-01-01T12:00:00Z",
"status": "pending",
"draft": true
}
Note on draft posts: If you request a draft post (draft: true) but the API returns draft: false, a warning field will be included in the response indicating that the API may have ignored the draft parameter. This can happen if the API does not support drafts with certain parameters (e.g., media attachments) or under specific conditions. Check the warning field in the response for details.
post_statusGet status of a published post by job ID.
Parameters:
post_id (string, required): Post ID from post.publish responseReturns:
{
"post_id": "job-123",
"overall_status": "complete",
"draft": false,
"status": "processed",
"platforms": [
{
"platform": "twitter",
"status": "published",
"url": "https://twitter.com/status/123",
"post_id": "123",
"error": null,
"attempted_at": "2024-01-01T12:00:00Z"
}
]
}
Status values:
overall_status: "draft", "pending", "processing", "complete", "failed"status: "pending", "processing", "published", "failed", "deleted"error: Error message if publishing failed (null if successful)post_publish_draftPublish a draft post. Only posts with draft: true status can be published using this endpoint.
Parameters:
post_id (string, required): Post ID of the draft post to publishReturns:
{
"post_id": "job-123",
"status": "processed",
"draft": false,
"scheduled_at": null,
"created_at": "2024-01-01T12:00:00Z",
"message": "Draft post published successfully"
}
post_deleteDelete a post by job ID.
Parameters:
post_id (string, required): Post ID to deleteReturns:
{
"post_id": "job-123",
"deleted": true
}
post_statsGet stats snapshots for one or more posts. Returns all matching snapshots so you can see trends over time. Supports filtering by profiles/networks and timespan.
Parameters:
post_ids (string[], required): Array of post hashids (max 50)profiles (string, optional): Comma-separated list of profile hashids or network names (e.g. instagram,twitter or abc123,def456 or mixed)from (string, optional): ISO 8601 timestamp — only include snapshots recorded at or after this timeto (string, optional): ISO 8601 timestamp — only include snapshots recorded at or before this timeReturns:
{
"data": {
"abc123": {
"platforms": [
{
"profile_id": "prof_abc",
"platform": "instagram",
"records": [
{
"stats": {
"impressions": 1200,
"likes": 85,
"comments": 12,
"saved": 8
},
"recorded_at": "2026-02-20T12:00:00Z"
}
]
}
]
}
}
}
Stats fields by platform:
| Platform | Fields |
|---|---|
impressions, likes, comments, saved, profile_visits, follows |
|
impressions, clicks, likes |
|
| Threads | impressions, likes, replies, reposts, quotes, shares |
impressions, likes, retweets, comments, quotes, saved |
|
| YouTube | impressions, likes, comments, saved |
impressions |
|
| TikTok | impressions, likes, comments, shares |
impressions, likes, comments, saved, outbound_clicks |
Notes: Instagram stories do not return stats. TikTok stats require the post to have a public ID.
queues_listList all posting queues. Queues automatically schedule posts into recurring weekly timeslots with priority-based ordering.
Parameters:
profile_group_id (string, optional): Filter queues by profile groupReturns:
{
"queues": [
{
"id": "q1abc",
"name": "Morning Posts",
"description": "Daily morning content",
"timezone": "America/New_York",
"enabled": true,
"jitter": 10,
"profile_group_id": "pg123",
"timeslots": ["Monday at 09:00 (id: 1)", "Wednesday at 09:00 (id: 2)"],
"posts_count": 5
}
]
}
queues_getGet details of a single posting queue including its timeslots and post count.
Parameters:
queue_id (string, required): Queue IDqueues_createCreate a new posting queue with weekly timeslots.
Parameters:
profile_group_id (string, required): Profile group ID to connect the queue to (use profiles_list to find this)name (string, required): Queue namedescription (string, optional): Optional descriptiontimezone (string, optional): IANA timezone name (e.g. America/New_York). Default: UTCjitter (number, optional): Random offset in minutes (0–60) applied to scheduled times for natural posting patterns. Default: 0timeslots (array, optional): Initial weekly timeslots. Each object has day (0=Sunday through 6=Saturday) and time (24-hour HH:MM format)Example:
{
"profile_group_id": "pg123",
"name": "Weekday Mornings",
"timezone": "America/New_York",
"jitter": 10,
"timeslots": [
{ "day": 1, "time": "09:00" },
{ "day": 2, "time": "09:00" },
{ "day": 3, "time": "09:00" },
{ "day": 4, "time": "09:00" },
{ "day": 5, "time": "09:00" }
]
}
queues_updateUpdate a queue's settings, timeslots, or pause/unpause it. Changes to timezone or timeslots trigger rearrangement of all queued posts.
Parameters:
queue_id (string, required): Queue ID to updatename (string, optional): New queue namedescription (string, optional): New descriptiontimezone (string, optional): IANA timezone nameenabled (boolean, optional): Set to false to pause the queue, true to unpausejitter (number, optional): Random offset in minutes (0–60)timeslots (array, optional): Timeslots to add or remove. To add: { "day": 1, "time": "09:00" }. To remove: { "id": 42, "_destroy": true }.queues_deleteDelete a posting queue. Posts in the queue will have their queue reference removed but will not be deleted.
Parameters:
queue_id (string, required): Queue ID to deletequeues_next_slotGet the next available timeslot for a queue.
Parameters:
queue_id (string, required): Queue IDReturns:
{
"next_slot": "2026-03-11T14:00:00Z"
}
When publishing a post with post_publish, you can add it to a queue instead of scheduling it manually:
queue_id (string, optional): Queue ID to add the post to. The queue will automatically assign a timeslot. Do not use together with schedule.queue_priority (string, optional): Priority level: high, medium (default), or low. Higher priority posts get earlier timeslots.Example:
{
"content": "Queued post content",
"profiles": ["twitter", "linkedin"],
"queue_id": "q1abc",
"queue_priority": "high"
}
comments_listList comments on a published post. Returns paginated top-level comments with nested replies.
Parameters:
post_id (string, required): Post IDprofile_id (string, required): Profile ID to identify which platform's comments to retrievepage (number, optional): Page number, zero-indexed (default: 0)per_page (number, optional): Number of top-level comments per page (default: 20)Returns:
{
"total": 42,
"page": 0,
"per_page": 20,
"data": [
{
"id": "cmt_abc123",
"external_id": "17858893269123456",
"body": "Great post!",
"status": "synced",
"author_username": "someuser",
"like_count": 3,
"is_hidden": false,
"posted_at": "2026-03-25T10:00:00.000Z",
"replies": [
{
"id": "cmt_def456",
"body": "Thanks!",
"author_username": "author",
"parent_external_id": "17858893269123456"
}
]
}
]
}
comments_getGet a single comment with its replies.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment ID (Postproxy ID or platform external ID)profile_id (string, required): Profile IDcomments_createCreate a comment or reply on a published post. The comment is published to the platform asynchronously.
Parameters:
post_id (string, required): Post IDprofile_id (string, required): Profile IDtext (string, required): Comment text contentparent_id (string, optional): ID of comment to reply to (Postproxy ID or external ID). Omit to comment on the post itself.Returns:
{
"id": "cmt_ghi789",
"body": "Thanks for the feedback everyone!",
"status": "pending",
"external_id": null
}
The comment is created with status: "pending". Once published to the platform, it becomes "published". If publishing fails, it becomes "failed".
comments_deleteDelete a comment from the platform asynchronously. Supported on Instagram, Facebook, YouTube, and LinkedIn. Not supported on Threads.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment ID (Postproxy ID or external ID)profile_id (string, required): Profile IDcomments_hideHide a comment on the platform asynchronously. Supported on Instagram, Facebook, and Threads.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment IDprofile_id (string, required): Profile IDcomments_unhideUnhide a previously hidden comment. Supported on Instagram, Facebook, and Threads.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment IDprofile_id (string, required): Profile IDcomments_likeLike a comment on the platform asynchronously. Currently only supported on Facebook.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment IDprofile_id (string, required): Profile IDcomments_unlikeRemove a like from a comment. Currently only supported on Facebook.
Parameters:
post_id (string, required): Post IDcomment_id (string, required): Comment IDprofile_id (string, required): Profile ID| Action | Threads | YouTube | |||
|---|---|---|---|---|---|
| List | Yes | Yes | Yes | Yes | Yes |
| Reply | Yes | Yes | Yes | Yes | Yes |
| Delete | Yes | Yes | No | Yes | Yes |
| Hide/Unhide | Yes | Yes | Yes | No | No |
| Like/Unlike | No | Yes | No | No | No |
history_listList recent post jobs.
Parameters:
limit (number, optional): Maximum number of jobs to return (default: 10)Returns:
{
"jobs": [
{
"post_id": "job-123",
"content_preview": "Post content preview...",
"created_at": "2024-01-01T12:00:00Z",
"overall_status": "complete",
"draft": false,
"platforms_count": 2
}
]
}
Here are some example prompts you can use with Claude Code:
Check my PostProxy authentication status
Show me all my available social media profiles
Using profile IDs:
Publish this post: "Check out our new product!" to profiles ["profile-123"]
Using platform names:
Publish "Exciting news!" to linkedin and twitter
You can use platform-specific parameters to customize posts for each platform. The platforms parameter accepts an object where keys are platform names and values contain platform-specific options.
Regular Post with Collaborators:
Publish to Instagram: "Amazing content!" to my Instagram account with collaborators username1 and username2
Or with explicit parameters:
{
"content": "Amazing content!",
"profiles": ["instagram"],
"media": ["https://example.com/image.jpg"],
"platforms": {
"instagram": {
"format": "post",
"collaborators": ["username1", "username2"],
"first_comment": "What do you think? 🔥"
}
}
}
Instagram Reel:
{
"content": "Check out this reel! #viral",
"profiles": ["instagram"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"instagram": {
"format": "reel",
"collaborators": ["collaborator_username"],
"cover_url": "https://example.com/thumbnail.jpg",
"audio_name": "Trending Audio",
"first_comment": "Link in bio!"
}
}
}
Instagram Story:
{
"profiles": ["instagram"],
"media": ["https://example.com/story-image.jpg"],
"platforms": {
"instagram": {
"format": "story"
}
}
}
YouTube Video with Title and Privacy:
Upload this video to YouTube with title "My Tutorial" and make it public
Or with explicit parameters:
{
"content": "This is the video description with links and details",
"profiles": ["youtube"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"youtube": {
"title": "My Tutorial: How to Build an API",
"privacy_status": "public",
"cover_url": "https://example.com/custom-thumbnail.jpg"
}
}
}
Unlisted YouTube Video:
{
"content": "Video description",
"profiles": ["youtube"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"youtube": {
"title": "Private Tutorial",
"privacy_status": "unlisted"
}
}
}
Public TikTok with Auto Music:
{
"content": "Check this out! #fyp",
"profiles": ["tiktok"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"tiktok": {
"privacy_status": "PUBLIC_TO_EVERYONE",
"auto_add_music": true,
"disable_comment": false,
"disable_duet": false,
"disable_stitch": false
}
}
}
TikTok for Followers Only with AI Label:
{
"content": "Special content for followers",
"profiles": ["tiktok"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"tiktok": {
"privacy_status": "FOLLOWER_OF_CREATOR",
"made_with_ai": true,
"brand_content_toggle": false
}
}
}
Facebook Post with First Comment:
{
"content": "Check out our new product!",
"profiles": ["facebook"],
"media": ["https://example.com/product.jpg"],
"platforms": {
"facebook": {
"format": "post",
"first_comment": "Link to purchase: https://example.com/shop"
}
}
}
Facebook Story:
{
"profiles": ["facebook"],
"media": ["https://example.com/story-video.mp4"],
"platforms": {
"facebook": {
"format": "story"
}
}
}
Facebook Page Post:
{
"content": "Company announcement",
"profiles": ["facebook"],
"platforms": {
"facebook": {
"page_id": "123456789",
"first_comment": "Visit our website for more details"
}
}
}
Personal LinkedIn Post:
{
"content": "Excited to share my latest article on AI",
"profiles": ["linkedin"],
"media": ["https://example.com/article-cover.jpg"]
}
Company LinkedIn Post:
{
"content": "We're hiring! Join our team",
"profiles": ["linkedin"],
"media": ["https://example.com/careers.jpg"],
"platforms": {
"linkedin": {
"organization_id": "company-id-12345"
}
}
}
Plain Bluesky post (auto-faceted mentions/tags/links):
{
"content": "Hey @jay.bsky.team — check out our latest #ruby post: https://example.com/blog/post",
"profiles": ["bluesky"]
}
You don't need any markup — Postproxy auto-converts @handles, #tags, and URLs into AT Protocol facets, and generates a link card preview from the URL's Open Graph meta (when no media is attached). 300-grapheme limit.
Telegram channel post (HTML formatting):
{
"content": "<b>New release</b> — read more on our blog https://example.com/post",
"profiles": ["telegram"],
"platforms": {
"telegram": {
"chat_id": "-1001234567890",
"parse_mode": "HTML",
"disable_link_preview": true,
"disable_notification": false
}
}
}
Use profiles_placements against your Telegram profile to list channel chat_ids the bot can post to. The bot must be added to the channel as administrator with permission to post.
Same Content, Different Platforms:
{
"content": "New product launch! 🚀",
"profiles": ["instagram", "twitter", "linkedin"],
"media": ["https://example.com/product.jpg"]
}
Video Across Platforms with Specific Parameters:
{
"content": "Product launch video",
"profiles": ["instagram", "youtube", "tiktok"],
"media": ["https://example.com/video.mp4"],
"platforms": {
"instagram": {
"format": "reel",
"first_comment": "Link in bio!"
},
"youtube": {
"title": "Product Launch 2024",
"privacy_status": "public",
"cover_url": "https://example.com/yt-thumbnail.jpg"
},
"tiktok": {
"privacy_status": "PUBLIC_TO_EVERYONE",
"auto_add_music": true
}
}
}
Instagram:
format: "post" | "reel" | "story"collaborators: Array of usernames (max 10 for posts, 3 for reels)first_comment: String - comment to add after postingcover_url: String - thumbnail URL for reelsaudio_name: String - audio track name for reelstrial_strategy: "MANUAL" | "SS_PERFORMANCE" - trial strategy for reelsthumb_offset: String - thumbnail offset in milliseconds for reelsYouTube:
title: String - video titleprivacy_status: "public" | "unlisted" | "private"cover_url: String - custom thumbnail URLTikTok:
privacy_status: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY"photo_cover_index: Integer - index of photo to use as cover (0-based)auto_add_music: Boolean - enable automatic musicmade_with_ai: Boolean - mark content as AI-generateddisable_comment: Boolean - disable commentsdisable_duet: Boolean - disable duetsdisable_stitch: Boolean - disable stitchesbrand_content_toggle: Boolean - mark as paid partnership (third-party)brand_organic_toggle: Boolean - mark as paid partnership (own brand)Facebook:
format: "post" | "story"first_comment: String - comment to add after postingpage_id: String - page ID for posting to company pagesLinkedIn:
organization_id: String - organization ID for company page postsTelegram:
chat_id: String, required — destination channel/chat ID (use profiles_placements to list)parse_mode: "HTML" | "MarkdownV2" — omit for plain textdisable_link_preview: Boolean — suppress URL preview carddisable_notification: Boolean — send silently (no notification sound)Bluesky:
@handle.bsky.social mentions, #hashtags, and URLs and converts them to clickable facetsthread arrayTwitter/X & Threads:
For complete documentation, see the Platform Parameters Reference.
Create a draft post: "Review this before publishing" to linkedin
Publish draft post job-123
What's the status of job job-123?
This will show detailed status including draft status, platform-specific errors, and publishing results.
Delete post job-123
Show me the stats for post abc123
Get stats for posts abc123 and def456 filtered to Instagram only, from February 1st to today
Show me the placements for my LinkedIn profile prof123
Show me all my posting queues
Create a queue called "Weekday Mornings" for profile group pg123, timezone America/New_York, with timeslots Monday through Friday at 9am
Add a post to queue q1abc with high priority: "Check out our latest feature!"
Pause queue q1abc
What's the next available slot for queue q1abc?
Show me the comments on post abc123 for my Instagram profile prof456
Reply to comment cmt_abc123 on post abc123 with "Thanks for the feedback!" using profile prof456
Hide comment cmt_abc123 on post abc123 for profile prof456
Show me the last 5 posts I published
POSTPROXY_API_KEY is set when registering with claude mcp addpostproxy-mcp is installed and in PATHclaude mcp add and configuration is saved in ~/.claude/plugins/--env POSTPROXY_API_KEY=... when running claude mcp addprofiles_list to see available profiles.{"status":400,"error":"Bad Request","message":"..."}{"errors": ["Error 1", "Error 2"]} - Array of validation error messagesWhen checking post status with post_status, platform-specific errors are now available in the error field of each platform object:
error: null - Post published successfullyerror: "Error message" - Detailed error message from the platform APIIf you create a draft post (draft: true) but receive draft: false in the response:
warning field explaining that the API may have ignored the draft parameterwarning field in the response for detailsPOSTPROXY_MCP_DEBUG=1) to see detailed logging about draft parameter handlingEnable debug logging by setting POSTPROXY_MCP_DEBUG=1 when registering the server:
claude mcp add --transport stdio postproxy-mcp --env POSTPROXY_API_KEY=your-api-key --env POSTPROXY_BASE_URL=https://api.postproxy.dev/api --env POSTPROXY_MCP_DEBUG=1 -- postproxy-mcp
git clone https://github.com/postproxy/postproxy-mcp
cd postproxy-mcp
npm install
npm run build
npm run dev
MIT
Run in your terminal:
claude mcp add postproxy-mcp-server -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.