LinkedIn Integration
Read LinkedIn OpenID profile data and publish member posts
The LinkedIn integration provides access to read LinkedIn OpenID profile data and publish member posts through the Integrate MCP server.
Installation
The LinkedIn integration is included with the SDK:
import { linkedinIntegration } from "integrate-sdk/server";Setup
1. Create a LinkedIn OAuth App
- Go to Linkedin Developer Portal
- Create a new OAuth application
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the LinkedIn integration to your server configuration. The integration automatically reads LINKEDIN_CLIENT_ID and LINKEDIN_CLIENT_SECRET from your environment variables:
import { createMCPServer, linkedinIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
linkedinIntegration({
scopes: ["openid", "profile", "email", "w_member_social"], // Optional
}),
],
});You can override the environment variables by passing explicit values:
linkedinIntegration({
clientId: process.env.CUSTOM_LINKEDIN_ID,
clientSecret: process.env.CUSTOM_LINKEDIN_SECRET,
scopes: ["openid", "profile", "email", "w_member_social"], // Optional
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("linkedin");
const result = await client.linkedin.getUserinfo({});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, linkedinIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [linkedinIntegration()],
});Configuration Options
Prop
Type
Default Scopes
These defaults are applied unless you override scopes in the integration config:
openidprofileemailw_member_social
Tools
linkedin_get_userinfo
Get userinfo
No parameters.
linkedin_create_post
Create post
Prop
Type
Notes
- Category: Social Media
- Authentication mode: OAuth