hilderbrandisaac-ui/linkedin-mcp-server-final
If you are the rightful owner of linkedin-mcp-server-final and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The LinkedIn MCP Server is a serverless Model Context Protocol (MCP) server designed to facilitate interactions between AI models and LinkedIn through a standardized interface.
LinkedIn MCP Server
A serverless Model Context Protocol (MCP) server that enables AI models like ChatGPT and Claude to interact with LinkedIn through a standardized interface. Built for developers learning MCP server development.
Features
- ** Zero Cost**: Hosted entirely on GitHub Pages for free
- ** Easy Integration**: Simple URL endpoint for AI model connection
- ** LinkedIn Tools**: Profile access, posting, organization search
- ** CORS Enabled**: Works with web-based AI clients
- ** Serverless**: Powered by GitHub Actions and Service Workers
- ** Learning-Friendly**: Well-documented code structure for beginners
Project Structure
linkedin-mcp-server/
āāā src/
ā āāā public/
ā āāā index.html # Main server interface
ā āāā mcpServer.js # MCP server implementation
ā āāā sw.js # Service worker for request handling
āāā examples/
ā āāā test-requests.json # Example API requests
ā āāā test-server.js # Test script
āāā .github/
ā āāā workflows/
ā āāā deploy.yml # GitHub Actions deployment
āāā package.json # Node.js package configuration
āāā README.md # This file
Quick Start
For AI Models (ChatGPT, Claude, etc.)
Use this MCP server endpoint:
https://YOUR_USERNAME.github.io/linkedin-mcp-server/mcp
Available Tools
Tool | Description | Parameters |
---|---|---|
get_profile | Get LinkedIn profile information | None |
create_post | Create LinkedIn posts | text , visibility |
search_organizations | Search for organizations | query , limit |
get_organizations | Get user's organization access | role (optional) |
Setup & Deployment
Quick Deploy
- Fork this repository
- Enable GitHub Pages in repository settings
- Your MCP server will be live at
https://yourusername.github.io/linkedin-mcp-server
Local Development
git clone https://github.com/YOUR_USERNAME/linkedin-mcp-server.git
cd linkedin-mcp-server
python -m http.server 8000 --directory src/public
Usage Examples
ChatGPT Integration
- Add MCP server:
https://yourusername.github.io/linkedin-mcp-server/mcp
- Test: "Use LinkedIn to get my profile information"
API Testing
curl -X POST https://your-server.com/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Testing
Run the built-in tests by visiting your deployed server and clicking the test buttons, or use the examples in examples/test-requests.json
.
MCP Protocol Compliance
- ā JSON-RPC 2.0 over HTTP
- ā
tools/list
andtools/call
methods - ā Proper error handling
- ā CORS support
- ā Service Worker architecture
š¤ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally
- Submit a pull request
License
MIT License - feel free to use this for your own projects!