index.html9.36 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LinkedIn MCP Server</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.container {
background: white;
border-radius: 10px;
padding: 30px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
h1 {
color: #0077b5;
text-align: center;
font-size: 2.5em;
margin-bottom: 10px;
}
.subtitle {
text-align: center;
color: #666;
font-size: 1.2em;
margin-bottom: 30px;
}
.linkedin-blue {
color: #0077b5;
}
.badge {
display: inline-block;
background: #0077b5;
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.9em;
margin: 2px;
}
code {
background-color: #f8f9fa;
padding: 3px 6px;
border-radius: 4px;
font-family: 'Monaco', 'Consolas', monospace;
font-size: 0.9em;
}
pre {
background-color: #f8f9fa;
padding: 15px;
border-radius: 8px;
overflow-x: auto;
border-left: 4px solid #0077b5;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin: 30px 0;
}
.feature-card {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #0077b5;
}
.feature-card h3 {
color: #0077b5;
margin-top: 0;
}
.endpoint-list {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin: 20px 0;
}
.endpoint {
display: flex;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #e9ecef;
}
.endpoint:last-child {
border-bottom: none;
}
.method {
background: #28a745;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.8em;
margin-right: 10px;
min-width: 50px;
text-align: center;
}
.method.post {
background: #007bff;
}
.status-indicator {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
background: #28a745;
margin-right: 8px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.warning {
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 8px;
padding: 15px;
margin: 20px 0;
}
.info {
background: #e3f2fd;
border: 1px solid #90caf9;
border-radius: 8px;
padding: 15px;
margin: 20px 0;
}
.footer {
text-align: center;
margin-top: 30px;
color: #666;
font-size: 0.9em;
}
</style>
</head>
<body>
<div class="container">
<h1><span class="status-indicator"></span>LinkedIn MCP Server</h1>
<p class="subtitle">Complete LinkedIn integration via Model Context Protocol</p>
<div class="info">
<strong>🚀 Status:</strong> This LinkedIn MCP server provides comprehensive LinkedIn API integration for AI assistants and automation tools.
</div>
<h2>🛠️ Available Tools</h2>
<div class="feature-grid">
<div class="feature-card">
<h3>👤 Profile Management</h3>
<ul>
<li><strong>get-profile</strong> - Retrieve user profile information</li>
<li>Support for current user and specific person lookup</li>
<li>Comprehensive profile data extraction</li>
</ul>
<div>
<span class="badge">Authentication Required</span>
<span class="badge">Real-time Data</span>
</div>
</div>
<div class="feature-card">
<h3>📝 Content Management</h3>
<ul>
<li><strong>create-post</strong> - Share content on LinkedIn</li>
<li><strong>get-posts</strong> - Retrieve user's posts</li>
<li>Visibility control (PUBLIC/CONNECTIONS)</li>
</ul>
<div>
<span class="badge">Content Creation</span>
<span class="badge">Social Media</span>
</div>
</div>
<div class="feature-card">
<h3>🏢 Company Intelligence</h3>
<ul>
<li><strong>get-company</strong> - Company information lookup</li>
<li><strong>search-companies</strong> - Search by keywords</li>
<li>Industry insights and company data</li>
</ul>
<div>
<span class="badge">Business Intelligence</span>
<span class="badge">Market Research</span>
</div>
</div>
<div class="feature-card">
<h3>🤝 Network Management</h3>
<ul>
<li><strong>get-connections</strong> - Retrieve connections</li>
<li><strong>send-connection-request</strong> - Connect with users</li>
<li>Network growth and relationship building</li>
</ul>
<div>
<span class="badge">Networking</span>
<span class="badge">Relationship Building</span>
</div>
</div>
<div class="feature-card">
<h3>💬 Messaging</h3>
<ul>
<li><strong>get-messages</strong> - Retrieve conversations</li>
<li><strong>send-message</strong> - Send messages to connections</li>
<li>Professional communication management</li>
</ul>
<div>
<span class="badge">Communication</span>
<span class="badge">Automation</span>
</div>
</div>
<div class="feature-card">
<h3>📊 Analytics</h3>
<ul>
<li><strong>analyze-network</strong> - Network insights</li>
<li>Connection analysis and growth metrics</li>
<li>Content performance tracking</li>
</ul>
<div>
<span class="badge">Analytics</span>
<span class="badge">Insights</span>
</div>
</div>
</div>
<h2>🌐 API Endpoints</h2>
<div class="endpoint-list">
<div class="endpoint">
<span class="method">GET</span>
<code>/mcp</code> - MCP Protocol Endpoint
</div>
<div class="endpoint">
<span class="method">GET</span>
<code>/simple-mcp</code> - Basic MCP Example
</div>
</div>
<h2>🔧 Usage</h2>
<h3>MCP Inspector</h3>
<p>Test the LinkedIn MCP server using the MCP inspector:</p>
<pre>npx @modelcontextprotocol/inspector npx mcp-remote@next https://your-site-name.netlify.app/mcp</pre>
<h3>Claude Desktop Integration</h3>
<p>Add to your Claude Desktop configuration:</p>
<pre>{
"mcpServers": {
"linkedin-mcp": {
"command": "npx",
"args": [
"mcp-remote@next",
"https://your-site-name.netlify.app/mcp"
],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your_linkedin_access_token"
}
}
}
}</pre>
<h3>FastAPI Client</h3>
<p>For development and testing, use the included FastAPI client:</p>
<pre># Start the LinkedIn client
cd mcp-client
./start_linkedin.sh
# Access API documentation
# http://localhost:8002/docs</pre>
<div class="warning">
<strong>⚠️ Authentication Required:</strong> Most LinkedIn tools require a valid access token. Set the <code>LINKEDIN_ACCESS_TOKEN</code> environment variable or provide it in tool arguments.
</div>
<h2>📚 Documentation Resources</h2>
<p>The MCP server includes comprehensive documentation resources:</p>
<ul>
<li><strong>linkedin-api-guide</strong> - Complete API usage guide</li>
<li><strong>oauth-setup</strong> - Authentication setup instructions</li>
<li><strong>api-limits</strong> - Rate limiting information</li>
<li><strong>best-practices</strong> - LinkedIn automation best practices</li>
<li><strong>error-codes</strong> - Error handling and troubleshooting</li>
</ul>
<h2>🚀 Getting Started</h2>
<ol>
<li><strong>Get LinkedIn Access Token:</strong> Create a LinkedIn app and obtain OAuth token</li>
<li><strong>Set Environment Variable:</strong> <code>LINKEDIN_ACCESS_TOKEN=your_token</code></li>
<li><strong>Test with MCP Inspector:</strong> Verify functionality</li>
<li><strong>Integrate with AI Assistant:</strong> Add to Claude Desktop or other MCP client</li>
<li><strong>Start Automating:</strong> Use tools for profile management, content creation, and networking</li>
</ol>
<div class="info">
<strong>💡 Development Mode:</strong> Run <code>./start_linkedin.sh</code> in the mcp-client directory for local development with FastAPI client and comprehensive testing tools.
</div>
<div class="footer">
<p>Built with ❤️ for LinkedIn automation and AI integration</p>
<p><strong>LinkedIn MCP Server</strong> - Empowering AI assistants with professional networking capabilities</p>
</div>
</div>
</body>
</html>