GTM API LinkedIn MCP Server
A managed MCP server that gives AI agents 160+ typed LinkedIn tools for searching, connecting, messaging, and enriching profiles, with built-in account safety enforcement.
README
GTM API: LinkedIn MCP Server
GTM API is a managed LinkedIn MCP server. It gives an AI agent one key and 160+ typed LinkedIn tools over the Model Context Protocol, so Claude, ChatGPT or Cursor can search, connect, message and enrich on a LinkedIn account you own, with account safety enforced server side.
This repository holds the public interface: what the server exposes, how to connect a client, and how the safety layer works.
What is a LinkedIn MCP server?
A LinkedIn MCP server exposes LinkedIn actions as Model Context Protocol tools, so an AI agent calls them directly, the way a person would click through the UI. LinkedIn publishes no official API for invitations, member messages or open profile search, so a LinkedIn MCP server works through an account you own rather than through LinkedIn's developer platform.
Two shapes exist today. Cookie-driven open-source servers run a browser session with your own cookie and no pacing. Managed servers run each account in isolated infrastructure with limits enforced before every action. GTM API is the second kind.
Which clients it works with
Any MCP-compatible client:
- Claude (Desktop, Code, and the API)
- Cursor
- ChatGPT (via connectors)
- LangChain, n8n, and custom agent runtimes
Not using MCP? Every tool is also a typed REST endpoint with webhooks. One schema generates all three surfaces.
Quickstart
1. Get an API key. Sign up at app.gtm-api.com (7-day trial, no card) and connect a LinkedIn account. It opens in a dedicated anti-detect cloud browser with its own proxy.
2. Add the server to your MCP client. For Claude Desktop, edit claude_desktop_config.json (example in examples/):
{
"mcpServers": {
"gtm-api": {
"url": "https://mcp.gtm-api.com/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Prefer Docker? The same server as a command, through the gtmapi/linkedin-mcp launcher image (config in examples/):
{
"mcpServers": {
"gtm-api": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GTM_API_KEY", "gtmapi/linkedin-mcp"],
"env": { "GTM_API_KEY": "YOUR_API_KEY" }
}
}
}
3. Restart the client and prompt in plain English:
"Every morning, accept new connection invitations from founders, reply with a short welcome, and add anyone hiring SDRs to a warm list."
The agent discovers the tools and chains them: get_my_latest_linkedin_connection_invitations then accept_linkedin_connection_invitation then send_linkedin_message. Every outward action runs a preview-then-confirm step and a server-side daily-limit check before it reaches LinkedIn.
What the agent can do
160+ typed tools across 10 LinkedIn toolsets, grouped here into seven areas:
| Toolset | Representative tools |
|---|---|
| Messaging | send_linkedin_message, send_linkedin_voice_message, send_linkedin_inmail, send_linkedin_sales_nav_message, inbox search and sync |
| Network | send_linkedin_connection_request, accept_linkedin_connection_invitation, withdraw and ignore, connections and followers |
| Content | track posts and metrics, comment, react, get engagers and commenters |
| Enrichment | lite and full profile, experience, skills, education, company data |
| Search | people, company and post search, similar profiles, employees, decision-makers, saved searches |
| Account health | smart limits, health snapshots, quota-hit, block and activity logs |
| Infrastructure | anti-detect cloud browsers, dedicated proxies, webhooks |
LinkedIn is the live channel today. Email (Gmail, Outlook, IMAP), messengers (WhatsApp, Telegram, Instagram DMs) and calendars (Google, Microsoft) are on the roadmap on the same typed contract.
Is it safe for my LinkedIn account?
Safety is enforced by the server itself, under every tool call. Six mechanisms:
- Owned accounts. The agent acts through an account you connected and control. There is no shared account pool.
- Session isolation. Each account runs in its own anti-detect cloud browser with a dedicated proxy. One account, one session, one device signature.
- Warm-up. A new account starts at a fraction of platform maximum, and its allowance is raised programmatically as the account ages and builds history.
- Server-side limits. Per-action daily budgets are checked before dispatch, across 16 action buckets.
- Randomized pacing. Bulk work is spread with per-gap randomized intervals, because a fixed cadence is itself a detectable pattern.
- Preview then confirm. Outward actions return a preview and require confirmation, so an over-eager agent cannot burn an account.
On this setup GTM API reports 20,000+ LinkedIn accounts running at under 1% monthly ban. Full method: gtm-api.com/safe-linkedin-automation.
How it compares to open-source LinkedIn MCP servers
Cookie-driven servers such as stickerdaniel/linkedin-mcp-server run a browser session with your own LinkedIn cookie and leave pacing to you: the project's README documents the cookie login flow and lists no rate limiting. Apify's LinkedIn actors are a different shape, hosted scrapers priced per result and focused on pulling data out.
| GTM API (managed) | Cookie-driven open source | |
|---|---|---|
| Account model | Owned, warmed, isolated | Your live cookie session |
| Safety layer | Anti-detect browser, dedicated proxy, limits | Not built in |
| Limit enforcement | Server side, before every action | You build it |
| Sends (connect, message, InMail) | Yes, with preview then confirm | Partial or none |
| Published ban rate | Self-reported: under 1% monthly across 20,000+ accounts | Not published |
| Support | Managed | Community |
| Price | From $19 per connected account per month | Free, run it yourself |
| Self-hosted, auditable code | No, managed service | Yes |
Pricing
From $19 per connected account per month, scaling to $5 at volume, with unlimited API calls and no per-action fees. 7-day trial, no card. Enrichment and Signals are optional metered add-ons: gtm-api.com/pricing.
A note on LinkedIn's terms
LinkedIn's User Agreement does not permit third-party automation, so every tool in this space carries risk and no vendor can honestly promise otherwise. GTM API reduces that risk by acting only on accounts you own, with warm-up, human-like pacing and enforced limits, which is why the reported ban rate is under 1%. This is not legal advice.
Links
- Get an API key: app.gtm-api.com
- How a LinkedIn MCP server works: gtm-api.com/linkedin-mcp-server
- The safety method in detail: gtm-api.com/safe-linkedin-automation
- Docker image: hub.docker.com/r/gtmapi/linkedin-mcp
- Model Context Protocol: modelcontextprotocol.io
gtm-api.com, the LinkedIn API and MCP server for AI agents.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。