How to connect LinkedIn to Claude Code, ChatGPT and any AI agent
Yes, Claude, ChatGPT and other AI agents can work in your LinkedIn account. LinkedIn has no official MCP server, and most of its API needs an approved developer app. Cotlet.dev connects your own signed-in LinkedIn to any AI agent, so the AI schedules posts, answers comments and messages, and invites leads when you ask in plain words.
What you can ask
Schedule my next 5 posts for Tuesday and Thursday at 9 am.
Reply to the new comments on my last post. Show me the drafts first.
Invite these 20 people from my lead list to connect, with a short note.
Find heads of marketing at SaaS companies in Austin and list them.
Which unread messages are from potential clients? Summarize them.
Connect in 2 minutes
Get your API key at https://cotlet.dev/app and export it as COTLET_API_KEY.
Claude Code
claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"
ChatGPT
Settings → Apps → add connector URL https://cotlet.dev/mcp/v1, then sign in with Cotlet.dev. No API key needed.
Cursor
Copy .cursor/mcp.json from this repo into your project:
{
"mcpServers": {
"cotlet": {
"url": "https://cotlet.dev/mcp/v1",
"headers": {
"Authorization": "Bearer ${COTLET_API_KEY}"
}
}
}
}
Command line
Python 3.10+, nothing else to install. From PyPI:
pip install linkedin-cotlet-mcp # or run it once: uvx linkedin-cotlet-mcp connect
linkedin-cotlet-mcp connect
Or straight from this repo:
export COTLET_API_KEY="your-key"
python3 linkedin_agent.py connect # ready config for Claude Code, Cursor, ChatGPT
python3 linkedin_agent.py status # is LinkedIn ready in your Cotlet.dev account
python3 linkedin_agent.py guide # LinkedIn screens and sign-in link
python3 linkedin_agent.py read # open LinkedIn, read the page, close the browser
python3 linkedin_agent.py tools # list Cotlet.dev tools
Questions from LinkedIn users
Does LinkedIn have an MCP server?
LinkedIn has no official MCP server. Open-source servers run on your own computer; Cotlet.dev is hosted, works 24/7 in your own LinkedIn and connects to Claude, ChatGPT, Cursor and any MCP client.
How do I get a LinkedIn API key?
LinkedIn gives API keys to a registered developer app, and most products need LinkedIn's approval. With Cotlet.dev you need no LinkedIn API key: you sign in to LinkedIn once and your agent works there.
Is there an official ChatGPT or Claude app for LinkedIn?
Yes, but not for this. ChatGPT has LinkedIn apps for profile lookup and read-only ads reporting, and Claude has LinkedIn Hiring Pro for posting one job (checked 6 Nov 2026). None of them posts for you, answers comments and messages or invites leads. Cotlet.dev does that in your own LinkedIn account.
How do I connect LinkedIn to ChatGPT?
Add Cotlet.dev as an app in ChatGPT (Settings → Apps, connector URL https://cotlet.dev/mcp/v1), sign in to LinkedIn once in your Cotlet.dev Cloud Browser, and ask ChatGPT in plain words. No code and no LinkedIn API key.
Is there a way to use Claude with LinkedIn?
Yes. In Claude Code run the one-line claude mcp add command above; in the Claude app add https://cotlet.dev/mcp/v1 as a custom connector. Claude then works in your own LinkedIn account.
Also works with
Start free: https://cotlet.dev/signup?app=linkedin&utm_source=github&utm_medium=readme&utm_campaign=linkedin
Metadata
Release files for linkedin-cotlet-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linkedin_cotlet_mcp-1.0.0.tar.gz | 6.2 kB | With provenance | Details for linkedin_cotlet_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linkedin_cotlet_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for linkedin_cotlet_mcp-1.0.0-py3-none-any.whl |
Total release size: 12.9 kB
Release files / linkedin_cotlet_mcp-1.0.0.tar.gz
| Download URL | linkedin_cotlet_mcp-1.0.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67f803e50e627ecc46663d7407e04931c467c99e466898f3c1f2f67e6e3b6a18
|
|
BLAKE2b-256 checksum How to use checksums |
9e93036d88561c13ecb8dd93e7518a4cce07673c32e4aa73aa3f3e40165eaf53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / linkedin_cotlet_mcp-1.0.0-py3-none-any.whl
| Download URL | linkedin_cotlet_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
646d76cd38d3208ffc3f6b6d8327c04d5917eac23b3de6c9dd1d5ab6a2ca3b3e
|
|
BLAKE2b-256 checksum How to use checksums |
c8f95d22cb767c26139a60909f6b063abdc78c7c3983c919936d04dd6a2e5beb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for linkedin-cotlet-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for linkedin_cotlet_mcp-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.