Microlink

v2.9.1
io.microlink/mcp Checked 10 hours ago Published 1 day ago

Screenshots, PDFs, Markdown, metadata and structured data from any public URL.

A Model Context Protocol (MCP) server that exposes Microlink API capabilities to AI assistants. Runs over stdio transport, making it compatible with Claude Desktop, VS Code, Cursor, and any other MCP-capable client. It turns natural-language requests into Microlink calls: take screenshots, generate PDFs, extract metadata or readable text, detect video/audio sources, run Lighthouse audits, and scrape custom fields with CSS selectors, all without leaving the assistant. See the MCP integration page for a guided walkthrough, or the @microlink/mcp npm package.

Summary extracted from the README.

Microlink MCP

A Model Context Protocol (MCP) server that exposes Microlink API capabilities to AI assistants. Runs over stdio transport, making it compatible with Claude Desktop, VS Code, Cursor, and any other MCP-capable client.

It turns natural-language requests into Microlink calls: take screenshots, generate PDFs, extract metadata or readable text, detect video/audio sources, run Lighthouse audits, and scrape custom fields with CSS selectors, all without leaving the assistant.

See the MCP integration page for a guided walkthrough, or the @microlink/mcp npm package.

Table of contents

Install

Requires Node.js 24 or newer.

No local installation is required. Run directly with npx:

npx -y @microlink/mcp

Optional: install globally

npm install -g @microlink/mcp
microlink-mcp

During installation, the package prints a console reminder about the free Microlink plan (5 requests/day without a key, 25 requests/day with a free API key) and where to get an API key for higher/unlimited usage at microlink.io/#pricing.

MCP client configuration

Claude Desktop

Edit ~/Library/Application\ Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "microlink": {
      "command": "npx",
      "args": ["-y", "@microlink/mcp"],
      "env": {
        "MICROLINK_API_KEY": "YOUR_MICROLINK_API_KEY"
      }
    }
  }
}

VS Code

Add the published package to .vscode/mcp.json:

{
  "servers": {
    "microlink": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@microlink/mcp"],
      "env": {
        "MICROLINK_API_KEY": "YOUR_MICROLINK_API_KEY"
      }
    }
  }
}

For a local repository checkout, replace the server command with:

{
  "type": "stdio",
  "command": "node",
  "args": ["/absolute/path/to/mcp/src/index.js"],
  "env": {
    "MICROLINK_API_KEY": "YOUR_MICROLINK_API_KEY"
  }
}

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "microlink": {
      "command": "npx",
      "args": ["-y", "@microlink/mcp"],
      "env": {
        "MICROLINK_API_KEY": "YOUR_MICROLINK_API_KEY"
      }
    }
  }
}

Usage

Once the server is configured, talk to your assistant in plain language. It picks the right tool and parameters for you:

  • "Take a full-page screenshot of https://example.com in dark mode." → microlink_screenshot
  • "Generate a Letter-size PDF of https://example.com." → microlink_pdf
  • "Get the title, description, and image for https://example.com." → microlink_metadata
  • "Convert https://news.ycombinator.com to Markdown." → microlink_markdown
  • "Find the playable video in this YouTube link." → microlink_video
  • "Run a Lighthouse performance audit on https://example.com." → microlink_lighthouse
  • "Scrape every article title from this page using the .title selector." → microlink_extract with data
  • "What parameters does screenshot take?" → microlink_docs

Tools can also be invoked directly. URL-processing tools take a url; onboarding tools use the inputs listed below; microlink_docs takes a product. Every tool returns structuredContent (see Response shape):

{
  "name": "microlink_screenshot",
  "arguments": {
    "url": "https://example.com",
    "screenshot": { "fullPage": true, "type": "png" },
    "colorScheme": "dark"
  }
}

Tools

Capabilities at a glance

