MCP Server

Connect post2all to AI coding tools with the Model Context Protocol (MCP). After setup, tools like Cursor, Claude Code, Codex, and OpenCode can use your post2all account to list connected social accounts and create, schedule, or manage posts.

Prerequisites

  1. Create an API key in your post2all workspace from Settings → API Keys.
  2. Keep the key private. Do not commit it to your repository.
  3. Use the MCP server URL:
https://www.post2all.com/api/mcp

The server expects your API key as a bearer token:

Authorization: Bearer YOUR_POST2ALL_API_KEY

Cursor

Create or update .cursor/mcp.json in your project, or ~/.cursor/mcp.json for a global setup:

.cursor/mcp.json
{
  "mcpServers": {
    "post2all": {
      "url": "https://www.post2all.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:POST2ALL_API_KEY}"
      }
    }
  }
}

Then set the environment variable before opening Cursor:

export POST2ALL_API_KEY="YOUR_POST2ALL_API_KEY"

You can also paste the API key directly into headers, but environment variables are safer for shared project configs.

Claude Code

Add post2all as a remote HTTP MCP server:

export POST2ALL_API_KEY="YOUR_POST2ALL_API_KEY"

claude mcp add --transport http post2all https://www.post2all.com/api/mcp \
  --header "Authorization: Bearer ${POST2ALL_API_KEY}"

You can verify it from Claude Code with:

claude mcp list

Alternatively, add the JSON config to .mcp.json for a project-level setup:

.mcp.json
{
  "mcpServers": {
    "post2all": {
      "type": "http",
      "url": "https://www.post2all.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${POST2ALL_API_KEY}"
      }
    }
  }
}

Codex CLI

Add the server to ~/.codex/config.toml:

~/.codex/config.toml
[mcp_servers.post2all]
url = "https://www.post2all.com/api/mcp"
bearer_token_env_var = "POST2ALL_API_KEY"

Then export your API key before starting Codex:

export POST2ALL_API_KEY="YOUR_POST2ALL_API_KEY"

If you prefer explicit headers, use env_http_headers:

~/.codex/config.toml
[mcp_servers.post2all]
url = "https://www.post2all.com/api/mcp"

[mcp_servers.post2all.env_http_headers]
Authorization = "POST2ALL_AUTH_HEADER"
export POST2ALL_AUTH_HEADER="Bearer YOUR_POST2ALL_API_KEY"

OpenCode

Add the server to your opencode.json or opencode.jsonc config:

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "post2all": {
      "type": "remote",
      "url": "https://www.post2all.com/api/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "Authorization": "Bearer {env:POST2ALL_API_KEY}"
      }
    }
  }
}

Then set your API key:

export POST2ALL_API_KEY="YOUR_POST2ALL_API_KEY"

Testing the connection

Restart your coding tool after changing MCP config, then ask the agent something like:

What post2all tools are available?

or:

List my connected post2all social accounts.

If the server fails to connect, check that the API key is present in your shell environment, the header starts with Bearer , and the URL is exactly https://www.post2all.com/api/mcp.

On this page