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:
macOS / Linux
Terminal
claude mcp add --transport stdio --env OPENGRAPH_APP_ID=YOUR_OPENGRAPH_APP_ID opengraph -- npx -y opengraph-io-mcpWindows
Command Prompt / PowerShell
claude mcp add --transport stdio --env OPENGRAPH_APP_ID=YOUR_OPENGRAPH_APP_ID opengraph -- cmd /c npx -y opengraph-io-mcpNote: Replace YOUR_OPENGRAPH_APP_ID with your actual App ID from dashboard.opengraph.io.
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 stdio– Use standard input/output for communication--env OPENGRAPH_APP_ID=...– Set the environment variable for authenticationopengraph– The name you'll use to reference this MCP server-- npx -y opengraph-io-mcp– The command to start the MCP server
Verifying Installation
After adding the MCP server, list your configured servers:
List MCP servers
claude mcp listYou 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 opengraphUpdate the App ID
Remove and re-add with the new App ID:
Update credentials
claude mcp remove opengraph
claude mcp add --transport stdio --env OPENGRAPH_APP_ID=NEW_APP_ID opengraph -- npx -y opengraph-io-mcpExample 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
- Verify Node.js is installed:
node --version - Check your App ID is correct
- Try removing and re-adding the server:
claude mcp remove opengraph