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:
┌─────────────────┐ 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 Name | API Endpoint | Description |
|---|---|---|
| Get OG Data | /api/3.0/site | Fetch Open Graph metadata, Twitter Cards, and hybrid social preview data from any URL |
| Scrape | /api/3.0/scrape | Fetch raw HTML with JS rendering, proxy rotation, and automatic retries. Explore the Web Scraping API → |
| Screenshot | /api/3.0/screenshot | Capture a full-page or viewport screenshot with dark mode, capture delay, and custom sizing. Explore the Screenshot API → |
| Extract | /api/1.1/extract | Pull specific HTML elements (headings, paragraphs, links, images) in structured format. Explore the Content Extraction API → |
| Markdown | /api/3.0/markdown | Convert any URL's HTML into clean, readable Markdown with boilerplate stripped. Explore the Markdown API → |
| Query | /api/1.1/query | Ask a natural-language question about a page's content |
| Generate Image | AI Image Generation | Create illustrations, diagrams, icons, and social cards. Explore the AI Image Generator → |
| Iterate Image | AI Image Generation | Refine and modify generated images |
| Inspect Image Session | AI Image Generation | Review generation history and find asset IDs for iteration |
| Export Image | Local Filesystem | Save 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:
Claude Desktop
Anthropic's desktop application for Claude.
Cursor
The AI-first code editor with MCP support.
VS Code
Visual Studio Code with Copilot Chat MCP.
Windsurf
Codeium's AI-powered IDE.
JetBrains
JetBrains AI Assistant integration.
Zed
High-performance code editor with AI features.
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-idheader 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:
{
"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:
npx -y opengraph-io-mcpNext Steps
Install Hub
Get copy-paste configurations for your client.
MCP Quickstart
Step-by-step setup guide.
Signing In
Sign in with your account, or use an API key.
Site Audit & Link Preview
Audit sites and check how links preview on social.
Image Generation
Create AI-powered images, diagrams, and social cards.
Troubleshooting
Common issues and how to fix them.