# gtm-api: LinkedIn MCP Server

Connect an AI agent to LinkedIn actions such as profile search, invitations, messaging, and account enrichment. Use it to work with an account you own through an MCP client.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 90
- Author: gtm-api
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gtm-api/linkedin-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/gtm-api-linkedin-mcp-server

## What it does

The server connects an MCP client to a LinkedIn account you control. An agent can search profiles, send invitations and messages, and enrich account data. It exposes more than 160 actions, grouped so the agent can inspect a toolset before choosing an action.

Before an outward action, the server presents a preview and checks the account’s daily limit. In Claude Code, connect over HTTP; the first call starts an OAuth consent flow in your browser. Add the server with the command in the FAQ, then connect your LinkedIn account. Actions run on that account, so review each preview before confirming.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.gtm-api.com/mcp`
- Environment variables: `GTM_MCP_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.
- Works with: LinkedIn

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http linkedin-mcp https://mcp.gtm-api.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env GTM_MCP_URL=<GTM_MCP_URL> --transport stdio gtm-api-linkedin-mcp-server -- npx -y @gtm-api/linkedin-mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add gtm-api-linkedin-mcp-server --url https://mcp.gtm-api.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add gtm-api-linkedin-mcp-server --env GTM_MCP_URL=<GTM_MCP_URL> -- npx -y @gtm-api/linkedin-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "gtm-api-linkedin-mcp-server": {
            "url": "https://mcp.gtm-api.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "gtm-api-linkedin-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@gtm-api/linkedin-mcp"
            ],
            "env": {
                "GTM_MCP_URL": "<GTM_MCP_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "gtm-api-linkedin-mcp-server": {
            "type": "http",
            "url": "https://mcp.gtm-api.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "gtm-api-linkedin-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@gtm-api/linkedin-mcp"
            ],
            "env": {
                "GTM_MCP_URL": "<GTM_MCP_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http gtm-api-linkedin-mcp-server https://mcp.gtm-api.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e GTM_MCP_URL=<GTM_MCP_URL> gtm-api-linkedin-mcp-server npx -y @gtm-api/linkedin-mcp
```
Replace <…> with your own values

## When to use it
- search LinkedIn profiles by criteria
- send connection invitations
- draft messages for new contacts
- enrich account records

## Example prompts
- Find LinkedIn profiles that match these criteria.
- Review new connection invitations and prepare replies for suitable contacts.
- Find accounts with these attributes and enrich their records.

## Similar
- [gtm-copywriter](https://affpapa.org/en/nevibecode/skills/gtm-copywriter.md) — skill · 328 installs
- [LinkedIn Automation](https://affpapa.org/en/nevibecode/skills/linkedin-automation.md) — skill · 5200 installs
- [linkedin-ghostwriting](https://affpapa.org/en/nevibecode/skills/linkedin-ghostwriting.md) — skill · 4900 installs
- [ads-linkedin](https://affpapa.org/en/nevibecode/skills/ads-linkedin.md) — skill · 3800 installs
- [linkedin-posts](https://affpapa.org/en/nevibecode/skills/linkedin-posts.md) — skill · 3600 installs
- [linkedin-marketing](https://affpapa.org/en/nevibecode/skills/linkedin-marketing.md) — skill · 1700 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
