Publer Gateway MCP
Click on "Deploy 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., "@Publer Gateway MCP List my Publer workspaces."
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.
Publer Gateway MCP
One safe MCP doorway into every Publer workspace you manage.
Publer Gateway MCP is a TypeScript MCP server for teams, agencies, and solo builders who use Publer across more than one brand, business, client, or social account set. It gives Codex, Claude, and other MCP clients a careful way to discover Publer workspaces, map projects to the right account defaults, preview scheduling payloads, and only perform live writes after explicit approval.
It is built for the work that happens before the post goes out: choosing the right workspace, checking the right accounts, preparing platform-aware payloads, reviewing the dry run, and keeping secrets out of the repo.
Why This Exists
Most social scheduling automations assume one account, one workspace, one happy path. Real Publer usage is messier:
one API key may see multiple businesses or workspaces
one repo may map to a specific client, brand, or product
posts need preview and approval before a scheduling write
agents need guardrails so they do not publish to the wrong account
API keys must stay local, server-side, and out of chat transcripts
Publer Gateway MCP turns that into a safer workflow.
flowchart LR
A["Codex / Claude / MCP client"] --> B["Publer Gateway MCP"]
B --> C["Local secret env<br/>PUBLER_API_KEY"]
B --> D["Local non-secret defaults<br/>project -> workspace/accounts"]
B --> E["Publer API"]
E --> F["Workspaces"]
E --> G["Accounts"]
E --> H["Posts, media, jobs, analytics"]Related MCP server: @fopost/mcp
What You Get
Workspace-aware Publer access from a single MCP server.
Project defaults stored locally outside app repos by default.
Read tools for workspaces, accounts, posts, jobs, best times, and analytics.
Write-capable tools that preview first and require
dryRun: falseplusconfirm: true.Reusable Codex/agent skills for safe Publer workflows.
Mocked tests, MIT license, security notes, examples, and CI.
Safety Model
Publer Gateway MCP is intentionally conservative.
Area | Default behavior |
API keys | Read from local environment only. Never stored in project defaults. |
Project defaults | Store workspace/account IDs only. No secrets. |
Read tools | May call Publer directly. |
Write tools | Return previews unless the call explicitly sets |
Media URL previews | Redact full URL; show host only to avoid leaking signed URLs. |
Errors | Return safe status/message without API keys or raw auth headers. |
Tool Surface
Tool | Purpose | Write risk |
| List available Publer businesses/workspaces. | Read |
| List connected social accounts in a workspace. | Read |
| Read local project routing defaults. | Local read |
| Set local workspace/account defaults for a project. | Local write |
| Build a Publer schedule payload without calling Publer writes. | Preview |
| Schedule a post only with explicit live-write confirmation. | Publer write |
| List scheduled, draft, failed, or published posts. | Read |
| Import media from a URL, preview-first. | Publer write |
| Poll async Publer jobs. | Read |
| Retrieve best-time suggestions for an account. | Read |
| Retrieve analytics charts or post insights. | Read |
Install
npm install
npm run build
npm testRun the MCP server with your MCP client. Set PUBLER_API_KEY through the client environment, a local process manager, or a trusted secret manager. Avoid putting real keys directly in shell commands that may be saved to history.
Configuration
Name | Required | Default | Description |
| yes | none | Publer API key from your local Publer account settings. |
| no |
| Override for testing or future API changes. |
| no |
| Keeps write-capable tools in preview mode by default. Live writes still require call-level |
| no | OS config folder | Path for non-secret project default mappings. |
MCP Client Examples
Codex
{
"mcpServers": {
"publer-gateway": {
"command": "node",
"args": ["/absolute/path/to/publer-gateway-mcp/dist/src/index.js"],
"env": {
"PUBLER_API_KEY": "set-this-locally",
"PUBLER_DEFAULT_DRY_RUN": "true"
}
}
}
}Claude Desktop
{
"mcpServers": {
"publer-gateway": {
"command": "node",
"args": ["/absolute/path/to/publer-gateway-mcp/dist/src/index.js"],
"env": {
"PUBLER_API_KEY": "set-this-locally",
"PUBLER_DEFAULT_DRY_RUN": "true"
}
}
}
}Recommended Workflow
Call
publer_list_workspaces.Pick the correct business/workspace.
Call
publer_list_accountsfor that workspace.Call
publer_set_project_defaultwith the project path, workspace ID, and target account IDs.Call
publer_preview_schedule_post.Review workspace, accounts, schedule, copy, media, and platform payload.
Only after explicit approval, call
publer_schedule_postwithdryRun: falseandconfirm: true.Poll
publer_get_job_statusif Publer returns a job ID.
Included Agent Skills
The skills/ folder is part of the product, not an afterthought. These skills teach future agents how to use the MCP without drifting into unsafe publishing behavior.
Skill | Use it for |
| General safe use of the MCP server. |
| Preparing, previewing, and scheduling approved social content. |
| Mapping projects, repos, clients, and brands to Publer workspace/account defaults. |
| Retrieving and interpreting Publer analytics and best-time suggestions. |
Copy these folders into a compatible Codex skill directory or package them with your own agent setup.
Example Preview Call
{
"projectPath": "/work/acme-launch",
"text": "Launch week starts now. See what shipped today.",
"scheduledAt": "2026-07-14T15:00:00Z"
}The preview tool returns the exact Publer payload it would send. The live scheduling tool will not call Publer unless the caller adds:
{
"dryRun": false,
"confirm": true
}Development
npm install
npm run build
npm test
npm pack --dry-runTests use mocked Publer responses and do not call real Publer endpoints.
Project Plan
See docs/PROJECT_PLAN.md for the v1 milestone breakdown and acceptance criteria.
Security
See SECURITY.md. The short version: do not paste Publer secrets into chat, do not commit .env, and do not grant live write approval until the exact payload is reviewed.
License
MIT. Use it, fork it, improve it, and ship safer social automation.
Available Tools
11 toolspubler_get_analyticsC
Get Publer analytics charts or post insights for a workspace/account.
Inputs: to, from, metric, accountId, +2 more.
publer_get_best_timesC
Get Publer best-time suggestions for an account.
Inputs: accountId (required), projectPath, workspaceId.
publer_get_job_statusC
Get status for an async Publer job such as scheduling or media import.
Inputs: jobId (required).
publer_get_project_defaultA
Read the local non-secret Publer default workspace/account mapping for a project path.
Inputs: projectPath.
publer_list_accountsC
List social accounts in a Publer workspace. Use workspaceId or a project default.
Inputs: projectPath, workspaceId.
publer_list_postsC
List posts by state/date/search for a workspace or project default.
Inputs: to, from, state, search, +2 more.
publer_list_workspacesA
List Publer workspaces/businesses available to the API key.
Inputs: no named parameters.
publer_preview_schedule_postB
Build and validate a Publer schedule payload without calling Publer write endpoints.
Inputs: text, mediaIds, networks, accountIds, +3 more.
publer_schedule_postC
Schedule a post only when dryRun is false and confirm is exactly true.
Inputs: text, dryRun, confirm, mediaIds, +5 more.
publer_set_project_defaultC
Set a local non-secret project default workspace and optional account IDs.
Inputs: workspaceId (required), accountIds, projectPath.
publer_upload_media_from_urlC
Import media from a URL. Defaults to dry-run unless confirm is true and dryRun is false.
Inputs: url (required), title, dryRun, altText, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct operation: analytics, best times, job status, defaults, accounts, posts, workspaces, preview, schedule, set default, and media upload. No overlapping purposes.
All tools follow the consistent pattern 'publer_verb_noun' with lowercase and underscores, using clear verbs like 'get', 'list', 'preview', 'schedule', 'set', and 'upload'.
With 11 tools, the set covers workspace management, account listing, post operations, analytics, and media handling—well-scoped for a social media scheduling gateway.
Covers core workflows but lacks key post life cycle operations: no update or delete for posts, and no individual post retrieval by ID, which are notable gaps.
Maintenance
Related MCP Connectors
Agent-first social media publishing, scheduling, analytics, and unified inbox API + 16-tool MCP server across 18 social platforms (X, LinkedIn, Instagram, YouTube, TikTok, Threads, Bluesky, Reddit, Telegram, Discord, Mastodon, Facebook, Pinterest).
Social media MCP: publish, schedule & analyze posts on TikTok, Instagram, YouTube, LinkedIn & X
Schedule and publish social media posts, organize media, and keep each brand in its own workspace.
Create, schedule and publish social posts to 13 platforms for your brands.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for Publer social media management API, enabling AI assistants to schedule posts, upload media, pull analytics, and manage accounts across 15+ social networks.1537 npm22MIT

@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.1423 npmMIT- AlicenseNot gradedqualityBmaintenanceA hosted MCP server that lets AI assistants schedule and publish social media posts across Instagram, TikTok, X, LinkedIn, YouTube, Pinterest, Facebook, Telegram, Threads, and Bluesky. It provides tools for managing accounts, posts, media, and analytics, including post previewing before publishing.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create, schedule, and analyze LinkedIn and X content, manage ideas, media, and a creator knowledge vault, and run approval-gated outreach campaigns through a hosted MCP endpoint.MIT