gtm-api: LinkedIn MCP Server — Claude Code MCP server: install
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.
claude mcp add --transport http linkedin-mcp https://mcp.gtm-api.com/mcpWhat gtm-api: LinkedIn MCP Server 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.
What it helps with
- search LinkedIn profiles by criteria
- send connection invitations
- draft messages for new contacts
- enrich account records
Example prompts for the agent
- 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.
How to install gtm-api: LinkedIn MCP Server
1Platform CLI: remote server
claude mcp add --transport http linkedin-mcp https://mcp.gtm-api.com/mcp2Platform CLI
claude mcp add --env GTM_MCP_URL=<GTM_MCP_URL> --transport stdio gtm-api-linkedin-mcp-server -- npx -y @gtm-api/linkedin-mcpReplace <…> with your own values
1Platform CLI: remote server
codex mcp add gtm-api-linkedin-mcp-server --url https://mcp.gtm-api.com/mcp2Platform CLI
codex mcp add gtm-api-linkedin-mcp-server --env GTM_MCP_URL=<GTM_MCP_URL> -- npx -y @gtm-api/linkedin-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"gtm-api-linkedin-mcp-server": {
"url": "https://mcp.gtm-api.com/mcp"
}
}
}{
"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
Config file
{
"servers": {
"gtm-api-linkedin-mcp-server": {
"type": "http",
"url": "https://mcp.gtm-api.com/mcp"
}
}
}{
"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
1Platform CLI: remote server
gemini mcp add -t http gtm-api-linkedin-mcp-server https://mcp.gtm-api.com/mcp2Platform CLI
gemini mcp add -e GTM_MCP_URL=<GTM_MCP_URL> gtm-api-linkedin-mcp-server npx -y @gtm-api/linkedin-mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about gtm-api: LinkedIn MCP Server
How do I install gtm-api: LinkedIn MCP Server in Claude Code?
Run claude mcp add --transport http linkedin-mcp https://mcp.gtm-api.com/mcp, then connect your LinkedIn account through OAuth on the first call.
What does gtm-api: LinkedIn MCP Server do?
It gives an AI agent MCP access to LinkedIn actions, including profile search, invitations, messages, and account enrichment.
Does Claude Code need an API key to connect?
The HTTP setup uses OAuth and opens a consent page in your browser. Actions run through a LinkedIn account you own.