Skip to main content
Glama

LinkedIn Scraper MCP Server

by superyuser
cli.ts1.34 kB
export interface CliOptions { port?: number; stdio?: boolean; } export function parseArgs(): CliOptions { const args = process.argv.slice(2); const options: CliOptions = {}; for (let i = 0; i < args.length; i++) { switch (args[i]) { case '--port': if (i + 1 < args.length) { options.port = parseInt(args[i + 1], 10); i++; } else { throw new Error('--port flag requires a value'); } break; case '--stdio': options.stdio = true; break; case '--help': printHelp(); process.exit(0); break; } } return options; } function printHelp(): void { console.log(` LinkedIn Scraper MCP Server USAGE: linkedin-scraper-mcp [OPTIONS] OPTIONS: --port <PORT> Run HTTP server on specified port (default: 8080) --stdio Use STDIO transport instead of HTTP --help Print this help message ENVIRONMENT VARIABLES: PORT HTTP server port (default: 8080) NODE_ENV Set to 'production' for production mode TOOLS: scrape_linkedin_profile Scrape a LinkedIn profile with manual credentials `); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/superyuser/linkedin-scraper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server