OpenGraph.io MCP Server

v3.3.0
io.github.securecoders/opengraph-io-mcp Checked 2 days ago Published 1 month ago

Fetch web/social data, screenshots, scrape/extract content, generate images, audit SEO & links.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

getOgData

Fetch Open Graph metadata, HTML-inferred tags, and hybrid social preview data for any URL via the OpenGraph.io API (v3). Returns og:title, og:description, og:image, og:type, favicon, and more, merged from three sources: raw Open Graph tags (`openGraph`), HTML-inferred fallbacks (`htmlInferred`), and a best-of hybrid (`hybridGraph`). Use `hybridGraph` as your primary source — it fills gaps automatically. Pick the right tool: getOgData → Open Graph tags, social preview metadata (title, description, image, favicon) getOgMarkdown → Clean readable text / article prose — ideal…

ParameterTypeDescription
url *stringURL of the webpage to analyze.
accept_langstringAccept-Language header for the outbound request. Use 'auto' to mirror the caller's language. Defaults to 'auto'.
ai_sanitizebooleanScan the fetched content for prompt-injection attempts before returning it.
ai_sanitize_modestring'sanitize' cleans the content, 'warn' returns it with a safety report, 'block' returns HTTP 422 when risk_score >= 0.7.
auto_proxybooleanAutomatically escalate to a proxy if the direct request fails. Defaults to true on v3.
auto_renderbooleanAutomatically detects JS-heavy / SPA pages and re-fetches with browser rendering when needed. Enabled by default on v3 — leave unset unless you want to disable it. For guaranteed JS execution on eve…
cache_okbooleanUse cached results. Set to false to bypass cache and get fresh data. Defaults to true.
full_renderbooleanForces a full browser execution pass on every request regardless of page type. Use when auto_render hasn't produced the content you expected, or when you need guaranteed JavaScript execution. Slower t…
load_more_clicksintegerNumber of times to click the load_more_selector (1–10). Defaults to 3.
load_more_item_selectorstringCSS selector to watch for new items when using load_more_selector.
load_more_scrollbooleanScroll between load_more clicks. Defaults to true.
load_more_selectorstringCSS selector for a 'load more' button to click before extraction. Forces full_render.
load_more_waitintegerMilliseconds to wait after each load_more click (0–5000). Defaults to 1500.
max_cache_ageintegerMaximum cache age in milliseconds. Results older than this will be re-fetched. Defaults to 432000000 (5 days).
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB').
retrybooleanAutomatically retry failed requests with escalating proxy tiers. Defaults to true on v3.
retry_escalatebooleanEscalate proxy tier on each retry attempt. Defaults to true.
scroll_to_bottombooleanScroll to the bottom of the page before extraction. Useful for lazy-loaded content. Forces full_render.
use_aibooleanEnhance the metadata response with AI-generated fields. Requires an AI-enabled plan.
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before extracting data. Forces full_render.

getOgScrapeData

Scrape and return the raw HTML of a URL via the OpenGraph.io API (v3). Returns the complete page HTML — use this when you need to do your own parsing, extract all links, inspect the DOM structure, or feed raw markup into another tool or model. The text response includes the first 3 000 characters; the full HTML is in the structured `html` field. For JS-heavy or single-page applications set `full_render: true` to guarantee JavaScript execution before the HTML is captured. For most sites, the default `auto_render` handles this automatically. Pick the right tool: getOgData → Open G…