URL-processing tools are thin wrappers over a microlink.io library method — same inputs, same result, one source of truth. Onboarding tools call the dashboard Checkout API. Creating a session listens on localhost for the same Connect handshake as microlink buy. microlink_docs loads canonical product markdown from microlink.io (the same source as microlink <product> docs).

  • microlink_list_plans: list plans available to a new customer.
  • microlink_create_checkout_session: start paid Checkout for a planId. Give its connectUrl to the human on this machine. A free development key is dashboard Sign up, not this tool.
  • microlink_get_checkout_session: poll until checkoutUrl appears (give that to the human to pay), then until ready or expired. The API key secret is not returned here (welcome email / dashboard).
  • microlink_docs: canonical parameter docs for a product. Call this before a product tool whose parameters you do not know well.
  • microlink_metadata: normalized metadata extraction with include/exclude config.
  • microlink_logo: brand logo extraction.
  • microlink_markdown / microlink_html / microlink_text: URL to Markdown / HTML / plain text.
  • microlink_screenshot: screenshot generation with element/full-page/animated modes and browser controls.
  • microlink_pdf: PDF generation with page/layout controls.
  • microlink_embed: oEmbed-style embeddable iframe ({ html, scripts }).
  • microlink_video / microlink_audio: primary playable video / audio source.
  • microlink_links / microlink_images / microlink_videos / microlink_audios / microlink_emails: collect every link / image / video / audio / email on the page.
  • microlink_technologies: technology-stack detection (Wappalyzer).
  • microlink_lighthouse: Google Lighthouse audit.
  • microlink_search: Google as structured data (requires an API key).
  • microlink_function: run a JavaScript function in Microlink's server-side browser sandbox.
  • microlink_extract: custom scraping rules (data) + multi-capability composition in one call.
  • Cross-cutting request capabilities: device/viewport emulation, click/scroll actions, JS/CSS injection, modules, wait conditions, cache controls (ttl, staleTtl, force), retries/timeouts, media mode, headers/proxy, and endpoint/auth routing.

Response shape

  • URL-processing tools return the library's direct result under structuredContent.data (and the same value as pretty-printed JSON text). For example microlink_markdown → { data: "# Title\n..." }, microlink_screenshot → { data: { url, type, width, height, size } }, microlink_links → { data: ["https://...", ...] }. Onboarding tools return dashboard Checkout payloads under the same envelope. microlink_docs returns the product markdown string.
  • Every tool also declares an MCP outputSchema describing its structuredContent.data. URL-processing schemas mirror the TypeScript types shipped by the library (Asset, Metadata, Embed, FunctionResult, ...); onboarding schemas mirror the dashboard Checkout API; docs is a markdown string. Error results are exempt from output validation. Fields that can legitimately be absent are nullable (for example logo when no brand logo is detected, or markdown when the selector matches nothing).
  • Tools are annotated readOnlyHint: true when they only read remote state. microlink_function executes user-supplied code and microlink_create_checkout_session creates remote Checkout state, so they are not annotated read-only.
  • On failure the tool sets MCP isError and returns { error: { message, code?, status?, statusCode?, url?, more?, details? } }, where message carries the specific cause reported by the API. Capability errors that retrying cannot fix (for example EPROXYNEEDED or EINTEGRATION) also include machine-readable reason (upgrade_required), capability, an upgrade object with the plan and pricing URL, and an agent-facing hint with the next step. A 429 includes reason: "quota_exceeded" and a hint: the keyless daily quota without an API key, or the quota on your key with one.

Parameters that require a paid plan are labeled PRO in their own schema descriptions, mirroring the official Microlink docs. For compatibility with some MCP clients:

  • boolean parameters also accept the strings "true" and "false" and are normalized before validation.
  • parameters that accept objects also accept JSON stringified objects (for example, screenshot: "{\"overlay\":{\"browser\":\"dark\"}}").

