3.5 KiB
3.5 KiB
Hermes MCP — LinkedIn Setup Guide
Date: 2026-05-01 Project: hermes-mcp Status: Deployed, pending credentials
What was deployed
LinkedIn integration added to hermes-mcp with 4 MCP tools:
| Tool | Status |
|---|---|
linkedin_get_profile |
✅ Works with valid token |
linkedin_create_post |
✅ Works with valid token |
linkedin_search_connections |
⚠️ Requires LinkedIn Partnership Program |
linkedin_send_message |
⚠️ Requires LinkedIn Partnership Program |
How to get a LinkedIn access token
Step 1: Create a LinkedIn app
- Go to linkedin.com/developers
- Sign in with your LinkedIn account
- Click Create app
- Fill in:
- App name:
SquareMCP(or whatever you want) - LinkedIn Page: Your company page (or personal page)
- Privacy policy URL: Can be
https://fetcherpay.com/privacyfor now - App logo: Optional
- App name:
Step 2: Add the products you need
In your app dashboard, go to Products and request:
- Sign In with LinkedIn (gives
r_liteprofile) - Share on LinkedIn (gives
w_member_social)
LinkedIn will review these — usually approved instantly for personal/developer use.
Step 3: Get your Client ID and Secret
In the app dashboard → Auth tab:
- Client ID (looks like:
86abcdef123456789) - Client Secret (click the eye icon to reveal)
Step 4: Generate an access token
Option A: OAuth 2.0 test tool (easiest)
- In the app dashboard → Auth → scroll to OAuth 2.0 tools
- Click Generate token
- Select scopes:
r_liteprofile+w_member_social - Click Request Access Token
- Copy the token (starts with
AQ...orAQUA...)
Option B: Manual OAuth flow
If the test tool doesn't work, use the manual flow:
# 1. Open this URL in your browser (replace CLIENT_ID):
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://fetcherpay.com/callback&scope=r_liteprofile%20w_member_social
# 2. After approving, you'll get a code in the URL
# 3. Exchange it for a token:
curl -X POST https://www.linkedin.com/oauth/v2/accessToken \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code" \
-d "code=YOUR_CODE" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "redirect_uri=https://fetcherpay.com/callback"
Step 5: Deploy the token
microk8s kubectl set env deployment/hermes-mcp -n fetcherpay \
LINKEDIN_DEFAULT_ACCESS_TOKEN="your-token-here"
Files changed for LinkedIn
src/clients/linkedin.ts— LinkedIn API clientsrc/tools.ts— 4 LinkedIn tool definitions + dispatch casessrc/index.ts— 4 REST passthrough endpointssrc/manifest.ts— LinkedIn tools + category.env.example—LINKEDIN_DEFAULT_*env vars
Environment variables
LINKEDIN_DEFAULT_ACCESS_TOKEN=your-linkedin-access-token
LINKEDIN_DEFAULT_CLIENT_ID=your-linkedin-client-id
LINKEDIN_DEFAULT_CLIENT_SECRET=your-linkedin-client-secret
For additional accounts, duplicate with LINKEDIN_{ACCOUNT}_*.
Next steps
- Create LinkedIn app
- Request
Sign In with LinkedInandShare on LinkedInproducts - Generate access token
- Add
LINKEDIN_DEFAULT_ACCESS_TOKENto K8s deployment - Smoke-test
linkedin_get_profileandlinkedin_create_post - Apply for LinkedIn Partnership Program if connections/messaging needed