Skip to main content
Glama
lanternrow

linkedin-pages-mcp

by lanternrow

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LINKEDIN_VERSIONNoLinkedIn API version header value (default 202606). Bump when LinkedIn sunsets versions.202606
LINKEDIN_CLIENT_IDNoYour LinkedIn app client ID. Required if you want automatic token refresh.
LINKEDIN_ACCESS_TOKENYesYour 3-legged OAuth member access token for the LinkedIn Community Management API. This is the only hard requirement.
LINKEDIN_CLIENT_SECRETNoYour LinkedIn app client secret. Required if you want automatic token refresh.
LINKEDIN_REFRESH_TOKENNoYour LinkedIn refresh token. Required if you want automatic token refresh.
LINKEDIN_ORGANIZATION_IDNoOptional organization ID to pre-select a specific Company Page.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_connectionA

Verify the LinkedIn API token works and list the Company Pages the authenticated member administers. Lightweight call to confirm credentials + access.

list_organizationsA

List the Company Pages (organizations) the authenticated member can manage, with their URNs/ids. Use these ids with the analytics tools.

get_organizationA

Get a Company Page's profile (name, vanity, description) plus its total follower count.

get_follower_statisticsA

Follower analytics for a Company Page. Lifetime mode (omit start/end) returns demographic breakdowns by seniority, function, industry, company size, and geography. Time-bound mode returns organic/paid follower gains per bucket.

get_page_statisticsA

Page view analytics for a Company Page: views and unique visitors, split by section (overview/careers/jobs/life) and device (desktop/mobile), plus visitor demographics. Lifetime or time-bound (DAY/MONTH).

get_share_statisticsA

Organic post/share analytics for a Company Page: impressions, unique impressions, clicks, reactions, comments, shares, and engagement rate. Aggregate (omit start/end) or time-bound. Sponsored activity is excluded.

list_postsA

List an organization's posts (content + metadata: text, timestamps, lifecycle, distribution). Take a returned post id and pass it to per-post share statistics for engagement.

refresh_tokenA

Mint a fresh LinkedIn access token (and refresh token) from the configured refresh credentials. Returns the new values to persist into your .env. Requires LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET, and LINKEDIN_REFRESH_TOKEN.

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/lanternrow/linkedin-pages-mcp'

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