We use analytics cookies and similar tools to see how LinkMCP is used. You can accept or reject them, and change your choice at any time in Cookie settings. Privacy Policy

How to Connect Gemini to LinkedIn

Short answer: add a LinkedIn MCP server, as a custom app in the Gemini app or as an MCP server in Antigravity. Both can call tools from MCP servers. Add LinkMCP, a hosted LinkedIn MCP server, and Gemini can look up profiles, search people, read your LinkedIn inbox and draft posts with you. Which steps you follow depends on the Gemini product you use.

Which Gemini do you use?

  • The Gemini app (gemini.google.com and the mobile app): add LinkMCP as a custom app. Google's help page lists these conditions: a personal Google Account, the US, an age of 18 or over, Keep Activity on and English.
  • Antigravity (Antigravity 2.0, the Antigravity IDE and Antigravity CLI): add LinkMCP to mcp_config.json.
  • Gemini CLI: on 2026-06-18, Google stopped serving Gemini CLI requests for Google AI Pro and Ultra users and for free users, and moved them to Antigravity CLI. Organizations with a Gemini Code Assist Standard or Enterprise license, and paid API key users, can still use it. Steps for them are at the end.

The Gemini app: add LinkMCP as a custom app

  1. On a computer, go to gemini.google.com.
  2. Click Settings → Connected Apps.
  3. Under Custom apps, find the field to add a custom app. If you already have a custom app, click Add a custom app.
  4. Paste this address:
    https://app.linkmcp.io/api/mcp?ref=guide-gemini
    LinkMCP supports dynamic client registration, so you do not need to enter credentials under Advanced features.
  5. Click Next and follow the steps. A LinkMCP window opens. Sign in with your email (you get a 6-digit code) or with Google, and approve the access. A new LinkMCP account starts with the 7-day free trial.
    If Gemini does not show LinkMCP as connected after you sign in, start again from Settings, then Connected Apps.
  6. In a chat, type @ and select LinkMCP, so Gemini uses it for that prompt.

You connect the custom app in the web app. After that, you can use it in the Gemini mobile app too.

Antigravity: add LinkMCP to mcp_config.json

Antigravity reads MCP servers from ~/.gemini/config/mcp_config.json (all workspaces) or from .agents/mcp_config.json (one workspace). The most reliable way to connect is with a LinkMCP API key.

  1. In LinkMCP, open API Keys and click New access key. Choose how long it works (30 days, 90 days or 1 year) and copy the key.
  2. Open the file. In the Antigravity IDE, click the three dots at the top of the agent side panel, select MCP Servers, then Manage MCP Servers, then View raw config.
  3. Add LinkMCP to mcpServers, with your key in place of <your API key>. If the file already lists other servers, add only the linkmcp entry:
    {
      "mcpServers": {
        "linkmcp": {
          "serverUrl": "https://app.linkmcp.io/api/mcp?ref=guide-gemini",
          "headers": { "Authorization": "Bearer <your API key>" }
        }
      }
    }
    Antigravity needs the key serverUrl. It does not read url or httpUrl. The file now holds your key, so do not share it or put it in a repository. You can revoke the key on the API Keys page at any time.
  4. Save the file and refresh the MCP server list. linkmcp shows its tools.

Antigravity can show "Auth Needed" next to linkmcp even when the key works. If the tools are listed, the connection works.

When the key expires, linkmcp shows "Unauthorized" again. Create a new key and put it in place of the old one in the file.

In Antigravity CLI you can add the same entry with one command, then type /mcp to check it:

agy mcp add --type http --header "Authorization: Bearer <your API key>" linkmcp "https://app.linkmcp.io/api/mcp?ref=guide-gemini"

Without a key. Leave out headers. Antigravity then does not open a sign-in window by itself, and linkmcp shows "Unauthorized" until you sign in: open the agent settings (Cmd+, on macOS, Ctrl+, on Windows and Linux), go to the Customizations tab and click Authenticate next to linkmcp (in Antigravity CLI: /mcp, select linkmcp, Authenticate). Sign in to LinkMCP in your browser, copy the authorization code, paste it back and click Submit.

Start free trial

Prompts to try first

These work in the free trial, before you connect your own LinkedIn account:

@LinkMCP look up [profile URL] and give me a short brief: role, company, time in the role, anything notable.

Use linkmcp to get the recent posts of [company page URL] and list their product news.

@LinkMCP search LinkedIn posts from the past week for [keywords] and list who wrote them, with their headlines and profile links.

These need your LinkedIn account connected (a paid plan):

Use linkedin_search_people to find product managers in Munich in the software industry, and show ten in a table.

Show my unread LinkedIn messages and draft a reply to each. Do not send anything.

Gemini CLI, if it still works for you

Run:

gemini mcp add --transport http --scope user linkmcp "https://app.linkmcp.io/api/mcp?ref=guide-gemini"

--scope user adds LinkMCP for all folders. Without it, Gemini CLI adds it only to the current project. Start gemini: a browser window opens for the LinkMCP sign-in. If it does not, type /mcp auth linkmcp.

Can this put my LinkedIn account at risk?

LinkMCP puts daily limits and pacing on every action through your account, and a warm-up limit on connection requests for new or quiet accounts. The limits are on our security page. As with any tool that acts on LinkedIn for you, a restriction cannot be ruled out completely; these limits keep the risk low. Our guide on LinkedIn automation risk explains what can trigger a restriction.

What it costs

LinkMCP starts with a 7-day free trial, and you do not need a credit card. In the trial, profile and company lookups, posts and post comments, keyword searches of LinkedIn posts (not in ChatGPT), email lookups and phone lookups (not in ChatGPT) work. People and job searches, messages, posting and Sales Navigator act through your own LinkedIn account, and connecting it needs a paid plan. Starter costs $39 per month. New trials get their first month of Starter for $19.50.

Other AI tools

The same LinkMCP account works in other assistants. See How to Connect Claude to LinkedIn and How to Connect ChatGPT to LinkedIn. To compare LinkedIn MCP servers, read Best LinkedIn MCP Server (2026): 14 Options Compared.

FAQ

Can I connect my LinkedIn to Gemini?
Yes, through a LinkedIn MCP server such as LinkMCP: as a custom app in the Gemini app, or as an MCP server in Antigravity.

Can I use custom apps in the Gemini app outside the US?
Check your own settings. Google's help page says custom apps need a location in the US, a personal Google Account, an age of 18 or over, Keep Activity on and English (checked 2026-10-12). Some people outside the US also have the option. On gemini.google.com, click Settings, then Connected Apps. If "Custom apps" is there, you can add LinkMCP. If it is not, use LinkMCP in Claude or ChatGPT.

Does the gemini mcp add command still work?
Only where Gemini CLI still serves requests: with a Gemini Code Assist Standard or Enterprise license, or a paid API key. Antigravity reads its own file, mcp_config.json.

Does Gemini ask before it acts on LinkedIn?
Google says the Gemini app asks you to confirm write actions from custom apps. Antigravity asks for approval before an MCP tool runs, unless you allowed it.

LinkMCP is a hosted LinkedIn MCP server. Add it to Gemini or Antigravity once and use 36 LinkedIn tools. No browser extension and no LinkedIn session on your machine. Start a free trial.