OpenGraph MCP Server for Claude Code

Add web data capabilities to Claude Code with a single command. No config files to edit—just run the install command and you're ready to go.

One-Command Installation

Claude Code (the CLI) has built-in support for adding MCP servers. Install OpenGraph MCP with:

Terminal
claude mcp add --transport http opengraph https://mcp.opengraph.io/mcp

The first time you use it, a browser tab opens so you can sign in with your OpenGraph.io account — no App ID needed.

Using an API key instead

Prefer a static key over signing in?

Terminal
claude mcp add --transport http --header "x-app-id: YOUR_OPENGRAPH_APP_ID" opengraph https://mcp.opengraph.io/mcp

Replace YOUR_OPENGRAPH_APP_ID with your actual App ID from dashboard.opengraph.io. See Signing In for more on both options.

Command Breakdown

Here's what each part of the command does:

  • claude mcp add – Claude Code's built-in command to add MCP servers
  • --transport http – Connect to the hosted server over HTTP
  • opengraph – The name you'll use to reference this MCP server
  • https://mcp.opengraph.io/mcp – The hosted server URL
  • --header "x-app-id: ..." – Optional: authenticate with a static API key instead of signing in

Verifying Installation

After adding the MCP server, list your configured servers:

List MCP servers
claude mcp list

You should see opengraph in the list.

Then test it with a prompt:

Test the connection
claude "Use the opengraph tools to unfurl https://github.com and tell me the page title"

Managing MCP Servers

Remove the server

Remove OpenGraph MCP
claude mcp remove opengraph

Switch from an API key to signing in

Remove and re-add without the header:

Switch to sign-in
claude mcp remove opengraph
claude mcp add --transport http opengraph https://mcp.opengraph.io/mcp

Example Usage

Research a URL

Unfurl a URL
claude "Unfurl https://stripe.com and summarize what the company does based on the metadata"

Screenshot a page

Take a screenshot
claude "Take a screenshot of https://linear.app and describe the hero section"

Scrape content

Scrape HTML
claude "Scrape https://news.ycombinator.com and list the top 5 story titles"

Troubleshooting

Command not found: claude

Make sure Claude Code CLI is installed. Visit Anthropic's documentation for installation instructions.

MCP server not responding

  • If you signed in, make sure you approved the connection in the browser tab that opened
  • If you're using an API key, check your App ID is correct
  • Try removing and re-adding the server: claude mcp remove opengraph

Related Guides