OpenGraph.io MCP Server
v3.3.0Fetch 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the webpage to analyze. |
accept_lang | string | Accept-Language header for the outbound request. Use 'auto' to mirror the caller's language. Defaults to 'auto'. |
ai_sanitize | boolean | Scan the fetched content for prompt-injection attempts before returning it. |
ai_sanitize_mode | string | 'sanitize' cleans the content, 'warn' returns it with a safety report, 'block' returns HTTP 422 when risk_score >= 0.7. |
auto_proxy | boolean | Automatically escalate to a proxy if the direct request fails. Defaults to true on v3. |
auto_render | boolean | Automatically 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_ok | boolean | Use cached results. Set to false to bypass cache and get fresh data. Defaults to true. |
full_render | boolean | Forces 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_clicks | integer | Number of times to click the load_more_selector (1–10). Defaults to 3. |
load_more_item_selector | string | CSS selector to watch for new items when using load_more_selector. |
load_more_scroll | boolean | Scroll between load_more clicks. Defaults to true. |
load_more_selector | string | CSS selector for a 'load more' button to click before extraction. Forces full_render. |
load_more_wait | integer | Milliseconds to wait after each load_more click (0–5000). Defaults to 1500. |
max_cache_age | integer | Maximum cache age in milliseconds. Results older than this will be re-fetched. Defaults to 432000000 (5 days). |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
proxy_country | string | Two-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB'). |
retry | boolean | Automatically retry failed requests with escalating proxy tiers. Defaults to true on v3. |
retry_escalate | boolean | Escalate proxy tier on each retry attempt. Defaults to true. |
scroll_to_bottom | boolean | Scroll to the bottom of the page before extraction. Useful for lazy-loaded content. Forces full_render. |
use_ai | boolean | Enhance the metadata response with AI-generated fields. Requires an AI-enabled plan. |
use_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the webpage to scrape. |
accept_lang | string | Accept-Language header for the outbound request. Use 'auto' to mirror the caller's language. Defaults to 'auto'. |
ai_sanitize | boolean | Scan the fetched content for prompt-injection attempts before returning it. |
ai_sanitize_mode | string | 'sanitize' cleans the content, 'warn' returns it with a safety report, 'block' returns HTTP 422 when risk_score >= 0.7. |
auto_proxy | boolean | Automatically escalate to a proxy if the direct request fails. Defaults to true on v3. |
auto_render | boolean | Automatically 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_ok | boolean | Use cached results. Set to false to bypass cache and get fresh data. Defaults to true. |
full_render | boolean | Forces 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_clicks | integer | Number of times to click the load_more_selector (1–10). Defaults to 3. |
load_more_item_selector | string | CSS selector to watch for new items when using load_more_selector. |
load_more_scroll | boolean | Scroll between load_more clicks. Defaults to true. |
load_more_selector | string | CSS selector for a 'load more' button to click before scraping. |
load_more_wait | integer | Milliseconds to wait after each load_more click (0–5000). Defaults to 1500. |
max_cache_age | integer | Maximum cache age in milliseconds. Results older than this will be re-fetched. Defaults to 432000000 (5 days). |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
proxy_country | string | Two-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB'). |
retry | boolean | Automatically retry failed requests with escalating proxy tiers. Defaults to true on v3. |
retry_escalate | boolean | Escalate proxy tier on each retry attempt. Defaults to true. |
scroll_to_bottom | boolean | Scroll to the bottom of the page before scraping. Useful for lazy-loaded content. |
use_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the webpage to screenshot. |
accept_lang | string | Accept-Language header for the outbound request. Defaults to 'auto'. |
auto_proxy | boolean | Automatically escalate to a proxy if the direct request fails. Defaults to true on v3. |
block_cookie_banner | boolean | Attempt to dismiss cookie consent banners before capturing. Defaults to false. |
cache_ok | boolean | Use cached results. Set to false to bypass cache. Defaults to true. |
capture_delay | integer | Milliseconds to wait after page load before capturing (0–10 000). Defaults to 0. |
dark_mode | boolean | Enable dark mode (prefers-color-scheme: dark). Defaults to false. |
dimensions | string | Viewport dimensions as WxH (e.g. '1280x800'). Defaults to '1366x768'. |
exclude_selectors | string | Comma-separated CSS selectors to hide (set visibility: hidden) before capturing. |
format | string | Image format. Defaults to 'jpg'. |
full_page | boolean | Capture the full scrollable page height. Defaults to false (viewport only). |
full_render | boolean | Fully render the page with JavaScript before capturing. Defaults to true for screenshots. |
hideSelectors | boolean | Whether to apply the exclude_selectors hiding. Defaults to true when exclude_selectors is set. |
max_cache_age | integer | Maximum cache age in milliseconds. Defaults to 432000000 (5 days). |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
navigationTimeout | integer | Navigation timeout in milliseconds (1 000–60 000). Defaults to 30 000. |
proxy_country | string | Two-letter ISO country code for geo-targeted proxy exit node (e.g. 'US', 'GB'). |
quality | integer | Image compression quality 1–100. Only applies to jpg/webp. Defaults to 80. |
retry | boolean | Automatically retry failed requests. Defaults to true on v3. |
selector | string | CSS selector — crop the screenshot to just this element. |
use_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language question to answer about the page content. |
url * | string | URL of the webpage to query. |
accept_lang | string | Accept-Language header for the outbound request. Defaults to 'auto'. |
ai_sanitize | boolean | Scan the fetched content for prompt-injection attempts. |
ai_sanitize_mode | string | 'sanitize' cleans the content, 'warn' returns a safety report, 'block' returns HTTP 422 when risk_score >= 0.7. |
auto_render | boolean | Automatically detect and switch to headless rendering for SPA pages. |
cache_ok | boolean | Use cached page results. Set to false to bypass cache. Defaults to true. |
full_render | boolean | Fully render the page with JavaScript before querying. |
max_cache_age | integer | Maximum cache age in milliseconds. Defaults to 432000000 (5 days). |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
modelSize | string | AI model size. 'nano' is fast and uses 100 credits; 'mini' uses a larger model for harder questions and uses 200. Defaults to 'nano'. |
proxy_country | string | Two-letter ISO country code for geo-targeted proxy exit node. |
responseStructure | Optional JSON schema describing the shape of the desired response. When provided, the model returns a structured JSON answer. | |
retry | boolean | Automatically retry failed requests. |
use_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the webpage to extract content from. |
accept_lang | string | Accept-Language header for the outbound request. Defaults to 'auto'. |
ai_sanitize | boolean | Scan the fetched content for prompt-injection attempts. |
ai_sanitize_mode | string | 'sanitize' cleans the content, 'warn' returns a safety report, 'block' returns HTTP 422. |
auto_proxy | boolean | Automatically escalate to a proxy if the direct request fails. Defaults to true on v3. |
auto_render | boolean | Automatically detect and switch to headless rendering for SPA pages. Defaults to true on v3. |
cache_ok | boolean | Use cached results. Set to false to bypass cache. Defaults to true. |
full_render | boolean | Fully render the page with JavaScript before extracting. Useful for SPAs. |
html_elements | array | List 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_clicks | integer | Number of times to click the load_more_selector (1–10). Defaults to 3. |
load_more_item_selector | string | CSS selector to watch for new items when using load_more_selector. |
load_more_scroll | boolean | Scroll between load_more clicks. Defaults to true. |
load_more_selector | string | CSS selector for a 'load more' button to click before extracting. |
load_more_wait | integer | Milliseconds to wait after each load_more click (0–5000). Defaults to 1500. |
max_cache_age | integer | Maximum cache age in milliseconds. Defaults to 432000000 (5 days). |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
proxy_country | string | Two-letter ISO country code for geo-targeted proxy exit node. |
retry | boolean | Automatically retry failed requests. Defaults to true on v3. |
retry_escalate | boolean | Escalate proxy tier on each retry attempt. Defaults to true. |
scroll_to_bottom | boolean | Scroll to the bottom of the page before extracting. Useful for lazy-loaded content. |
selectors | object | CSS 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_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the webpage to convert to Markdown. |
accept_lang | string | Accept-Language header for the outbound request. Defaults to 'auto'. |
ai_sanitize | boolean | Scan the fetched content for prompt-injection attempts and return a safety report. |
ai_sanitize_mode | string | 'sanitize' cleans the content, 'warn' reports without changing it, 'block' returns HTTP 422. Only takes effect when ai_sanitize is true. |
auto_proxy | boolean | Automatically escalate to a proxy if the direct request fails. |
cache_ok | boolean | Use cached results. Set to false to bypass cache. Defaults to true. |
chunk_overlap | integer | Characters of overlap between consecutive chunks, for context. Max half of chunk_size. |
chunk_size | integer | Target characters per chunk (200–20000). Defaults to 2000. |
chunking | boolean | Split the Markdown into chunks. Implied by `query`. |
exclude_tags | array | CSS selectors to remove before conversion. Supports wildcard/regex patterns. Example: ['nav', 'footer', '.sidebar', '.ad*']. |
full_render | boolean | Force full browser rendering before conversion. Rendering is applied automatically for pages detected as JavaScript-heavy; set this when that detection is insufficient. |
heading_aware | boolean | Split on heading boundaries where possible, so sections stay intact. Defaults to true. |
heading_aware_level | integer | Deepest heading level treated as a split boundary (1–6). Defaults to 2. |
include_chunks | boolean | Set false to get chunk counts in `usage` without the chunk bodies. |
include_headings | boolean | Include the heading outline, plus table/code-block detection flags. |
include_images | boolean | Include every image with its src and alt text. |
include_links | boolean | Include every hyperlink with its text and rel attributes. |
include_markdown | boolean | Set false to omit the prose body — useful when you only want structure or chunks. |
include_metadata | boolean | Include page metadata (title, description, language, canonical URL). Defaults to true. |
include_tags | array | CSS selectors — keep only elements matching these selectors. Example: ['article', 'main', '.content'] to target the main content area only. |
load_more_clicks | integer | Number of times to click the load_more_selector (1–10). Defaults to 3. |
load_more_item_selector | string | CSS selector for the repeating item, used to detect when clicking stopped adding content. |
load_more_scroll | boolean | Scroll between load_more clicks. Defaults to true. |
load_more_selector | string | CSS selector for a 'load more' button to click before conversion. |
load_more_wait | integer | Milliseconds to wait after each load_more click (0–5000). Defaults to 1500. |
max_cache_age | integer | Maximum cache age in milliseconds. Defaults to 432000000 (5 days). |
max_chars | integer | Truncate 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_chunks | integer | Maximum chunks to return (1–2000). Defaults to 500. |
max_retries | integer | Maximum number of retry attempts (1–4). Defaults to 4. |
only_main_content | boolean | Heuristically 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_country | string | Two-letter ISO country code for geo-targeted proxy exit node. |
query | string | Natural-language question. Returns only the most relevant chunks, ranked (BM25), instead of the whole page. Requires chunking (enabled automatically when set). |
query_top_k | integer | How many ranked chunks to return when `query` is set. Defaults to 5. |
retry | boolean | Automatically retry failed requests. |
retry_escalate | boolean | Escalate proxy tier on each retry attempt. Defaults to true. |
scroll_to_bottom | boolean | Scroll to the bottom of the page before conversion. Forces full_render. |
use_premium | boolean | Route the request through a premium proxy. |
use_proxy | boolean | Route the request through a standard proxy. |
use_superior | boolean | Route the request through a superior-tier proxy. |
wait_for_selector | string | CSS 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…
| Parameter | Type | Description |
|---|---|---|
url * | string | The brand's website, e.g. https://linear.app. |
cache_ok | boolean | Set to false to force a fresh analysis (500 credits). Defaults to true. |
include_meta | boolean | Add a `_meta` object recording, per field, its basis (observed / derived / inferred) and which analyzed pages support it. Defaults to false. |
questions | array | Up to 3 custom questions, answered under `custom` with the requested type. A request with questions is never served from cache. |
sections | object | Turn 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…
| Parameter | Type | Description |
|---|---|---|
aspectRatio | string | Preset aspect ratio (e.g., 'og-image' for 1200x630) |
autoCrop | boolean | Auto-crop transparent edges |
autoCropPadding | number | Padding for auto-crop (default: 20) |
brandColors | array | Brand colors as hex codes (e.g., ['#0033A0', '#FF8C00']) |
cornerRadius | number | Corner radius for rounded corners |
cropX1 | integer | Manual crop: top-left X |
cropX2 | integer | Manual crop: bottom-right X |
cropY1 | integer | Manual crop: top-left Y |
cropY2 | integer | Manual crop: bottom-right Y |
diagramCode | string | Pre-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. |
diagramFormat | string | Format of the diagramCode. Required when diagramCode is provided. Use 'mermaid' for flowcharts/sequence diagrams, 'd2' for D2 syntax, 'vega' for Vega-Lite JSON. |
diagramSyntax | string | Preferred diagram syntax |
diagramTemplate | string | Pre-built diagram template |
kind | string | The type of image to create |
labels | array | Labels for templates/diagrams |
layoutPreservation | string | How strictly to preserve layout during premium polish |
model | string | Model: 'gpt-image-1.5', 'gemini-flash', 'gemini-pro' |
outputStyle | string | Polish level: 'draft' (fast), 'standard' (AI-enhanced), 'premium' (full AI polish) |
projectContext | string | Description of the project this image is for |
prompt | string | For 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… |
quality | string | Quality setting |
referenceAssetId | string | Asset UUID to use as style reference |
stylePreferences | string | Style preferences: 'modern', 'minimalist', 'corporate', etc. |
stylePreset | string | Preset style with brand colors |
template | string | Template name for template-based graphics |
transparent | boolean | Request 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")
| Parameter | Type | Description |
|---|---|---|
assetId * | string | The asset UUID of the image to iterate on |
prompt * | string | Detailed instruction for the iteration. Be specific about what to change. Examples: 'Change the primary color to #0033A0', 'Add a subtle drop shadow' |
sessionId * | string | The session UUID containing the image to iterate on |
cropX1 | integer | Crop: X coordinate of the top-left corner in pixels |
cropX2 | integer | Crop: X coordinate of the bottom-right corner in pixels |
cropY1 | integer | Crop: Y coordinate of the top-left corner in pixels |
cropY2 | integer | Crop: 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
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The 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…
| Parameter | Type | Description |
|---|---|---|
assetId * | string | The asset UUID to export |
sessionId * | string | The session UUID containing the asset |
destinationPath | string | Optional 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). |