Skip to main content
Glama
pokakrisztian2

postlayer-connect

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X_API_KEYNoX (Twitter) API key.
X_API_SECRETNoX (Twitter) API secret.
REDDIT_CLIENT_IDNoReddit OAuth client ID.
POSTLAYER_ENC_KEYNoPassphrase used to encrypt stored tokens (AES-256-GCM). Recommended.
LINKEDIN_CLIENT_IDNoLinkedIn OAuth client ID.
POSTLAYER_DATA_DIRNoWhere tokens + the key live. Default ~/.postlayer-connect.
POSTLAYER_OAUTH_HOSTNoHost for local OAuth redirect listener. Default localhost.
POSTLAYER_OAUTH_PORTNoPort for local OAuth redirect listener. Default 8790.
REDDIT_CLIENT_SECRETNoReddit OAuth client secret.
LINKEDIN_CLIENT_SECRETNoLinkedIn OAuth client secret.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_platformsA

List every supported social platform, whether it works today or needs your own approved app, how you connect it, which credentials it needs, and what analytics it returns.

connect_accountA

Connect one of your social accounts. For OAuth platforms (LinkedIn, X, Reddit, Mastodon, Threads) this returns a URL to open in your browser; after you approve, the account is saved automatically. For credential platforms (Bluesky, Nostr, Discord, Telegram) pass the required fields and it connects immediately. Call with just a platform to see which fields it needs.

list_accountsA

List every social account you have connected, with its platform, handle, and account id (use the id in post / get_analytics).

postA

Publish a post to a connected account. Give the text, optionally media (local file path or public URL), and any per-platform settings (e.g. reddit {subreddit, title}). Target the account by account_id, or by platform if only one account is connected.

get_analyticsA

Read normalized analytics for one published post. Returns the metrics the platform actually exposes (a missing metric means the platform does not provide it — never a fake zero). Target by account_id or platform, plus the post_id returned by post.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pokakrisztian2/postlayer-connect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server