Logo LinkedIn API

LinkedIn API

Tổ chức
anysiteio

A Model Context Protocol (MCP) server that provides comprehensive access to LinkedIn data and functionalities using the Anysite API, enabling not only data retrieval but also robust management of user accounts.

Nhà phát hànhanysiteio
Kho mãanysite-mcp-server
Ngôn ngữJavaScript
Bản fork
20
Sao
65
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    LinkedIn API cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    65 sao và 20 bản fork từ kho mã được liên kết.

Anysite MCP Server

The entire web is your database. Your AI assistant is the query interface.

A Model Context Protocol server that lets Claude, Cursor, ChatGPT, and any MCP client query structured data from LinkedIn, Instagram, Twitter/X, Reddit, YouTube, SEC EDGAR, Y Combinator, Crunchbase, and any URL on the web — through five universal tools, plus CRM write-back tools.

npm version License: MIT Documentation


Quick start

Connect directly to the hosted server at https://mcp.anysite.io/mcp. It speaks MCP over Streamable HTTP with OAuth 2.0, and works with Claude Desktop, Claude Code, Cursor, Cline, Windsurf, ChatGPT, and any MCP-compliant client.

If your client supports HTTP transport, you do not need this npm package. The package exists as a stdio bridge for clients that only speak stdio.

Step 1: Sign up

Create an account at anysite.io. The MCP30 promo covers your first month of MCP Unlimited ($30/month, 6 req/min fair-use, no credit counting). Credit-based plans (Starter $49 / Growth $200 / Scale $300 / Pro $549 / Enterprise from $1,199) also include MCP access; see docs.anysite.io/mcp-server/overview.

Step 2: Connect your client

  1. Settings → Connectors → Add Custom Connector
  2. URL: https://mcp.anysite.io/mcp
  3. Click Connect, authorize in the browser
  4. Required: Settings → Capabilities → Tool access → Tools already loaded

The last step is critical. Claude Desktop's "Load tools when needed" mode uses name-based matching that fails on generic names like discover and execute. If you skip it, the tools exist but the model will not reliably call them.

bash
claude mcp add --transport http anysite "https://mcp.anysite.io/mcp?api_key=YOUR_KEY"
claude mcp list   # should show: anysite connected

The URL carries your API key — treat it as a secret.

Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in the project root:

json
{
  "mcpServers": {
    "anysite": {
      "url": "https://mcp.anysite.io/mcp?api_key=YOUR_KEY",
      "transport": "http"
    }
  }
}

Point any compliant client at https://mcp.anysite.io/mcp and authenticate via OAuth or ?api_key=YOUR_KEY.

Step 3: Verify

Ask the assistant:

What MCP tools do you have from anysite?

It should list: discover, execute, get_page, query_cache, export_data — plus eight crm_* tools if the CRM integration is enabled on your account.

Step 4: Run a query

Use anysite to find 20 CTOs at Series B fintech startups in New York,
then show me the ones with AI or ML in their headline.

The assistant runs discover on LinkedIn, picks the right search endpoint, calls execute, then narrows server-side with query_cache.


stdio bridge (npm package)

@anysiteio/mcp is a thin local proxy: it runs on stdio and forwards every request to https://mcp.anysite.io/mcp over Streamable HTTP with your token. No business logic lives in the package — tools, instructions, caching and exports all come from the server, so new endpoints and tools appear without a package update.

Use it when your client cannot speak HTTP transport: stdio-only IDE plugins, older Cline/Continue builds, custom stdio runners, or environments where outbound HTTP must go through a managed local process.

Install

bash
npm install -g @anysiteio/mcp

Or run on demand with npx -y @anysiteio/mcp.

Configure your client

