Back to Directory/Media & Images

PostHero

PostHero MCP server — schedule and publish social media posts from any MCP-compatible AI tool

Media & ImagesJavaScriptv0.1.1

@posthero/mcp

MCP (Model Context Protocol) server for PostHero — schedule and publish social media posts from Claude Desktop, Cursor, VS Code, Windsurf, and any MCP-compatible AI tool.

Quick start

1. Get your API key

Sign up at posthero.ai and grab your key from Settings > API.

2. Add to your MCP client

Claude Desktop — edit claude_desktop_config.json:

{
  "mcpServers": {
    "posthero": {
      "command": "npx",
      "args": ["-y", "@posthero/mcp"],
      "env": {
        "POSTHERO_API_KEY": "pk_your_api_key_here"
      }
    }
  }
}

Cursor — edit .cursor/mcp.json:

{
  "mcpServers": {
    "posthero": {
      "command": "npx",
      "args": ["-y", "@posthero/mcp"],
      "env": {
        "POSTHERO_API_KEY": "pk_your_api_key_here"
      }
    }
  }
}

VS Code — edit .vscode/mcp.json:

{
  "servers": {
    "posthero": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@posthero/mcp"],
      "env": {
        "POSTHERO_API_KEY": "pk_your_api_key_here"
      }
    }
  }
}

3. Use it

Ask your AI assistant to post to social media:

"Schedule a LinkedIn post about our new feature launch for tomorrow at 9am"

"Create a Twitter thread about the benefits of remote work and publish it now"

"Show me my top-performing posts on Threads this month"

Available tools

ToolDescription
list_accountsList connected social media accounts
create_postCreate, schedule, or publish a post
list_postsList posts with filters (status, platform)
get_postGet full details of a post
update_postUpdate a draft or scheduled post
delete_postDelete a post from PostHero
publish_postImmediately publish a draft/scheduled post
get_analytics_summaryAggregated analytics for a platform
get_top_postsTop-performing posts ranked by metric

Supported platforms

LinkedIn, Twitter/X, Instagram, Facebook, YouTube, TikTok, Threads, Bluesky

Environment variables

VariableDescription
POSTHERO_API_KEYRequired. Your PostHero API key (pk_...)
POSTHERO_BASE_URLOverride API base URL (default: https://server.posthero.ai/api/v1)

License

MIT

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @posthero/mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "ai-posthero-posthero": {
      "command": "npx",
      "args": [
        "-y",
        "@posthero/mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@posthero/mcpnpm

Compatible MCP Clients

PostHero works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More