ParameterTypeDescription
url *stringURL of the webpage to scrape.
accept_langstringAccept-Language header for the outbound request. Use 'auto' to mirror the caller's language. Defaults to 'auto'.
ai_sanitizebooleanScan the fetched content for prompt-injection attempts before returning it.
ai_sanitize_modestring'sanitize' cleans the content, 'warn' returns it with a safety report, 'block' returns HTTP 422 when risk_score >= 0.7.
auto_proxybooleanAutomatically escalate to a proxy if the direct request fails. Defaults to true on v3.
auto_renderbooleanAutomatically detects JS-heavy / SPA pages and re-fetches with browser rendering when needed. Enabled by default on v3 — leave unset unless you want to disable it. For guaranteed JS execution on eve…
cache_okbooleanUse cached results. Set to false to bypass cache and get fresh data. Defaults to true.
full_renderbooleanForces a full browser execution pass on every request regardless of page type. Use when auto_render hasn't produced the content you expected, or when you need guaranteed JavaScript execution. Slower t…
load_more_clicksintegerNumber of times to click the load_more_selector (1–10). Defaults to 3.
load_more_item_selectorstringCSS selector to watch for new items when using load_more_selector.
load_more_scrollbooleanScroll between load_more clicks. Defaults to true.
load_more_selectorstringCSS selector for a 'load more' button to click before scraping.
load_more_waitintegerMilliseconds to wait after each load_more click (0–5000). Defaults to 1500.
max_cache_ageintegerMaximum cache age in milliseconds. Results older than this will be re-fetched. Defaults to 432000000 (5 days).
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB').
retrybooleanAutomatically retry failed requests with escalating proxy tiers. Defaults to true on v3.
retry_escalatebooleanEscalate proxy tier on each retry attempt. Defaults to true.
scroll_to_bottombooleanScroll to the bottom of the page before scraping. Useful for lazy-loaded content.
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before scraping. Forces full_render.

getOgScreenshot

Capture a screenshot of any URL via the OpenGraph.io API (v3). Supports full-page or viewport captures, custom viewport dimensions, dark mode, image format/quality control, cookie-banner dismissal, and CSS selector-based element targeting or exclusion. Returns a `screenshotUrl` — a hosted URL pointing to the screenshot image file, not inline image data. Use this URL directly in a browser, an <img> tag, or pass it to another tool. Pick the right tool: getOgData → Open Graph tags, social preview metadata (title, description, image, favicon) getOgMarkdown → Clean readable te…

ParameterTypeDescription
url *stringURL of the webpage to screenshot.
accept_langstringAccept-Language header for the outbound request. Defaults to 'auto'.
auto_proxybooleanAutomatically escalate to a proxy if the direct request fails. Defaults to true on v3.
block_cookie_bannerbooleanAttempt to dismiss cookie consent banners before capturing. Defaults to false.
cache_okbooleanUse cached results. Set to false to bypass cache. Defaults to true.
capture_delayintegerMilliseconds to wait after page load before capturing (0–10 000). Defaults to 0.
dark_modebooleanEnable dark mode (prefers-color-scheme: dark). Defaults to false.
dimensionsstringViewport dimensions as WxH (e.g. '1280x800'). Defaults to '1366x768'.
exclude_selectorsstringComma-separated CSS selectors to hide (set visibility: hidden) before capturing.
formatstringImage format. Defaults to 'jpg'.
full_pagebooleanCapture the full scrollable page height. Defaults to false (viewport only).
full_renderbooleanFully render the page with JavaScript before capturing. Defaults to true for screenshots.
hideSelectorsbooleanWhether to apply the exclude_selectors hiding. Defaults to true when exclude_selectors is set.
max_cache_ageintegerMaximum cache age in milliseconds. Defaults to 432000000 (5 days).
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
navigationTimeoutintegerNavigation timeout in milliseconds (1 000–60 000). Defaults to 30 000.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB').
qualityintegerImage compression quality 1–100. Only applies to jpg/webp. Defaults to 80.
retrybooleanAutomatically retry failed requests. Defaults to true on v3.
selectorstringCSS selector — crop the screenshot to just this element.
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before capturing.

getOgQuery

Ask a natural-language question about the content of any URL and receive an AI-generated answer via the OpenGraph.io API. Optionally pass a responseStructure schema to extract structured data. Uses 100 API credits per request (200 with the 'mini' model); a cached answer uses 1.

ParameterTypeDescription
query *stringNatural-language question to answer about the page content.
url *stringURL of the webpage to query.
accept_langstringAccept-Language header for the outbound request. Defaults to 'auto'.
ai_sanitizebooleanScan the fetched content for prompt-injection attempts.
ai_sanitize_modestring'sanitize' cleans the content, 'warn' returns a safety report, 'block' returns HTTP 422 when risk_score >= 0.7.
auto_renderbooleanAutomatically detect and switch to headless rendering for SPA pages.
cache_okbooleanUse cached page results. Set to false to bypass cache. Defaults to true.
full_renderbooleanFully render the page with JavaScript before querying.
max_cache_ageintegerMaximum cache age in milliseconds. Defaults to 432000000 (5 days).
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
modelSizestringAI model size. 'nano' is fast and uses 100 credits; 'mini' uses a larger model for harder questions and uses 200. Defaults to 'nano'.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node.
responseStructureOptional JSON schema describing the shape of the desired response. When provided, the model returns a structured JSON answer.
retrybooleanAutomatically retry failed requests.
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before querying.

