Installation
The MCP server needs tokens to access your LinkedIn account. Here's how to get them:
- Sign up at Linked API Platform.
- Choose your plan and complete the purchase.
- Connect your LinkedIn account (it takes about 2 minutes).
- Copy your tokens from the dashboard (as shown below):
LINKED_API_TOKEN
– your main token that enables Linked API access.IDENTIFICATION_TOKEN
– unique token for your LinkedIn account.

Multiple LinkedIn accounts:
If you have multiple LinkedIn accounts, you'll get a separate identification token for each one, and you can create multiple MCP server instances – one for each account.
Handling long-running workflows:
The configuration examples below include a HEALTH_CHECK_PERIOD
variable. Different applications (Claude, VS Code, Cursor, Windsurf) have different timeout limits for MCP tool calls. Since some LinkedIn workflows can take several minutes to complete, this setting helps the MCP server handle these longer operations correctly – preventing disconnections and ensuring your workflows run to completion.
Claude
Add this to your Claude Desktop configuration file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"linkedapi": {
"command": "npx",
"args": ["-y", "linkedapi-mcp@latest"],
"env": {
"LINKED_API_TOKEN": "your-linked-api-token-here",
"IDENTIFICATION_TOKEN": "your-identification-token-here",
"HEALTH_CHECK_PERIOD": "180"
}
}
}
}
Restart Claude Desktop after saving the config.
Cursor
Add this configuration to your Cursor settings:
{
"mcpServers": {
"linkedapi": {
"command": "npx",
"args": ["-y", "linkedapi-mcp@latest"],
"env": {
"LINKED_API_TOKEN": "your-linked-api-token-here",
"IDENTIFICATION_TOKEN": "your-identification-token-here",
"HEALTH_CHECK_PERIOD": "600"
}
}
}
}
You can also configure it through the UI: go to Cursor Settings > Tools & Integrations > MCP Tools Section, then click "New MCP Server" and paste the configuration.
VS Code
Install the MCP extension, then add this to your settings:
{
"mcpServers": {
"linkedapi": {
"command": "npx",
"args": ["-y", "linkedapi-mcp@latest"],
"env": {
"LINKED_API_TOKEN": "your-linked-api-token-here",
"IDENTIFICATION_TOKEN": "your-identification-token-here",
"HEALTH_CHECK_PERIOD": "600"
}
}
}
}
Windsurf
Add this to your Windsurf configuration file at ~/.codeium/windsurf/mcp_config.json
:
{
"mcpServers": {
"linkedapi": {
"command": "npx",
"args": ["-y", "linkedapi-mcp@latest"],
"env": {
"LINKED_API_TOKEN": "your-linked-api-token-here",
"IDENTIFICATION_TOKEN": "your-identification-token-here",
"HEALTH_CHECK_PERIOD": "600"
}
}
}
}
You can also configure it through the UI: go to Windsurf Settings > Advanced Settings > Cascade section, then click "Add Server" and paste the configuration.