Deploy n8n + LinkedIn MCP

n8n workflow automation with Postgres and a LinkedIn MCP server

Deploy n8n + LinkedIn MCP

n8n

Just deployed

/var/lib/postgresql/data

/home/pwuser/.linkedin-mcp

Deploy and Host n8n + LinkedIn MCP on Railway

n8n is a fair-code workflow automation platform. It lets you connect apps and APIs through a visual editor, trigger workflows from webhooks or schedules, and add custom code or AI steps. This template pairs n8n with a LinkedIn MCP server so your workflows and AI agents can reach LinkedIn through MCP.

About Hosting n8n + LinkedIn MCP

This template deploys three services on Railway: n8n, a Postgres database, and a linkedin-mcp service. n8n stores its workflows, execution history and encrypted credentials in Postgres, which keeps its data on a persistent volume so it survives redeploys. The linkedin-mcp service runs a headless Chrome browser and exposes an MCP server over HTTP, with optional VNC settings for remote desktop access. The services share Railway's private network, and the database variables are linked for you. On deploy, Railway generates the n8n encryption key, the Postgres password and the VNC password, and sets the webhook URL from your n8n public domain.

Common Use Cases

  • Automate LinkedIn research and outreach workflows driven by n8n
  • Give AI agents in n8n access to LinkedIn tools through MCP
  • Build webhook-driven workflows and API integrations
  • Run scheduled jobs, reports and data pipelines

Dependencies for n8n + LinkedIn MCP Hosting

  • n8n (documentation)
  • Postgres database, included in this template
  • linkedin-mcp service, included in this template

Implementation Details

The N8N_ENCRYPTION_KEY variable is generated on first deploy and encrypts every credential you save in n8n. Copy it from the n8n service's Variables tab and store it safely. If you lose it, n8n can't decrypt your saved credentials.

The linkedin-mcp service needs a LinkedIn session to be useful, and VNC_PASSWORD is generated for the optional VNC desktop. Keep that password private, and only expose the service as widely as you need.

Automating LinkedIn can conflict with LinkedIn's terms of service. Review them before you use this template.

Why Deploy n8n + LinkedIn MCP on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying n8n + LinkedIn MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
121
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
101
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
870