linkedinmcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
💼linkedinmcp💼
one small php helper and mcp server for linkedin posting and your own member data. two apps, separate tokens, one tool set.
php
composer require vielhuber/linkedinmcpuse vielhuber\linkedinmcp\linkedinmcp;
$linkedin = new linkedinmcp();
$linkedin->profile();
$linkedin->snapshot(domain: 'PROFILE', start: 0);
$linkedin->posts(start: 0);
$linkedin->activity(startTime: $processedAt, count: 10);
$linkedin->memberAuthorization();
$linkedin->createPost(text: 'your approved text');
$linkedin->updatePost(postUrn: $postUrn, text: 'your approved replacement');
$linkedin->deletePost(postUrn: $postUrn);
$linkedin->uploadImage(filePath: '/absolute/path/to/image.png');
$linkedin->uploadVideo(filePath: '/absolute/path/to/video.mp4');
$linkedin->videoStatus(videoUrn: $mediaUrn);two separate apps and tokens:
app | token environment variable | scopes |
posting: openid connect + share on linkedin |
|
|
member data portability api (member) |
|
|
member access is region-dependent and limited to the app administrator's own data. keep both apps' identities separate. api versions: posting 202610, member 202312; override with LINKEDIN_POSTING_VERSION / LINKEDIN_MEMBER_VERSION.
php oauth: one Authorization(clientId: ..., clientSecret: ..., redirectUri: ...) per app; url($state, $scopes), verify state, exchangeCode($code). refresh only with an issued refresh token. oauth helpers are not mcp tools.
snapshots: page index
start; no-data response is http 404. no home feed.activity: 28 days after consent; cursor
processedAt, deduplicateactivityId, poll at most hourly.uploads return
id, not a post; videos must beAVAILABLE. image processing checks may require extra permissions.approve writes first. edits change commentary only; use exact share/ugcpost urns. never blindly retry uncertain writes.
Related MCP server: linkedin-mcp
mcp
{
"mcpServers": {
"linkedin": {
"command": "php",
"args": ["/absolute/path/to/vendor/bin/mcp-server.php"],
"env": {
"LINKEDIN_POSTING_ACCESS_TOKEN": "your-posting-access-token",
"LINKEDIN_MEMBER_ACCESS_TOKEN": "your-member-access-token"
}
}
}
}11 tools; php methods become snake_case tool names. stdio is private. http requires https and MCP_TOKEN.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
LinkedIn API as MCP tools to retrieve profile data and publish content. Powered by HAPI MCP.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Hosted MCP for Instagram, Facebook, X, LinkedIn, Pinterest, and Ghost. OAuth 2.1, 38 tools.
LinkedIn MCP with 47 tools: post, comment, DM and run comment-to-DM automations inside your limits.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to manage LinkedIn posts and view analytics through a set of MCP tools, including creating, reading, and deleting posts, checking authentication, and retrieving profile info.-
- AlicenseNot gradedqualityCmaintenanceEnables authenticated LinkedIn profile access, AI-assisted post drafting and publishing, job searching across multiple free boards, and local application tracking—all through MCP tools.MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to publish, edit, delete, comment on, and reshare posts; upload images, videos, and documents; and access optional reaction, engagement, and company-Page tools when authorized.10MIT
- AlicenseAqualityCmaintenanceEnables MCP-capable agents to read and update a LinkedIn profile, check and publish posts through the official LinkedIn API. Includes a built-in quality gate that blocks drafts reading as machine-generated before anything reaches the public feed.5MIT