json
{
  "mcpServers": {
    "anysite": {
      "command": "npx",
      "args": ["-y", "@anysiteio/mcp"],
      "env": {
        "ANYSITE_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

That is the entire configuration. Only ANYSITE_ACCESS_TOKEN is required — create one at app.anysite.io. The token can also live in ~/.anysite-mcp.env.


The tools

ToolPurpose
discover(source, category)List endpoints in a category with their params and LLM hints. Always call before execute.
execute(source, category, endpoint, params)Fetch data. Returns first 10 items + cache_key.
get_page(cache_key, offset, limit)Paginate cached items without re-fetching (limit ≤ 50).
query_cache(cache_key, conditions?, sort_by?, aggregate?, group_by?)Filter / sort / aggregate cached items server-side.
export_data(cache_key, output_format, list_unpack?)Dump the full dataset to json / jsonl / csv. Returns a download URL.
crm_* (8 tools)HubSpot-and-friends read/write: connections, schema, upsert contacts/companies, query, undo. Visible only when CRM is enabled for your account.

Sources surfaced through discover: LinkedIn, Instagram, Twitter/X, Reddit, YouTube, SEC EDGAR, Y Combinator, Crunchbase, DuckDuckGo, the universal web parser, plus AI parsers for GitHub, Amazon, Google Maps, G2, BuiltWith, Apify, GLEIF, Newegg and more. New endpoints appear automatically as soon as they ship on the platform.

Data fetched by execute is cached server-side for 7 days: one execute() call, then unlimited get_page / query_cache / export_data calls without re-paying API credits. Export files live for 24 hours (regenerated on demand while the cache entry is alive).


Usage pattern

discover("linkedin", "search")
  → endpoints: ["users", "companies", "posts", ...] with params

execute("linkedin", "search", "users", { keywords: "CTO AI" })
  → { items: [...first 10], total: 50, cache_key: "abc..." , next_offset: 10 }

get_page("abc...", offset=10)            # next page, free
query_cache("abc...", { conditions: [{ field: "location", op: "contains", value: "San Francisco" }] })
export_data("abc...", "csv")             # full dataset as a CSV download URL

The agent figures out the parameter names on its own from discover.


Migrating from 2.x

v3 is a breaking change: the package no longer reimplements the server locally — it proxies the hosted MCP server. What changes for you:

  • export_data returns a download URL (https://mcp.anysite.io/exports/…) instead of a local file path. The file_path field is gone; agents that read the exported file from disk must download it instead. The URL is accessible without a token (the file name is unguessable) and lives for 24 hours — do not share the link if the data is sensitive.
  • export_data parameter is output_format. The old format name is transparently rewritten by the bridge for backward compatibility, but new prompts should use output_format.
  • get_page caps limit at 50 (server-side page size limit).
  • Cache is server-side now (7-day TTL, survives restarts, shared across your sessions) instead of in-process.
  • CRM tools appear (8 crm_* tools) when the CRM integration is enabled on your account.
  • Env vars ANYSITE_API_URL and ANYSITE_OPENAPI_URL are removed — the bridge talks to the MCP server, not the raw API. Use ANYSITE_MCP_URL to point at a different MCP server.
  • bin aliases anysite and mcp are removed — the command is anysite-mcp.
  • Two LinkedIn endpoints that were reachable in 2.x (sn_search/users, company/employees) are excluded by server policy.
  • Tool results no longer carry a mimeType on content items — the server defines the response shape.
  • Cancelling a long tools/call stops the client-side wait, but the server keeps processing the request (stateless transport cannot deliver the cancellation) — the work is still billed.

Skills — ready-made workflows

The MCP server gives raw access. Anysite Skills package that access into named workflows you summon by topic, so the assistant runs a proven pattern instead of improvising. Built for Claude Code (also works in Cursor / Windsurf via the same plugin format).

WorkflowWhat you sayWhat it does
Lead generation"Find me 50 marketing directors at Series A SaaS in Berlin and enrich with email"LinkedIn search → enrichment → CSV
Competitor intelligence"Track @competitor across LinkedIn hires, social, YC, and recent posts"Multi-source intel + hiring velocity + sentiment
Person analyzer"Deep-dive on this LinkedIn profile before our partnership call"LinkedIn + Twitter + Reddit + GitHub + web → strategic brief
Market research"Map the AI legal-tech landscape — startups, funding, momentum"YC + Crunchbase + SEC + Reddit + Twitter sentiment
Customer pain mining"Pull verbatim complaints about Salesforce from Reddit and Twitter"Pain clusters + exact quotes + white-space gaps
Brand reputation"What is the conversation around our brand this week?"Cross-platform mention scan with sentiment scoring
Positioning map"Plot 3-5 competitors on a positioning map, find the empty quadrant"Five-axis comparison + positioning statement

Full catalog (17 skills, including VC analyst, influencer discovery, audience analysis, content analytics, trend analysis): github.com/anysiteio/agent-skills.

Install

In Claude Code:

bash
/plugin marketplace add https://github.com/anysiteio/agent-skills
/plugin install anysite-lead-generation@anysite-skills

You can install one skill or the whole marketplace. The MCP server connection above is the only prerequisite.


Local development

bash
git clone https://github.com/anysiteio/anysite-mcp.git
cd anysite-mcp
npm install
npm run build:tsc
ANYSITE_ACCESS_TOKEN=... node build/server.js

Inspect the tools interactively:

bash
npm run inspector

Configuration

Env varRequiredDefaultNotes
ANYSITE_ACCESS_TOKENyes—Create one at app.anysite.io
ANYSITE_MCP_URLnohttps://mcp.anysite.io/mcpOverride the remote MCP server URL

Variables can also live in ./.env or ~/.anysite-mcp.env (real environment variables and ./.env take precedence over ~/.anysite-mcp.env).

If the remote server is unreachable at startup, the bridge still starts in a degraded mode (empty tool list, descriptive errors on calls), keeps reconnecting in the background, and announces the tool list via tools/list_changed once the server is reachable again.


Project layout

src/
├── server.ts   stdio entry (CLI bin): env handling, connect with retries, degraded mode
├── proxy.ts    the bridge: remote client, generic request forwarding, tools/list cache,
│               format→output_format shim, error mapping, background list refresh
├── index.ts    Smithery TypeScript runtime adapter
└── config.ts   env-derived constants

License

MIT

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "hdw": {
      "command": "npx",
      "args": [
        "-y",
        "@horizondatawave/mcp"
      ],
      "env": {
        "HDW_ACCESS_TOKEN": "YOUR_HD_W_ACCESS_TOKEN",
        "HDW_ACCOUNT_ID": "YOUR_HD_W_ACCOUNT_ID"
      }
    }
  }
}

Dùng MCP LinkedIn API với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối LinkedIn API, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm LinkedIn API làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của LinkedIn API.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "linkedin-api": {
      "command": "npx",
      "args": [
        "-y",
        "@horizondatawave/mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của LinkedIn API, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của LinkedIn API.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng LinkedIn API giúp tôi làm việc này không?
LinkedIn API
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng LinkedIn API.

Câu hỏi thường gặp

Máy chủ MCP LinkedIn API dùng để làm gì?

LinkedIn API là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP LinkedIn API với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng LinkedIn API với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP LinkedIn API với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối LinkedIn API, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP LinkedIn API với TypingMind?

LinkedIn API hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP LinkedIn API cung cấp những công cụ nào trong TypingMind?

LinkedIn API cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP LinkedIn API không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu LinkedIn API yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