Skip to main content

Configuration

linkedin mcp config saves three files in a per-user directory, each readable by you alone (mode 0600; on Windows, the folder's permissions):

FileHolds
.envThe app: LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET, and optionally LINKEDIN_REDIRECT_PORT and LINKEDIN_API_VERSION
credentials.jsonThe sign-in: access token, expiry, person URN, name, scopes
posts.jsonThe local list of posts

The directory is ~/.config/linkedin on Linux ($XDG_CONFIG_HOME/linkedin), ~/Library/Application Support/linkedin on macOS and %APPDATA%\linkedin on Windows. LINKEDIN_CONFIG points at another .env; the other two files sit beside it.

Environment​

Read by linkedin-mcp at launch, over the saved values:

VariableEffect
LINKEDIN_CONFIGAnother .env (and so another sign-in and post list)
LINKEDIN_ACCESS_TOKENUse this token instead of credentials.json; never saved
LINKEDIN_PERSON_URNWith a token: the author, sparing the userinfo call
LINKEDIN_API_VERSIONThe LinkedIn-Version header, YYYYMM (default 202609)
LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRETThe app, to refresh a token when LinkedIn gave a refresh token