OpenGraph MCP Server

Give your AI assistant the power to fetch link previews, capture screenshots, scrape web content, and extract structured data—all through the secure Model Context Protocol.

What You Get

The OpenGraph MCP Server (opengraph-io-mcp) exposes every OpenGraph.io API endpoint to AI assistants through the MCP standard. This means your AI can:

  • Unfurl URLs – Extract OpenGraph metadata, Twitter Cards, and page information from any website
  • Capture Screenshots – Take high-quality screenshots at various viewport sizes
  • Scrape HTML – Fetch raw page content with JavaScript rendering and bot detection bypass
  • Extract Content – Pull specific HTML elements (headings, paragraphs) in structured format
  • Query Pages – Ask questions about webpage content and get AI-powered answers
  • Generate Images – Create illustrations, diagrams, icons, and social cards with AI

How It Works

The MCP server acts as a secure bridge between your AI assistant and the OpenGraph.io API:

Architecture
┌─────────────────┐     MCP (JSON-RPC)     ┌──────────────────┐
│  AI Assistant   │ ──────────────────────▶ │  opengraph-io-mcp │
│  (Claude, etc.) │                         │    (local)        │
└─────────────────┘                         └────────┬──────────┘
                                                     │ REST API
                                                     ▼
                                           ┌──────────────────────┐
                                           │  api.opengraph.io    │
                                           └──────────────────────┘

Key benefits of this architecture:

  • Credentials stay out of the AI model – whether you sign in or use an App ID, neither is ever sent to the AI model itself
  • No code changes – The AI naturally calls the tools when relevant
  • Works offline – If you run the server locally (stdio), it works without a network connection to mcp.opengraph.io

Available Tools

Data and image tools default to the current v3 API, which enables smarter rendering and proxy handling automatically.

Tool NameAPI EndpointDescription
Get OG Data/api/3.0/siteFetch Open Graph metadata, Twitter Cards, and hybrid social preview data from any URL
Scrape/api/3.0/scrapeFetch raw HTML with JS rendering, proxy rotation, and automatic retries. Explore the Web Scraping API →
Screenshot/api/3.0/screenshotCapture a full-page or viewport screenshot with dark mode, capture delay, and custom sizing. Explore the Screenshot API →
Extract/api/1.1/extractPull specific HTML elements (headings, paragraphs, links, images) in structured format. Explore the Content Extraction API →
Markdown/api/3.0/markdownConvert any URL's HTML into clean, readable Markdown with boilerplate stripped. Explore the Markdown API →
Query/api/1.1/queryAsk a natural-language question about a page's content
Generate ImageAI Image GenerationCreate illustrations, diagrams, icons, and social cards. Explore the AI Image Generator →
Iterate ImageAI Image GenerationRefine and modify generated images
Inspect Image SessionAI Image GenerationReview generation history and find asset IDs for iteration
Export ImageLocal FilesystemSave generated images to your project

Also available: Site auditing and link preview checking, covering Site Audit and Link Preview. See the Site Audit & Link Preview tools →

New: Image generation tools are now available! Learn more about AI image generation →

Supported Clients

The OpenGraph MCP Server works with any client that supports the Model Context Protocol:

Get started quickly: Visit the Install Hub for copy-paste configurations for all supported clients.

Security Model

The server can run two ways, each with its own security model:

Hosted (Streamable HTTP) — Recommended

  • Sign in with your account – supported clients can authenticate through a secure browser sign-in instead of pasting a key. See Signing In.
  • Or use an API key – pass your App ID as an x-app-id header if your client doesn't support the sign-in flow
  • No persistent state – the server doesn't store any request data

Local (stdio)

  • Runs on your machine – no network exposure; communication happens through standard input/output
  • Environment variables – your App ID is stored in a config file, never transmitted to AI models
  • No persistent state – the server doesn't store any request data

Transport Options

Streamable HTTP (Hosted) — Recommended

Point your client at the hosted server and you're done — no local install required:

Hosted config
{
  "mcpServers": {
    "opengraph": {
      "url": "https://mcp.opengraph.io/mcp"
    }
  }
}

If your client supports it, connecting with no headers triggers a browser sign-in automatically. Otherwise, add an x-app-id header with your App ID — see Signing In for both options.

Stdio (Local)

The MCP server runs as a subprocess of your AI client, communicating through stdin/stdout:

Stdio transport
npx -y opengraph-io-mcp

Next Steps