Self-hosted LinkedIn posting via Claude & MCP

Post to LinkedIn. Ask Claude.

Wire Claude to your self-hosted backend — no third-party services, no code reads your credentials.

✓ MCP protocol implemented ✓ OAuth 2.0 with LinkedIn ✓ Tokens encrypted at rest

⚡ Fast API

REST API on port 8000. OAuth consent flow, token refresh, post history, and audit log.

🧩 MCP bridge

Claude Desktop & Claude Code connect via MCP stdio — zero credentials exposed.

🔒 Self-hosted

You control the data. Tokens stored encrypted on your machine. No third-party tracking.

Configure

Copy .env.example to .env, add your LinkedIn Client ID & Secret.

Run backend

python3 main.py — the API starts on port 8000 with a baked-in auth URL.

Connect Claude

Point Claude Desktop at this MCP server. Done — ask Claude to post.

Post legally

Every post requires LinkedIn OAuth consent. No ToS violations, no automation bypass.

Ready to deploy?

Your Cloudflare Pages project is configured at cloudflare-page/