Fetch the canonical parameter documentation for a Microlink product. Returns the same markdown as microlink <product> docs (https://microlink.io/docs/sdk/methods/<product>.md).

Call this before using a product tool whose parameters you do not know well.

Key parameters:

Parameter Type Description
product string Product name (required). One of: metadata, logo, markdown, html, text, video, audio, emails, links, images, videos, audios, extract, screenshot, pdf, embed, technologies, lighthouse, search, function

Extract structured metadata from any public URL. Returns normalized fields (title, description, author, publisher, date, image, logo, lang, url) plus any custom fields defined via CSS selectors.

Supports combining multiple features in a single request: screenshot, PDF, video, audio, insights, and palette. For screenshot, pdf, and insights, use true for defaults or an object for options. Empty objects ({}) are treated as true.

Key parameters:

Parameter Type Description
url string The URL to extract data from (required)
apiKey string Microlink API key (optional; see Authentication)
data object Custom CSS-selector extraction rules
meta boolean | object Include/exclude normalized metadata fields
embed string Microlink embed mode
iframe boolean | object Include iframe payload options
function string Custom Microlink function hook
ping boolean | object Enable ping checks
screenshot boolean | object Capture a screenshot
pdf boolean | object Generate a PDF
video boolean Extract video source
audio boolean Extract audio source
insights boolean | object Run Lighthouse / tech detection
palette boolean Extract color palette
adblock boolean Enable ad blocking
animations boolean Enable/disable animations
device string Emulate a device (e.g. "iPhone 12")
colorScheme "light" | "dark" | "no-preference" Preferred color scheme
viewport object Custom viewport dimensions
click string | string[] CSS selector(s) to click before capture
scroll string CSS selector to scroll to
javascript boolean Toggle JavaScript execution
modules string | string[] Browser module(s) to inject
scripts string | string[] JavaScript to inject
styles string | string[] CSS to inject
mediaType "screen" | "print" CSS media mode
prerender "auto" | boolean Prerender strategy
proxy string | object Proxy configuration (PRO)
retry number Retry count
ttl string | number Cache TTL
cacheKey string Custom cache key for the request (PRO)
staleTtl string | number | boolean Stale cache TTL policy (PRO)
force boolean Bypass cache
timeout string | number Request timeout
headers object Custom HTTP headers (PRO)
filename string Preferred output filename (PRO)
filter string Response filter
waitForSelector string Wait for element before capture
waitForTimeout string | number Wait an additional timeout before capture
waitUntil string | string[] Navigation event(s): auto, load, domcontentloaded, networkidle0, networkidle2

Capture a screenshot of any public URL and return the screenshot asset object (url, type, width, height, size). Set screenshot to true for defaults, or pass screenshot: { ... } for options. screenshot: {} is treated as true.

Key parameters:

Parameter Type Description
url string The URL to screenshot (required)
screenshot boolean | object Enable screenshot with defaults (true) or provide screenshot options ({...}); {} behaves as true
screenshot.fullPage boolean Capture the full scrollable page
screenshot.element string CSS selector to capture a specific element
screenshot.type "jpeg" | "png" Output format (default: "png")
screenshot.omitBackground boolean Transparent background
screenshot.overlay object Browser chrome overlay (browser: "light"|"dark", background: CSS color)
screenshot.codeScheme string Syntax-highlight theme for code pages (e.g. "dracula")
colorScheme "light" | "dark" | "no-preference" Preferred color scheme
device string Device emulation
viewport object Custom viewport
click string | string[] Click before capture
scroll string Scroll to element
scripts string | string[] JavaScript to inject before capture
styles string | string[] CSS to inject before capture
modules string | string[] Browser module(s) to inject
proxy string | object Proxy configuration (PRO)
headers object Custom HTTP headers (PRO)
force boolean Bypass cache
ttl string | number Cache TTL
cacheKey string Custom cache key for the request (PRO)
staleTtl string | number | boolean Stale cache TTL policy (PRO)
retry number Retry count
timeout string | number Request timeout
prerender "auto" | boolean Prerender strategy
adblock boolean Enable ad blocking
animations boolean Enable/disable animations
javascript boolean Toggle JavaScript execution
mediaType "screen" | "print" CSS media mode
filename string Preferred output filename (PRO)
filter string Response filter
waitForSelector string Wait for element
waitForTimeout string | number Wait an additional timeout before capture
waitUntil string | string[] Navigation event(s): auto, load, domcontentloaded, networkidle0, networkidle2

Generate a PDF of any public URL and return the PDF asset object (url, type, size). Set pdf to true for defaults, or pass pdf: { ... } for options. pdf: {} is treated as true.

Key parameters:

Parameter Type Description
url string The URL to convert (required)
pdf boolean | object Enable PDF with defaults (true) or provide PDF options ({...}); {} behaves as true
pdf.format string Paper size: "A4" (default), "Letter", "Legal", "Tabloid", "Ledger", "A0"–"A6"
pdf.landscape boolean Landscape orientation
pdf.margin string | object Page margins (e.g. "0.35cm" or {top, bottom, left, right})
pdf.scale number Page scale factor (0.1–2.0)
pdf.pageRanges string Page range (e.g. "1-5")
pdf.width / pdf.height string Custom dimensions (overrides format)
scripts string | string[] JavaScript to inject before rendering
styles string | string[] CSS to inject before rendering
modules string | string[] Browser module(s) to inject
proxy string | object Proxy configuration (PRO)
headers object Custom HTTP headers (PRO)
force boolean Bypass cache
ttl string | number Cache TTL
cacheKey string Custom cache key for the request (PRO)
staleTtl string | number | boolean Stale cache TTL policy (PRO)
retry number Retry count
timeout string | number Request timeout
prerender "auto" | boolean Prerender strategy
adblock boolean Enable ad blocking
animations boolean Enable/disable animations
javascript boolean Toggle JavaScript execution
device string Device emulation
viewport object Custom viewport
filename string Preferred output filename (PRO)
filter string Response filter
mediaType "screen" | "print" CSS media type
waitForSelector string Wait for element
waitForTimeout string | number Wait an additional timeout before rendering
waitUntil string | string[] Navigation event(s): auto, load, domcontentloaded, networkidle0, networkidle2

Detect and extract a playable video source from any URL. Returns the video asset object: url, type, duration, size, width, height, duration_pretty, and size_pretty.

Supports YouTube, Vimeo, Twitter/X, TikTok, Instagram, Dailymotion, and hundreds of other platforms.

Key parameters:

Parameter Type Description
url string The URL containing a video (required)
proxy string | object Proxy for restricted platforms (PRO)
meta boolean | object Include/suppress page metadata

Detect and extract a playable audio source from any URL. Returns the audio asset object: url, type, duration, size, duration_pretty, and size_pretty.

Supports SoundCloud, Spotify, Mixcloud, and other audio platforms.

Key parameters:

Parameter Type Description
url string The URL containing audio (required)
proxy string | object Proxy for restricted platforms (PRO)
meta boolean | object Include/suppress page metadata

Detect the technology stack behind any URL (frameworks, CDNs, analytics, e-commerce, ...) via Wappalyzer. Returns the array of detected technologies.

Mirrors the microlink.technologies(url) library method.

Key parameters:

Parameter Type Description
url string The URL to analyze (required)
apiKey string Microlink API key (optional)

Run a Google Lighthouse audit (performance, accessibility, best-practices, SEO) for any URL. Returns the Lighthouse report.

Mirrors the microlink.lighthouse(url) library method.

Key parameters:

Parameter Type Description
url string The URL to analyze (required)
apiKey string Microlink API key (optional)

Extract normalized metadata from any public URL. Returns: title, description, lang, author, publisher, date, url, image (with dimensions and file info), and logo (publisher favicon).

Mirrors the microlink.metadata(url) library method.

Key parameters:

Parameter Type Description
url string The URL to inspect (required)
meta boolean | object false to skip all metadata; object to include/exclude specific fields (e.g. { logo: true, title: true })

Extract the brand logo of any public URL. Returns the logo asset: url, type, width, height, size, and size_pretty.

Mirrors the microlink.logo(url, { square }) library method. Useful for building link previews, favicons, or brand cards.

Key parameters:

Parameter Type Description
url string The URL to analyze (required)
square boolean Prefer a square (icon-shaped) logo variant

Convert any public URL to Markdown. Returns the page content as a Markdown string, useful for extracting readable content from web pages, articles, and documentation.

Key parameters:

Parameter Type Description
url string The URL to convert (required)
apiKey string Microlink API key (optional)

Extract the HTML content of any public URL. Returns the page HTML as a string.

Mirrors the microlink.html(url) library method.

Key parameters:

Parameter Type Description
url string The URL to convert (required)
apiKey string Microlink API key (optional)

Extract plain text from any public URL. Returns the readable page text as a string.

Key parameters:

Parameter Type Description
url string The URL to extract text from (required)
apiKey string Microlink API key (optional)

Get the oEmbed-style embeddable iframe for any URL (YouTube, Tweet, CodePen, ...). Returns { html, scripts } — the markup plus the script URLs it needs.

Mirrors the microlink.embed(url) library method.

Key parameters:

Parameter Type Description
url string The URL to embed (required)
apiKey string Microlink API key (optional)

Collect every link, image, video source, audio source, or email address on a page. Each returns a clean, absolute, deduped array under data.

Mirror the microlink.links(url) / .images(url) / .videos(url) / .audios(url) / .emails(url) library methods. For the single primary playable media, use microlink_video / microlink_audio.

Key parameters:

Parameter Type Description
url string The URL to scan (required)
apiKey string Microlink API key (optional)

Search Google and get structured results (requires an API key). Returns results (title, url, description) plus knowledgeGraph, peopleAlsoAsk, and relatedSearches when Google surfaces them.

Mirrors the microlink.search(query) library method. Google search operators (site:, filetype:, quotes, ...) work as-is.

Key parameters:

Parameter Type Description
query string The search query (required)
apiKey string Microlink API key (required for this tool)
type string Vertical: search (default), news, images, videos, places, maps, shopping, scholar, patents, autocomplete
limit number Max results
location string Two-letter country code (e.g. es)
period string Recency filter: hour, day, week, month, year

Run a JavaScript function against any public URL inside Microlink's server-side browser sandbox. The function receives { page, response, ...args } and its return value comes back in value (plus isFulfilled, profiling, logging).

Mirrors the microlink.function(url, code) library method.

Key parameters:

Parameter Type Description
url string The URL to run against (required)
code string Function source, e.g. "async ({ page }) => page.title()" (required)
apiKey string Microlink API key (optional)

Authentication

Every tool accepts an optional apiKey parameter. The key is resolved from these sources in order of priority:

  1. apiKey field in the tool input parameters
  2. Authorization: Bearer <key> header from the MCP request
  3. x-api-key header from the MCP request
  4. MICROLINK_API_KEY environment variable

The MICROLINK_API_KEY environment variable is the recommended approach for most integrations. Get your key at microlink.io.

If an API key is present, requests are sent to https://pro.microlink.io; otherwise they go to https://api.microlink.io (free endpoint).

When the free endpoint returns 429, this MCP adds a clear hint in the tool error message: free daily quota reached, plus upgrade/API key guidance at microlink.io/#pricing. With an API key, the hint points at the quota on that key instead: wait a second and retry once (too many concurrent requests), and if it fails again, wait for the reset or upgrade.

Development

Publish to the MCP Registry

The server is listed as io.microlink/mcp. To use that name, the workflow proves that we control microlink.io. This setup is needed once:

  1. Create a GitHub environment named mcp-registry. Require a reviewer, allow only the master branch, and don't let administrators bypass the rules. Do this before you add the key.
  2. Outside this repository, create an Ed25519 key pair with OpenSSL 3 or later. Follow the HTTP authentication steps. Never commit the private key.
  3. Add the private key to the environment as the MCP_PRIVATE_KEY secret. Use its 64-character hex value, not the PEM file. Don't add it as a repository or organization secret.
  4. Serve the public key at https://microlink.io/.well-known/mcp-registry-auth. The file must contain v=MCPv1; k=ed25519; p=<base64 public key>. The URL must return 200 without a redirect.

To publish, first release a version to npm with mcpName set to io.microlink/mcp. Then run the mcp-registry workflow from master. Check the commit and workflow before you approve the run. The workflow publishes server.json with the latest npm version. It doesn't run when you merge to master.

License

microlink © Microlink, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.

microlink.io · GitHub microlinkhq · X @microlinkhq