> For the complete documentation index, see [llms.txt](https://www.getlinkintel.com/llms.txt). Every page is also available as markdown: append `.md` to its URL.

# LinkIntel MCP: install guide and tools

> Your own X post results, X's ranking weights and optional public references, for your AI assistant. LinkedIn is not available to new customers yet; existing customers keep their optional LinkedIn analytics tools.

Add it by URL: no repository clone, no local process, nothing to keep running. OAuth 2.1 handles
sign-in and checkout in the browser. Once you connect X, a scheduled job reads your recent original
posts daily at 07:15 UTC and stores snapshots; disconnecting deletes them. `prepare_content_brief`
reads only stored, cited evidence; it never searches X or makes a live X request. Collecting
references is `add_references`, a separate call that confirms the list with the customer before
storing anything.

## Connection

- **Endpoint:** `POST https://www.getlinkintel.com/api/mcp`
- **Transport:** HTTP (streamable)
- **Auth:** OAuth 2.1 (discovery at `https://www.getlinkintel.com/.well-known/oauth-protected-resource/api/mcp`); bearer token `Authorization: Bearer lnki_...` as a fallback for clients without OAuth
- **Tools:** 5 core; 6 when the optional owned-X source is configured; 8 when reference collection is enabled. The 13 LinkedIn only tools are listed only for accounts with an existing LinkedIn connection; LinkedIn is not available to new customers
- **X tools:** `get_owned_performance` for your own post results, `get_platform_signals` for X's ranking weights, and `prepare_content_brief` to write from what is stored; `find_account_posts` and `add_references` optionally collect public references
- **Refresh:** daily at 07:15 UTC for X snapshots (the LinkedIn legacy source syncs separately at 06:15 UTC)
- **Server card:** `https://www.getlinkintel.com/.well-known/mcp/server-card.json`
- **OpenAPI:** `https://www.getlinkintel.com/openapi.json`

The tools marked LinkedIn only are listed only for accounts with an existing LinkedIn connection; LinkedIn is not available to new customers. LinkedIn supplies account-level history but cannot enumerate a member's posts. Import post URLs
from Typefully, Postiz, a webhook or a LinkedIn creator-analytics export on `/account` before
expecting post rankings or content-pattern analysis.

## Install

- **Claude Code:** `claude mcp add -s user --transport http linkintel https://www.getlinkintel.com/api/mcp`. Then
  start a new session (`/exit`, then `claude --continue`) and the browser opens for sign-in and payment.
- **Claude.ai or Claude Desktop:** Settings, then Connectors, then Add custom connector, and paste
  `https://www.getlinkintel.com/api/mcp`. The first LinkIntel request shows a Connect button.
- **Any other MCP client with OAuth 2.1:** add `https://www.getlinkintel.com/api/mcp` as a remote HTTP server.
- **A client without OAuth support:** create an account at https://www.getlinkintel.com/connect, then copy the private
  bearer-token handoff shown on https://www.getlinkintel.com/setup into the assistant.

The stated offer is $39 USD/month after a 7-day free trial. A card is required to start the trial and
nothing is charged during it; cancel before it ends and you pay nothing. Google signs you in without
charging; starting the trial (card required) is needed before an assistant can connect.
Fallback bearer tokens map to exactly one LinkIntel profile and start with `lnki_`. Only a hash is
stored, so a token is displayed once and cannot be recovered.

## Tools

| Tool | Answers |
|---|---|
| `get_performance_summary` | LinkedIn only: Totals, daily series, baseline, previous-period comparison (7/14/30/90d) |
| `get_top_posts` | LinkedIn only: Best posts by impressions or engagement |
| `get_post_performance` | LinkedIn only: Metrics for one specific post |
| `get_content_insights` | LinkedIn only: Patterns across posts |
| `find_account_posts` | Only when listed: look up a public account's recent original posts by handle and return URLs for the customer to confirm. Draws on the same daily read budget as `add_references` and stores nothing |
| `add_references` | Only when listed: store supplied public X posts as reference evidence, confirmed with the customer before each call. Included in the subscription |
| `get_platform_signals` | X's published default ranking weights with commit links and the last 14 days of changes, from stored data only; mirrored defaults, not a reach prediction |
| `list_references` | Stored reference topics and cohorts, with how many posts each holds; `include_posts` shows each group's posts |
| `remove_references` | Delete stored reference posts, by URL or a whole topic/cohort group, once the user confirms |
| `prepare_content_brief` | Cached brief for one topic and named reference cohort, built from the customer's own stored posts for the chosen platform; the `platform` argument ("x", default, or "linkedin") picks which of the customer's own posts it reads, since post length and structure do not transfer between platforms |
| `get_owned_performance` | Only when listed: stored owner-account X snapshots, never a live X read |
| `get_daily_trend` | LinkedIn only: Day-by-day series |
| `compare_periods` | LinkedIn only: One period against another |
| `detect_anomalies` | LinkedIn only: Unusually good or bad days |
| `get_data_status` | Available platforms, connection state, freshness, token expiry and remaining API budget |
| `sync_now` | LinkedIn only: Report the scheduled refresh policy |
| `import_posts` | LinkedIn only: Register posts for measurement |
| `import_from_typefully` | LinkedIn only: Import posts published via Typefully |
| `import_from_postiz` | LinkedIn only: Import posts published via Postiz, cloud or self-hosted |
| `log_post` | LinkedIn only: Record a post manually |
| `backfill_post_metrics` | LinkedIn only: Report posts waiting for scheduled measurement |

Call `get_data_status` first whenever a number looks wrong or surprisingly low: it reports how
stale the data is and how much API budget remains today.

---

## About LinkIntel

LinkIntel is an MCP server that gives an AI assistant evidence for its next social post. Once the
customer connects X it reads their recent original posts and metrics daily and stores snapshots. It
also stores public X posts the customer chooses, with source links, and serves X's open-source
ranking weights, read daily. The assistant gets all of it as a cited content brief. LinkIntel never
publishes and never searches X on its own; an X lookup is only made for posts the signed-in customer
supplies and confirms, and lookups are included in the subscription, not billed per post.

Buy: https://www.getlinkintel.com/connect · Pricing: https://www.getlinkintel.com/pricing.md · Docs: https://www.getlinkintel.com/docs/mcp · Full index: https://www.getlinkintel.com/llms.txt

## Also on the page

Three steps. If you signed up through the site, the first is already done and the second is offered to you as a block you can hand straight to your assistant.

For most clients and most users: add the server by URL, and the browser handles sign-in and payment. OAuth 2.1 works on Claude Code, Claude.ai, Claude Desktop, and any MCP client that supports the authorization spec. If your client does not support OAuth, fall back to the bearer token handoff from [/setup](https://www.getlinkintel.com/setup). The manual steps below are for operators and fallback scenarios.

### Add the server (OAuth 2.1)

OAuth 2.1 is the recommended path. Add the endpoint by URL; no token needed upfront. When the client makes its first request, it gets a 401 with authorization details. The browser opens for Google sign-in, checkout if you are new, and consent. After that, the client authenticates with the OAuth token it obtained.

For clients without OAuth support, skip to step 2 (bearer token fallback).

### Bearer token fallback (clients without OAuth)

If your client does not support OAuth 2.1, get a bearer token instead. Go to <https://www.getlinkintel.com/agent>, create an account with Google, review and confirm the $39/month offer, then copy the private MCP handoff shown on /setup.

Tokens start with `lnki_` and map to exactly one profile.

For Claude Code, add the server with:

$ claude mcp add --transport http linkintel https://www.getlinkintel.com/api/mcp     --header "Authorization: Bearer $LINKINTEL_TOKEN"

$ claude mcp list | grep linkintel   # expect: Connected

For Claude Desktop and other clients that read a JSON config:

"url": "https://www.getlinkintel.com/api/mcp",

"headers": { "Authorization": "Bearer lnki_..." }

Prefer an environment variable over pasting the token into a config file that may end up in a backup or a screen share.

### Authenticate and confirm

If using OAuth 2.1, make your first MCP request. The client will get a 401 with authorization details and open the browser for sign-in. If using a bearer token, no additional auth step is needed. Either way, ask the agent to call `list_references`, then `prepare_content_brief` with one of the topic and cohort pairs it returns. A healthy response includes only stored, cited evidence:

"topic": "launch lessons",

"cohort": "developer tools",

"reference_posts": [{ "citation": { "platform": "x", "url": "https://x.com/..." } }],

"limitations": ["Stored public-reference evidence only; it is not a reach prediction."]

To check without an agent, the endpoint speaks plain JSON-RPC over POST:

$ curl -s -X POST https://www.getlinkintel.com/api/mcp     -H "Authorization: Bearer $LINKINTEL_TOKEN"     -H "Content-Type: application/json"     -H "Accept: application/json, text/event-stream"     -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The X path is get\_owned\_performance for your own post results, get\_platform\_signals for X's ranking weights, and prepare\_content\_brief to write from what is stored; find\_account\_posts and add\_references optionally collect public references. Tools marked LinkedIn only are listed only for accounts with an existing LinkedIn connection.

| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| get\_data\_status()                                                    | Available platforms and connection state, owned X connection status with a connect link, then LinkedIn freshness (existing customers), token expiry and request budget. Reach for this first whenever a number looks wrong.                                                                                                                                                                                                                                                                                                                    |

| sync\_now(days)                                                        | LinkedIn only. Report the scheduled-only refresh policy. It never starts a LinkedIn sync.                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

| get\_performance\_summary(period)                                      | LinkedIn only. Totals, daily series, baseline and previous-period comparison. 7d, 14d, 30d or 90d.                                                                                                                                                                                                                                                                                                                                                                                                                                             |

| get\_daily\_trend(metric, days)                                        | LinkedIn only. One metric as a time series with deltas against its baseline.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

| detect\_anomalies(days)                                                | LinkedIn only. Days meaningfully above or below the rolling baseline.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

| get\_post\_performance(post\_url)                                      | LinkedIn only. Stored lifetime metrics for one registered post.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

| compare\_periods(a, b)                                                 | LinkedIn only. Two explicit date ranges, side by side. End dates are exclusive.                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

| log\_post(post\_url, text, theme)                                      | LinkedIn only. Register a post for the scheduled measurement queue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

| get\_top\_posts(metric, limit)                                         | LinkedIn only. Rank registered posts. Only knows posts added with log\_post, because LinkedIn cannot list your posts.                                                                                                                                                                                                                                                                                                                                                                                                                          |

| get\_content\_insights()                                               | LinkedIn only. Registered posts summarised by theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

| find\_account\_posts(platform, handle, count)                          | Only listed when reference collection is configured. Looks up a public account's most recent original posts (replies and reposts excluded) by handle and returns URLs, dates and short previews. Draws on the same daily read budget as add\_references and stores nothing.                                                                                                                                                                                                                                                                    |

| add\_references(platform, urls, topic, cohort, confirmed\_by\_user)    | Only listed when reference collection is configured. Stores the public X posts you supply as reference evidence. Included in your subscription; the agent confirms the exact list with you on the call. Reads only the URLs given, and never searches X.                                                                                                                                                                                                                                                                                       |

| get\_platform\_signals(platform)                                       | X's published default ranking weights, each with the commit it came from, plus the last 14 days of material changes and how to use them as a final check. Reads stored data only and never fetches X or GitHub live. The values are defaults mirrored from X's open-source repo, so they describe what the ranker rewards, not a reach prediction. Other platforms return available: false.                                                                                                                                                    |

| list\_references(include\_posts)                                       | The stored reference topics and cohorts with their post counts. Reads stored data only, and gives prepare\_content\_brief its exact labels. Set include\_posts to see each group's individual posts before removing any.                                                                                                                                                                                                                                                                                                                       |

| remove\_references(platform, urls, topic, cohort, confirmed\_by\_user) | Deletes stored reference posts: specific URLs, or a whole topic and cohort group. The agent confirms the exact posts or group with you first. Never reaches X or any other platform.                                                                                                                                                                                                                                                                                                                                                           |

| prepare\_content\_brief(topic, cohort, platform)                       | A cached brief for one topic, built from the customer's own stored posts and the public X reference cohort they chose, with X's ranking weights on an X brief, citations, freshness and limitations. Set platform to "x" (default) or "linkedin" to pick which of the customer's own posts it reads, since length and structure do not transfer between platforms: owned X posts are recent and unfiltered by topic, owned LinkedIn posts are theme-filtered, and a LinkedIn brief marks the always-X stored references cross\_platform: true. |

| get\_owned\_performance(platform, limit)                               | Only listed when owned-X collection is configured. Reads stored owner-account snapshots only; it never fetches X or joins a public-reference brief.                                                                                                                                                                                                                                                                                                                                                                                            |

| import\_posts(posts)                                                   | LinkedIn only. Register many posts at once from share URNs you already hold. Makes no LinkedIn request.                                                                                                                                                                                                                                                                                                                                                                                                                                        |

| import\_from\_typefully(api\_key, account\_id)                         | LinkedIn only. Pull every published LinkedIn post out of a Typefully account. Omit account\_id to list the social sets first. Connecting Typefully at /account instead stores the key, so imports can be repeated as you publish.                                                                                                                                                                                                                                                                                                              |

| import\_from\_postiz(api\_key, account\_id, base\_url)                 | LinkedIn only. Pull every published LinkedIn post out of a Postiz account, cloud or self-hosted. Omit account\_id to list the channels first. Pass base\_url for a self-hosted instance. Connecting Postiz at /account instead stores the key.                                                                                                                                                                                                                                                                                                 |

| backfill\_post\_metrics(days)                                          | LinkedIn only. Report registered posts waiting for scheduled measurement. It does not call LinkedIn.                                                                                                                                                                                                                                                                                                                                                                                                                                           |

### Legacy LinkedIn analytics: what it cannot do

LinkedIn’s official API can measure any post you name, but it cannot list which posts exist. Enumerating a member’s own posts requires the `r_member_social` permission, which LinkedIn has closed and is not accepting requests for. So `get_top_posts` and `get_content_insights` cover only posts registered with `log_post`.

Account-level analytics are unaffected: all 90 stored days work without registering anything. `detect_anomalies` is usually the better route to “what worked”, since a standout day points straight at the post responsible.

To fill the corpus in bulk, connect a source at [/account](https://www.getlinkintel.com/account). Typefully and Postiz are the most complete routes because they record every post they published, along with the LinkedIn share URN needed to measure it. Publishing through something else? `POST /api/ingest/posts` takes a post URL from any tool that can make an HTTP request, authorised by a webhook secret that can register posts and nothing else. See [the integrations](https://www.getlinkintel.com/integrations). Failing that, the 90-day export from LinkedIn’s creator analytics downloads immediately and its post URLs carry the URN type in the slug (`-share-` or `-ugcPost-`), which is exactly what the analytics API measures. The full data archive is the weakest option: it takes days and its URLs often carry only an activity id, which cannot be resolved, so those rows are counted and reported rather than registered as posts that could never be measured.

“What does my saved X reference brief support about this topic, and what is still a guess?”

The agent should call `prepare_content_brief` with the exact saved topic and cohort, then separate cited observations from hypotheses it suggests testing. It must not search X, import another post, or present reference performance as the customer’s own baseline.

## How the X sweep works

Once you connect X, a scheduled job reads your recent original posts every day at 07:15 UTC. Nothing needs to be typed for the data to stay current, and your laptop does not need to be on.

* Connect X from [your account page](https://www.getlinkintel.com/account#connect-x), or from the link `get_data_status` returns. You approve a read-only consent screen on X and never give LinkIntel your password.

* The sweep stores snapshots of your recent original posts and their metrics. MCP requests only read those stored snapshots, so a conversation never triggers a live X read.

* Disconnecting X deletes the stored snapshots. LinkIntel never posts, replies or reads direct messages on your behalf.

* X’s open-source ranking weights are synced separately once a day and served by `get_platform_signals` from stored data.

Legacy LinkedIn analytics (existing customers)

LinkedIn is in closed beta and not open to new accounts. If you already connected LinkedIn analytics, it stays available on your account page. Everything below describes that source only, including its sync, freshness, request budget and limits.

## Trusting the numbers

An empty window and a quiet fortnight both produce zeros. Every metric-returning tool carries a freshness block so the agent can tell them apart.

| Status     | Meaning                                                                                                  | What to do                                           |

| ---------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |

| fresh      | Current and complete. At most one day behind, which is normal between UTC midnight and the morning sync. | Nothing.                                             |

| incomplete | Current, but the window has holes, so totals understate reality.                                         | Wait for the scheduled sync.                         |

| stale      | More than one day behind. The scheduled sync is not keeping up.                                          | Check get\_data\_status and the next scheduled sync. |

| empty      | No stored metrics at all. The zeros are not measurements.                                                | Wait for the scheduled sync.                         |

The block also reports `days_stale`, how much of the requested window actually has rows, and a plain-language `warning` when something is off.

### Tools degrade rather than fail

Unique period `members_reached` is not stored for arbitrary date windows, because it can never be summed from daily figures. The tool returns every stored metric and sets reach to `null` with a `reach_unavailable` note. A null never becomes a zero, and a missing value is never compared against a real one to manufacture a delta.

"reach_unavailable": "Official unique period reach is not stored for arbitrary date windows...",

"impressions":     { "value": 10640, "previous": 9701, "delta": 939,  "percent_change": 9.7 },

"members_reached": { "value": null,  "previous": null, "delta": null, "percent_change": null }

## How LinkedIn syncing works

The LinkedIn sync runs automatically every day at 06:15 UTC. Nothing needs to be typed for the data to stay current, and your laptop does not need to be on.

The logic lives in scheduled jobs. MCP requests only read the stored results, so a conversation can never consume the shared LinkedIn request budget.

| --------------------- | --------------------------- |

| Scheduled nightly job | Three-day self-healing sync |

The nightly job keeps stored data current. `sync_now` reports that policy without triggering a refresh.

### Backfills are resumable

* Per-day windows are fetched **newest first**, so an interrupted backfill leaves the recent days complete.

* Days that already hold a value are skipped, so re-running only pays for what is still missing.

* If the budget runs out mid-run, everything already fetched is saved and the tool returns `status: "partial"`. Nothing is thrown away.

* Rows where nothing was measured are never written, since their nulls would sum to zero and read as a genuine day of no activity.

Every outbound call, including 429 retries, is atomically reserved against a per-profile cap before it reaches LinkedIn.

Cost is asymmetric, and this drives the whole backfill design:

| Metric group            | Cost                                    | 3 days | 90 days |

| ----------------------- | --------------------------------------- | ------ | ------- |

| The seven DAILY metrics | 7 requests for _any_ window size        | 7      | 7       |

| LINK\_CLICKS            | 1 request per day                       | 3      | 90      |

| MEMBERS\_REACHED        | 1 request per day, skipped above 7 days | 3      | 0       |

Because a 90-day pull of the core metrics costs only seven requests, long backfills are cheap for everything that matters. Windows longer than seven days skip the daily `MEMBERS_REACHED` series deliberately: it is non-additive and is never summed into a period total, so it is a diagnostic not worth one request per day.

### What repeated use actually costs

Every MCP tool reads or writes LinkIntel storage only, so users can ask questions as often as they like without spending LinkedIn quota.

| Tool                                                                            | First call | Repeat                           |

| ------------------------------------------------------------------------------- | ---------- | -------------------------------- |

| get\_data\_status, get\_daily\_trend, detect\_anomalies, get\_content\_insights | 0          | 0                                |

| get\_performance\_summary, compare\_periods                                     | 0          | 0                                |

| get\_post\_performance, log\_post                                               | 0          | 0                                |

| sync\_now                                                                       | 0          | reports scheduled refresh policy |

Scheduled jobs persist the metrics they collect. A post published minutes ago may stay pending until the next measurement run, and unique reach remains unavailable for arbitrary period windows rather than triggering a live API call.

### When the cap is reached

Scheduled requests are blocked locally before they reach LinkedIn, and the budget resets at UTC midnight. Stored metrics keep working throughout.

Known constraints, stated plainly, so nobody rediscovers them the hard way.

* LinkedIn reports roughly a one-day lag, and says aggregate reshares, reactions and comments can differ from its own UI.

* Period `members_reached` is fetched as a single official TOTAL window at tool time. Daily reach windows are kept only as a non-additive diagnostic and are never summed into period reach.

* Days backfilled in a window longer than seven days have no daily `members_reached` value by design. Period reach is unaffected.

* `FOLLOWER_GAINED_FROM_CONTENT` and `PROFILE_VIEW_FROM_CONTENT` currently return LinkedIn 500s. They are reported as non-blocking warnings and probed weekly, not on every sync.

* Per-post calls accept normal activity URLs and raw `ugcPost` or `share` URNs. Activity IDs are tried as `ugcPost` first and `share` on a 404\. Posts are never enumerated or scraped.

* There is no official way to enumerate historical post URNs, which is why `log_post` exists: the content corpus is built from posts an agent explicitly registers.

One token maps to exactly one LinkIntel profile. It is the only thing standing between a request and someone's stored references and analytics, so it is treated accordingly.

* Only a SHA-256 hash is stored. A database leak yields no working credentials, and the raw token exists exactly once, at the moment it is issued.

* Unknown, malformed and revoked tokens all return the same `401`. Nothing distinguishes them, so the endpoint cannot be used to discover which tokens are real.

* Revocation applies on the very next request. There is no cache to wait out.

* Every use updates a last-seen timestamp, so a token that is no longer in use is easy to spot and retire.

* Tokens are not passwords and grant no access to your X or LinkedIn account. They reach LinkIntel’s stored data for one profile and nothing else.

Email support@getlinkintel.com and it will be revoked, which takes effect on the very next request. Nothing else needs to be rotated: the token only reads and writes one profile’s LinkIntel data. OAuth clients never see a long-lived token at all.

| Symptom                                      | Cause and fix                                                                                                                                                                                                                         |

| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| 401 A valid bearer token is required         | The token is missing, mistyped, or has been revoked. All three return the same error on purpose, so nobody can probe for which tokens exist. Check the header is Authorization: Bearer lnki\_... and ask for a fresh token if unsure. |

| 405 This endpoint accepts POST only          | Something issued a GET, usually a browser. The endpoint is JSON-RPC over POST and has nothing to show in a browser tab.                                                                                                               |

| connected: false for a legacy analytics tool | The profile behind your token has not added the optional LinkedIn source. X-reference briefs do not require LinkedIn authorisation.                                                                                                   |

| LinkedIn safety budget reached               | Expected once 75 requests are spent in a UTC day. Stored metrics still work and live reach returns null. Resets at UTC midnight.                                                                                                      |

| Tools return zeros                           | Check get\_data\_status. A status of empty means no data, not no activity.                                                                                                                                                            |

| Failed to connect in claude mcp list         | Confirm the URL is exactly the endpoint above and the Authorization header actually reached the client. Then try the curl in step 3, which shows the raw error.                                                                       |

### The ceiling on going multi-user

LinkedIn’s Development tier allows 500 requests per day across the whole app. At roughly 13 requests per profile per day, that caps the product at about 35 to 40 connected profiles. Getting past it needs a LinkedIn tier increase, not a code change.

Read-only. Deployment and credential runbook steps are kept in the repository README rather than here.
