Skip to content

LinkedIn API and MCP

LinkedIn provides authorized access to member profiles and publishing actions, subject to product permissions. An agent can read the connected profile and publish text posts for that account. Connect your LinkedIn account once with OAuth in Longwave; agents act only on that account.

Add to Longwave

Install elsewhere

Install LinkedIn

Choose a harness. These instructions connect to the hosted MCP endpoint shown on this page.

Claude Code

Run this in your terminal. It adds a user-scoped server; use --scope project instead if it should apply only to the current project.

terminal
claude mcp add --scope user --transport http linkedin https://api.longwave.run/v1/mcp/linkedin
functions
3
access
Connect account

Use LinkedIn on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Sign in to LinkedIn the first time an agent uses the server.
  3. Ask for the result in any thread, for example: “Read the profile used for a publishing task”. The agent picks the LinkedIn function and calls it.

LinkedIn functions

Function
longwave_linkedin_browse Read LinkedIn: fetch the connected member's OpenID profile (userinfo). Feed listing requires additional LinkedIn products/scopes beyond Share on LinkedIn.
longwave_linkedin_identity Return the connected LinkedIn member identity (/v2/userinfo). Use after connect or to confirm which account is active.
longwave_linkedin_submit Write to LinkedIn: publish a text post on the connected member's feed (w_member_social). Does not post to organization pages.

Use cases

Questions people ask

Which LinkedIn permission allows member text posts?

The w_member_social permission authorizes posting on behalf of the authenticated member. Access to other LinkedIn products can require separate approval. LinkedIn documentation

Does LinkedIn provide an unrestricted public profile API?

LinkedIn API access depends on the product and permissions granted to an application. Member profile access does not grant unrestricted access to every public profile. LinkedIn documentation

How do I add the LinkedIn MCP server to Claude Code?

Run claude mcp add --transport http linkedin https://api.longwave.run/v1/mcp/linkedin in a terminal. Sign in to LinkedIn the first time an agent uses the server.

Who publishes the LinkedIn MCP server?

Longwave publishes the LinkedIn MCP server that Longwave installs.

Use LinkedIn in Longwave

Call LinkedIn from any agent thread, on your machine or in the cloud.

Add to Longwave