getOgExtract

Extract specific content from any URL via the OpenGraph.io API (v3). Two modes — choose based on what you need: **Mode 1 — Tag-based** (`html_elements`): pass an array of HTML tag names, e.g. `['h1','h2','p','a']`. The API collects all matching elements and joins their text into a single `concatenatedText` string. Best for bulk content extraction where you want all headings, paragraphs, or links as one block of text. **Mode 2 — Selector-based** (`selectors`): pass a CSS selector map where each key is your chosen label and each value is a CSS selector, e.g. `{ "title": "article h1", "pr…

ParameterTypeDescription
url *stringURL of the webpage to extract content from.
accept_langstringAccept-Language header for the outbound request. Defaults to 'auto'.
ai_sanitizebooleanScan the fetched content for prompt-injection attempts.
ai_sanitize_modestring'sanitize' cleans the content, 'warn' returns a safety report, 'block' returns HTTP 422.
auto_proxybooleanAutomatically escalate to a proxy if the direct request fails. Defaults to true on v3.
auto_renderbooleanAutomatically detect and switch to headless rendering for SPA pages. Defaults to true on v3.
cache_okbooleanUse cached results. Set to false to bypass cache. Defaults to true.
full_renderbooleanFully render the page with JavaScript before extracting. Useful for SPAs.
html_elementsarrayList of HTML tag names to extract (e.g. ['h1', 'h2', 'a', 'img', 'p']). Defaults to ['title','h1','h2','h3','h4','h5','p'] when neither html_elements nor selectors is provided.
load_more_clicksintegerNumber of times to click the load_more_selector (1–10). Defaults to 3.
load_more_item_selectorstringCSS selector to watch for new items when using load_more_selector.
load_more_scrollbooleanScroll between load_more clicks. Defaults to true.
load_more_selectorstringCSS selector for a 'load more' button to click before extracting.
load_more_waitintegerMilliseconds to wait after each load_more click (0–5000). Defaults to 1500.
max_cache_ageintegerMaximum cache age in milliseconds. Defaults to 432000000 (5 days).
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node.
retrybooleanAutomatically retry failed requests. Defaults to true on v3.
retry_escalatebooleanEscalate proxy tier on each retry attempt. Defaults to true.
scroll_to_bottombooleanScroll to the bottom of the page before extracting. Useful for lazy-loaded content.
selectorsobjectCSS selector map for structured extraction. Keys are output labels; values are CSS selectors. Example: { "article_title": "article h1", "price": ".price-box .price", "description": "#product-descripti…
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before extracting.

getOgMarkdown

Convert any URL's HTML into clean Markdown via the OpenGraph.io API (v3 markdown endpoint). Strips navigation, ads, and boilerplate by default — the result is main-content prose, headings, links, and images ready to read or feed into another model. Use `include_tags` / `exclude_tags` to target or remove specific page sections. LONG PAGES — prefer retrieval over truncation. Set `query` with `chunking: true` to get back only the passages that answer your question (ranked by relevance) instead of the whole page. Use `max_chars` to cap raw output when you genuinely need prose. `chunk_size` an…

ParameterTypeDescription
url *stringURL of the webpage to convert to Markdown.
accept_langstringAccept-Language header for the outbound request. Defaults to 'auto'.
ai_sanitizebooleanScan the fetched content for prompt-injection attempts and return a safety report.
ai_sanitize_modestring'sanitize' cleans the content, 'warn' reports without changing it, 'block' returns HTTP 422. Only takes effect when ai_sanitize is true.
auto_proxybooleanAutomatically escalate to a proxy if the direct request fails.
cache_okbooleanUse cached results. Set to false to bypass cache. Defaults to true.
chunk_overlapintegerCharacters of overlap between consecutive chunks, for context. Max half of chunk_size.
chunk_sizeintegerTarget characters per chunk (200–20000). Defaults to 2000.
chunkingbooleanSplit the Markdown into chunks. Implied by `query`.
exclude_tagsarrayCSS selectors to remove before conversion. Supports wildcard/regex patterns. Example: ['nav', 'footer', '.sidebar', '.ad*'].
full_renderbooleanForce full browser rendering before conversion. Rendering is applied automatically for pages detected as JavaScript-heavy; set this when that detection is insufficient.
heading_awarebooleanSplit on heading boundaries where possible, so sections stay intact. Defaults to true.
heading_aware_levelintegerDeepest heading level treated as a split boundary (1–6). Defaults to 2.
include_chunksbooleanSet false to get chunk counts in `usage` without the chunk bodies.
include_headingsbooleanInclude the heading outline, plus table/code-block detection flags.
include_imagesbooleanInclude every image with its src and alt text.
include_linksbooleanInclude every hyperlink with its text and rel attributes.
include_markdownbooleanSet false to omit the prose body — useful when you only want structure or chunks.
include_metadatabooleanInclude page metadata (title, description, language, canonical URL). Defaults to true.
include_tagsarrayCSS selectors — keep only elements matching these selectors. Example: ['article', 'main', '.content'] to target the main content area only.
load_more_clicksintegerNumber of times to click the load_more_selector (1–10). Defaults to 3.
load_more_item_selectorstringCSS selector for the repeating item, used to detect when clicking stopped adding content.
load_more_scrollbooleanScroll between load_more clicks. Defaults to true.
load_more_selectorstringCSS selector for a 'load more' button to click before conversion.
load_more_waitintegerMilliseconds to wait after each load_more click (0–5000). Defaults to 1500.
max_cache_ageintegerMaximum cache age in milliseconds. Defaults to 432000000 (5 days).
max_charsintegerTruncate the Markdown to this many characters. Prefer `query` + `chunking` when you want the relevant part of a long page rather than an arbitrary prefix.
max_chunksintegerMaximum chunks to return (1–2000). Defaults to 500.
max_retriesintegerMaximum number of retry attempts (1–4). Defaults to 4.
only_main_contentbooleanHeuristically strip navigation, header, footer, and ads, keeping only main prose content. Defaults to true server-side. Set to false to convert the full page.
proxy_countrystringTwo-letter ISO country code for geo-targeted proxy exit node.
querystringNatural-language question. Returns only the most relevant chunks, ranked (BM25), instead of the whole page. Requires chunking (enabled automatically when set).
query_top_kintegerHow many ranked chunks to return when `query` is set. Defaults to 5.
retrybooleanAutomatically retry failed requests.
retry_escalatebooleanEscalate proxy tier on each retry attempt. Defaults to true.
scroll_to_bottombooleanScroll to the bottom of the page before conversion. Forces full_render.
use_premiumbooleanRoute the request through a premium proxy.
use_proxybooleanRoute the request through a standard proxy.
use_superiorbooleanRoute the request through a superior-tier proxy.
wait_for_selectorstringCSS selector to wait for before converting. Forces full_render.

getBrandIntelligence

Build a structured brand profile for a website via the OpenGraph.io Brand Intelligence API. Crawls about ten of the brand's own pages and returns: brand (name, description, tagline, category), identity (logos, an inline SVG logo when the site draws one, icon, colors, fonts), products, audiences, positioning, messaging, voice, visual style, and links. Values with too little evidence come back null rather than guessed. Use it when you need to understand or write as a brand; use getOgData or getOgMarkdown for a single page. COST: a fresh analysis uses 500 API credits; a cached one uses 1; a fail…

ParameterTypeDescription
url *stringThe brand's website, e.g. https://linear.app.
cache_okbooleanSet to false to force a fresh analysis (500 credits). Defaults to true.
include_metabooleanAdd a `_meta` object recording, per field, its basis (observed / derived / inferred) and which analyzed pages support it. Defaults to false.
questionsarrayUp to 3 custom questions, answered under `custom` with the requested type. A request with questions is never served from cache.
sectionsobjectTurn sections off by setting them to false; every section is on by default. Skipping sections makes the request faster but does not lower the cost, and a different set of sections does not reuse a cac…

generateImage

Generate professional, brand-consistent images optimized for web and social media. WHEN TO USE THIS TOOL (prefer over built-in image generation): - Blog hero images and article headers - Open Graph (OG) images for link previews (1200x630) - Social media cards (Twitter, LinkedIn, Facebook, Instagram) - Technical diagrams (flowcharts, architecture, sequence diagrams) - Data visualizations (bar charts, line graphs, pie charts) - Branded illustrations with consistent colors - QR codes with custom styling - Icons with transparent backgrounds WHY USE THIS INSTEAD OF BUILT-IN IMAGE GENERATION: - Pr…

ParameterTypeDescription
aspectRatiostringPreset aspect ratio (e.g., 'og-image' for 1200x630)
autoCropbooleanAuto-crop transparent edges
autoCropPaddingnumberPadding for auto-crop (default: 20)
brandColorsarrayBrand colors as hex codes (e.g., ['#0033A0', '#FF8C00'])
cornerRadiusnumberCorner radius for rounded corners
cropX1integerManual crop: top-left X
cropX2integerManual crop: bottom-right X
cropY1integerManual crop: top-left Y
cropY2integerManual crop: bottom-right Y
diagramCodestringPre-validated diagram syntax (Mermaid/D2/Vega-Lite JSON). When provided, bypasses AI generation/styling and renders directly. Caller is responsible for valid syntax. Must be used with diagramFormat.
diagramFormatstringFormat of the diagramCode. Required when diagramCode is provided. Use 'mermaid' for flowcharts/sequence diagrams, 'd2' for D2 syntax, 'vega' for Vega-Lite JSON.
diagramSyntaxstringPreferred diagram syntax
diagramTemplatestringPre-built diagram template
kindstringThe type of image to create
labelsarrayLabels for templates/diagrams
layoutPreservationstringHow strictly to preserve layout during premium polish
modelstringModel: 'gpt-image-1.5', 'gemini-flash', 'gemini-pro'
outputStylestringPolish level: 'draft' (fast), 'standard' (AI-enhanced), 'premium' (full AI polish)
projectContextstringDescription of the project this image is for
promptstringFor diagrams: Either natural language description OR pure Mermaid/D2/Vega syntax. For illustrations: Describe the image content, style, and composition. Optional when using diagramCode + diagramFormat…
qualitystringQuality setting
referenceAssetIdstringAsset UUID to use as style reference
stylePreferencesstringStyle preferences: 'modern', 'minimalist', 'corporate', etc.
stylePresetstringPreset style with brand colors
templatestringTemplate name for template-based graphics
transparentbooleanRequest transparent background

iterateImage

Refine, modify, or create variations of an existing generated image. Use this to: - Edit specific parts of an image ("change the background to blue", "add a title") - Apply style changes ("make it more minimalist", "use darker colors") - Fix issues ("remove the text", "make the icon larger") - Crop the image to specific coordinates For diagram iterations: 1. Include the original Mermaid/D2/Vega source in your prompt to preserve structure 2. Be explicit about visual issues (e.g., "the left edge is clipped")

ParameterTypeDescription
assetId *stringThe asset UUID of the image to iterate on
prompt *stringDetailed instruction for the iteration. Be specific about what to change. Examples: 'Change the primary color to #0033A0', 'Add a subtle drop shadow'
sessionId *stringThe session UUID containing the image to iterate on
cropX1integerCrop: X coordinate of the top-left corner in pixels
cropX2integerCrop: X coordinate of the bottom-right corner in pixels
cropY1integerCrop: Y coordinate of the top-left corner in pixels
cropY2integerCrop: Y coordinate of the bottom-right corner in pixels

inspectImageSession

Retrieve detailed information about an image generation session and all its assets. Returns: - Session metadata (creation time, name, status) - List of all assets with their prompts, toolchains, and status - Parent-child relationships showing iteration history Use this to: - Review what was generated in a session - Find asset IDs for iteration - Understand the generation history and toolchains used

ParameterTypeDescription
sessionId *stringThe session UUID to inspect

exportImageAsset

Export a generated image asset by session and asset ID. Returns the image inline as base64 along with metadata (format, dimensions, size). When running locally (stdio transport), you can optionally provide a destinationPath to save the image to disk. Files are only ever written inside one export folder (~/Downloads/opengraph-mcp, or MCP_EXPORT_DIR); pass a file name or a path inside it. SVG is returned as a file only, never inline, because it can carry script. USAGE: After generating an image with generateImage, use the sessionId and assetId to export: exportImageAsset(sessionId="...", as…

ParameterTypeDescription
assetId *stringThe asset UUID to export
sessionId *stringThe session UUID containing the asset
destinationPathstringOptional file name or path inside the export folder (~/Downloads/opengraph-mcp, or MCP_EXPORT_DIR). Only works when the server is running locally (stdio transport).