linkedin-mcp-server-final

hilderbrandisaac-ui/linkedin-mcp-server-final

3.2

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.

Tools
4
Resources
0
Prompts
0

LinkedIn MCP Server

License: MIT MCP Protocol

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

ToolDescriptionParameters
get_profileGet LinkedIn profile informationNone
create_postCreate LinkedIn poststext, visibility
search_organizationsSearch for organizationsquery, limit
get_organizationsGet user's organization accessrole (optional)

Setup & Deployment

Quick Deploy

  1. Fork this repository
  2. Enable GitHub Pages in repository settings
  3. 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

  1. Add MCP server: https://yourusername.github.io/linkedin-mcp-server/mcp
  2. 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 and tools/call methods
  • āœ… Proper error handling
  • āœ… CORS support
  • āœ… Service Worker architecture

šŸ¤ Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally
  5. Submit a pull request

License

MIT License - feel free to use this for your own projects!

šŸ”— Resources