{"_id":"@bcharleson/linkedincli","_rev":"6-ae946a18184c21c2d269473115d4955f","name":"@bcharleson/linkedincli","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@bcharleson/linkedincli","version":"0.1.0","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.0","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"bin":{"linkedin":"dist/index.js"},"dist":{"shasum":"02ce562b597f867488a3357e9044360c5fa861f1","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.0.tgz","fileCount":8,"integrity":"sha512-mvAsJf/ST4ITXXjfI5bVG3mYvq4YDEC2k4M26z30mqPh0MDFevOhLwK2u/mYUIhVfJn8q+J2bg6zd/xcHNrv8g==","signatures":[{"sig":"MEUCIQDhduYxcXxK9DzScVMwY0EUJHH3Gs9KDNMAE5q1kVRJLAIgCyAYMZ9qNxoZf/58D7twrPJBEwxzlkP4dYgi18Nvz58=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":399636},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"413d4b6ca2f220c223f79874b3fc6d482fd64497","scripts":{"dev":"tsx src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"repository":{"url":"git+https://github.com/bcharleson/linkedincli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"zod":"^4.3.6","commander":"^14.0.3","@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkedincli_0.1.0_1773607466673_0.9422834789716363","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bcharleson/linkedincli","version":"0.1.1","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.1","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"bin":{"linkedin":"dist/index.js"},"dist":{"shasum":"da0415330aab475aff816710c9e47bdea3da0ea4","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.1.tgz","fileCount":8,"integrity":"sha512-ILzDHGRLbkR2tRfR6EQ13cvXTmBT3I2US/YuXje8T5okxPcg1imLBs5KvYh7j9PMi1CmglwZsGVLBbaB7sfuUw==","signatures":[{"sig":"MEUCIQDXfz32/Rc3O5j9+0iNaU0kfLhUzEXRdZFZTtRD2i6WsAIgKgnGwW9qelDOiD48iS04Oidi91ZMKoTDjv9c4fRUMl4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":399792},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"097b43e3bea5ea4bac748b981c22eda97912f50b","scripts":{"dev":"tsx src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"repository":{"url":"git+https://github.com/bcharleson/linkedincli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"zod":"^4.3.6","commander":"^14.0.3","@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkedincli_0.1.1_1773607913538_0.34230450508308596","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bcharleson/linkedincli","version":"0.1.2","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.2","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"bin":{"linkedin":"dist/index.js"},"dist":{"shasum":"25cf64b20db22e9a87909da85b8aa8cdb2cf87c2","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.2.tgz","fileCount":8,"integrity":"sha512-3qrWo8qU3VKxUWxd+aO/jbLZwdZqnGLwI25GB9M4gKrs99wO5ZvF/qT57LiLYXumlGVdvn9fM3MwP42RojYE/Q==","signatures":[{"sig":"MEUCIQDmbvH7YABcpW4xDyS9EAPTxUdZxFC4Uq5dv/JyQBSxqAIgZA7ITbHtCP4wv1fxkGjpwuYoZRtNsyN0q04CVlYFUFE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":399951},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"838d4229294c5689b65471c7ec057cf49894f7cb","scripts":{"dev":"tsx src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"repository":{"url":"git+https://github.com/bcharleson/linkedincli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"zod":"^4.3.6","commander":"^14.0.3","@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkedincli_0.1.2_1773608203559_0.45225779063851457","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bcharleson/linkedincli","version":"0.1.3","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.3","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"bin":{"linkedin":"dist/index.js"},"dist":{"shasum":"83af944d10ff59a8ee50b9a09e6543b065ef23e2","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.3.tgz","fileCount":8,"integrity":"sha512-RZIRoFz+1HUHLaO+9ueLKDjWQPN5Kbm7JMiQNAb4jECYHNBi2cnZhDUk4edUZfofQ1gM7T0mH864rk4iyKLI0A==","signatures":[{"sig":"MEUCIQClUYRBoQPUgBkpaIdIGlXioBCyxWKEaRkjJkYs7ena6gIgTfpFPD0ODEd6axah57CmG99G561TAJSfhXFIVvchWl8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":400526},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"6a58ccf37b21e2223abad32baaed0d4d90da4814","scripts":{"dev":"tsx src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"repository":{"url":"git+https://github.com/bcharleson/linkedincli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"zod":"^4.3.6","commander":"^14.0.3","@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkedincli_0.1.3_1773608531431_0.9555110737959145","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bcharleson/linkedincli","version":"0.1.4","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.4","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"bin":{"linkedin":"dist/index.js"},"dist":{"shasum":"b0822ff922b7fe038909c1053a5b59de1b1aa28b","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.4.tgz","fileCount":8,"integrity":"sha512-aLse3f+MM3uUbI+TE9zvozewuqoC2N+U3c1N0VvrfpYGkpRwTWqdd/mmTdDaizJkZzClBN5d3COYUs1eP0VSgA==","signatures":[{"sig":"MEQCIG2G4B2DGfEKeqx+oGCRI2hUh66T39JMMco1tDQ7U8anAiBWXA67plzNL3UnIx6Yo9/CM8lIRycfpWKVdMN15c+s2Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":403230},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"2e6d9fe8a70941e82051a522274ebe51f64a1653","scripts":{"dev":"tsx src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"repository":{"url":"git+https://github.com/bcharleson/linkedincli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"zod":"^4.3.6","commander":"^14.0.3","@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkedincli_0.1.4_1773608932491_0.5251401878851487","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bcharleson/linkedincli","version":"0.1.5","description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","type":"module","bin":{"linkedin":"dist/index.js"},"scripts":{"dev":"tsx src/index.ts","build":"tsup","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","lint":"eslint src/","prepublishOnly":"npm run build"},"engines":{"node":">=18.0.0"},"repository":{"type":"git","url":"git+https://github.com/bcharleson/linkedincli.git"},"homepage":"https://github.com/bcharleson/linkedincli#readme","bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"dependencies":{"@inquirer/prompts":"^8.3.0","@modelcontextprotocol/sdk":"^1.27.1","commander":"^14.0.3","zod":"^4.3.6"},"devDependencies":{"@types/node":"^22.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^3.2.4"},"keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"author":{"name":"Brandon Charleson"},"license":"MIT","_id":"@bcharleson/linkedincli@0.1.5","gitHead":"5867bc0875e858d32d0def03273a6cd3494a65c1","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-C1PbHtb/gas91/yI+A2FproPW08YodKp+X0+zwsNiUafrhUOA0CiRx5GOoXr2XGbvaQvm1PNzRb7HeA4bQ1eog==","shasum":"27bc4900fbe7eaef5cd195bcdc19e5d2d99072c1","tarball":"https://registry.npmjs.org/@bcharleson/linkedincli/-/linkedincli-0.1.5.tgz","fileCount":8,"unpackedSize":409917,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFf54ofOnBbqDrO0qTW65OmOBmYdWagd+9sQKKLCSZY9AiBgEmlYrntQPNgNM2jt5i+OMec7u8QIccDSTKX7VdMxsg=="}]},"_npmUser":{"name":"bcharleson","email":"b.charleson1@gmail.com"},"directories":{},"maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/linkedincli_0.1.5_1773624145990_0.4746766703105836"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-15T20:44:26.608Z","modified":"2026-03-16T01:22:26.244Z","0.1.0":"2026-03-15T20:44:26.832Z","0.1.1":"2026-03-15T20:51:53.700Z","0.1.2":"2026-03-15T20:56:43.708Z","0.1.3":"2026-03-15T21:02:11.592Z","0.1.4":"2026-03-15T21:08:52.681Z","0.1.5":"2026-03-16T01:22:26.143Z"},"bugs":{"url":"https://github.com/bcharleson/linkedincli/issues"},"author":{"name":"Brandon Charleson"},"license":"MIT","homepage":"https://github.com/bcharleson/linkedincli#readme","keywords":["linkedin","cli","mcp","mcp-server","automation","voyager-api","agent","ai","linkedin-api","linkedin-automation","cookie-auth","social-media","messaging","connections","posts","feed"],"repository":{"type":"git","url":"git+https://github.com/bcharleson/linkedincli.git"},"description":"CLI and MCP server for LinkedIn — 43 commands for profiles, posts, messaging, connections, search, feed, and more. Cookie session auth, AI agent native.","maintainers":[{"name":"bcharleson","email":"b.charleson1@gmail.com"}],"readme":"# linkedincli\n\nFull LinkedIn platform management from your terminal. 43 commands for profiles, posts, messaging, connections, search, feed, engagement, and more — powered by cookie session auth.\n\nWorks as a **CLI** and an **MCP server** (for Claude Code, Cursor, Windsurf, and other AI agents).\n\n## Install\n\n```bash\n# Install globally\nnpm install -g @bcharleson/linkedincli\n\n# This installs the `linkedin` command:\nlinkedin --help\n\n# Or run without installing\nnpx @bcharleson/linkedincli --help\n```\n\n> **Note:** The npm package is `@bcharleson/linkedincli` but the CLI command is just **`linkedin`**.\n\n## Quick Start\n\n### 1. Get Your Cookies\n\nOpen LinkedIn in your browser → DevTools (`F12`) → Application → Cookies → `linkedin.com`\n\nCopy these two values:\n- **`li_at`** — your session token (long string starting with `AQED...`)\n- **`JSESSIONID`** — your session ID (starts with `ajax:`)\n\n### 2. Login\n\n```bash\nlinkedin login\n# Paste your li_at and JSESSIONID when prompted\n```\n\nOr non-interactively:\n\n```bash\nlinkedin login --li-at \"AQEDxxxxxxx\" --jsessionid \"ajax:1234567890\"\n```\n\n### 3. Use It\n\n```bash\n# View your profile\nlinkedin profile me --pretty\n\n# Create a post\nlinkedin posts create --text \"Hello LinkedIn! Posted from my terminal.\"\n\n# Search for people\nlinkedin search people --keywords \"software engineer\" --network F --pretty\n\n# Check your messages\nlinkedin messaging conversations --pretty\n\n# React to a post\nlinkedin engage react 7123456789 --type LIKE\n```\n\n## All Commands\n\n### Profile (9 commands)\n\n```bash\nlinkedin profile me                           # Your own profile\nlinkedin profile view <public-id>             # View any profile\nlinkedin profile contact-info <public-id>     # Email, phone, websites\nlinkedin profile skills <public-id>           # List skills\nlinkedin profile network <public-id>          # Connections, followers, distance\nlinkedin profile badges <public-id>           # Premium, influencer, etc.\nlinkedin profile privacy <public-id>          # Privacy settings\nlinkedin profile posts <urn-id>               # Recent posts by a user\nlinkedin profile disconnect <public-id>       # Remove a connection\n```\n\n### Posts (3 commands)\n\n```bash\nlinkedin posts create --text \"My post\"                     # Text post\nlinkedin posts create --text \"With image\" --image ./pic.jpg  # Image post\nlinkedin posts create --text \"Inner circle\" --visibility connections\nlinkedin posts edit <share-urn> --text \"Updated text\"      # Edit a post\nlinkedin posts delete <share-urn>                          # Delete a post\n```\n\n### Feed (3 commands)\n\n```bash\nlinkedin feed view                            # Your feed (chronological)\nlinkedin feed view --count 50                 # More items\nlinkedin feed user <profile-id>               # Someone's activity\nlinkedin feed company <company-name>          # Company updates\n```\n\n### Engagement (5 commands)\n\n```bash\nlinkedin engage react <post-urn> --type LIKE          # Like\nlinkedin engage react <post-urn> --type PRAISE        # Celebrate\nlinkedin engage react <post-urn> --type EMPATHY       # Love\nlinkedin engage react <post-urn> --type INTEREST      # Insightful\nlinkedin engage react <post-urn> --type ENTERTAINMENT # Funny\nlinkedin engage react <post-urn> --type APPRECIATION  # Support\n\nlinkedin engage comment <post-urn> --text \"Great post!\"\nlinkedin engage comments-list <post-urn>\nlinkedin engage reactions <post-urn>\nlinkedin engage share <share-urn> --text \"Worth reading\"\n```\n\n### Connections (7 commands)\n\n```bash\nlinkedin connections send <profile-urn>                     # Send request\nlinkedin connections send <profile-urn> -m \"Let's connect!\" # With message\nlinkedin connections received                               # Pending received\nlinkedin connections sent                                   # Pending sent\nlinkedin connections accept <id> --secret <secret>          # Accept\nlinkedin connections reject <id> --secret <secret>          # Reject\nlinkedin connections withdraw <id>                          # Withdraw sent\nlinkedin connections remove <public-id>                     # Unfriend\n```\n\n### Messaging (6 commands)\n\n```bash\nlinkedin messaging conversations                        # All conversations\nlinkedin messaging conversation-with <profile-urn>      # With specific person\nlinkedin messaging messages <conversation-id>           # Read messages\nlinkedin messaging send <conversation-id> -t \"Hello!\"   # Reply\nlinkedin messaging send-new -r <urn1>,<urn2> -t \"Hi!\"   # New conversation\nlinkedin messaging mark-read <conversation-id>          # Mark as read\n```\n\n### Search (4 commands)\n\n```bash\nlinkedin search people --keywords \"CTO\" --network F         # 1st connections\nlinkedin search people --keywords \"engineer\" --company 1035 # At a company\nlinkedin search people --title \"VP Sales\" --geo 103644278   # By region\nlinkedin search companies --keywords \"AI startups\"\nlinkedin search jobs --keywords \"engineer\" --remote --experience 4\nlinkedin search posts --keywords \"AI trends\"\n```\n\n### Companies (3 commands)\n\n```bash\nlinkedin companies view <company-name>                  # Company info\nlinkedin companies follow <following-state-urn>         # Follow\nlinkedin companies unfollow <entity-urn>                # Unfollow\n```\n\n### Jobs (2 commands)\n\n```bash\nlinkedin jobs view <job-id>                  # Job details\nlinkedin jobs skills <job-id>                # Skill match insights\n```\n\n### Analytics (1 command)\n\n```bash\nlinkedin analytics profile-views             # Who viewed your profile\n```\n\n## Global Options\n\nEvery command supports these flags:\n\n| Flag | Description |\n|------|-------------|\n| `--li-at <cookie>` | Override li_at cookie |\n| `--jsessionid <cookie>` | Override JSESSIONID cookie |\n| `--output pretty` | Pretty-printed JSON |\n| `--pretty` | Shorthand for `--output pretty` |\n| `--quiet` | No output, exit codes only |\n| `--fields <list>` | Comma-separated fields to include |\n\n## Environment Variables\n\n```bash\nexport LINKEDIN_LI_AT=\"your_li_at_cookie\"\nexport LINKEDIN_JSESSIONID=\"your_jsessionid_cookie\"\n```\n\nAuth resolution order: `--li-at`/`--jsessionid` flags → env vars → `~/.linkedin-cli/config.json`\n\n## MCP Server (AI Agents)\n\nAll 43 commands are available as MCP tools for Claude Code, Cursor, Windsurf, and other AI agents.\n\n### Claude Code / Cursor / Windsurf\n\nAdd to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"linkedin\": {\n      \"command\": \"linkedin\",\n      \"args\": [\"mcp\"],\n      \"env\": {\n        \"LINKEDIN_LI_AT\": \"your_li_at_cookie\",\n        \"LINKEDIN_JSESSIONID\": \"your_jsessionid_cookie\"\n      }\n    }\n  }\n}\n```\n\nOr if using `npx`:\n\n```json\n{\n  \"mcpServers\": {\n    \"linkedin\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@bcharleson/linkedincli\", \"mcp\"]\n    }\n  }\n}\n```\n\nThen your AI agent can manage your entire LinkedIn presence — create posts, respond to messages, manage connections, search for people, and more.\n\n## Cookie Expiration\n\nLinkedIn `li_at` cookies expire periodically (usually every few weeks). When your session expires:\n\n```bash\nlinkedin status    # Check if session is valid\nlinkedin login     # Re-authenticate with new cookies\n```\n\n## Disclaimer\n\nThis tool uses LinkedIn's internal Voyager API via cookie session authentication. It is not affiliated with or endorsed by LinkedIn. Use responsibly and in compliance with LinkedIn's terms of service. The authors are not responsible for any account restrictions that may result from automated usage.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}