Skip to main content
Glama
sviera91

linkedin-mcp-server

by sviera91

LinkedIn MCP Server

A local-first MCP server for LinkedIn's official OAuth and REST APIs. Each user runs their own instance and supplies their own LinkedIn Developer application credentials.

Current capabilities

  • Connect a LinkedIn member account with 3-legged OAuth.

  • Read the authenticated member's OpenID profile and email.

  • Publish a confirmed text post as the authenticated member.

The server uses only LinkedIn's official APIs. It does not scrape LinkedIn pages, use browser cookies, search arbitrary people, read messages, or export connections.

LinkedIn API access is controlled by LinkedIn. A public copy of this project does not provide API access or bypass LinkedIn permissions. Users must create and configure their own LinkedIn Developer application.

Related MCP server: Networking MCP

Prerequisites

  1. Create a LinkedIn Developer application.

  2. Enable Sign In with LinkedIn using OpenID Connect and Share on LinkedIn.

  3. Add http://127.0.0.1:3000/oauth/callback as an authorized redirect URL.

  4. Copy the client ID and client secret into a local .env file.

Run locally

npm install
cp .env.example .env
npm run build
npm start

The server uses stdio, which is the simplest transport for Copilot CLI. Add it to your MCP configuration with the command and environment variables from .env.

Call linkedin_authenticate, open the returned URL, approve access, and then call linkedin_auth_status.

Example MCP configuration:

{
  "mcpServers": {
    "linkedin": {
      "command": "node",
      "args": ["/absolute/path/to/linkedin-mcp-server/dist/server.js"],
      "env": {
        "LINKEDIN_CLIENT_ID": "your-client-id",
        "LINKEDIN_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Security

  • Never commit .env or .data/.

  • The local token file is created with owner-only permissions.

  • Publishing requires an explicit confirm=true argument.

  • LinkedIn client secrets and tokens must stay server-side.

  • Never paste real credentials or token files into issues, pull requests, or public repositories.

License

MIT. See LICENSE.

Azure deployment plan

Azure is not required for the local version. Deploy only if the server must be available to multiple clients or run continuously.

The production design should use:

  • Azure Container Apps or Azure App Service for the MCP HTTP service.

  • Azure Key Vault for the LinkedIn client secret and encryption key.

  • Encrypted durable storage for refresh/access tokens.

  • A registered HTTPS redirect URL.

  • Authentication and audit logging before exposing the service outside the local machine.

The local stdio transport should remain the default for personal Copilot use; an Azure deployment is a separate production transport and security boundary.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    B
    maintenance
    A ToS-compliant Model Context Protocol server for LinkedIn that uses the official API for OAuth 2.0 authentication, profile reading, and content posting.
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Local-first MCP server for research on AI-assisted browsing of a user-owned professional-network account (e.g., LinkedIn), providing read-focused tools such as profile, company, search, and feed reads.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server that posts to LinkedIn through the LinkedIn API. Enables creating text posts on your LinkedIn profile using natural language from any MCP-compatible client.
    3
    ISC
  • F
    license
    -
    quality
    C
    maintenance
    MCP server for LinkedIn API integration. Enables authentication, profile access, connections, search, messaging, and feed management via OAuth2.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

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/sviera91/linkedin-mcp-server'

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