Skip to main content

OGP (Open Graph Protocol) information extraction server for Model Context Protocol (MCP)

Project description

OGP Information Server

A Model Context Protocol (MCP) server for extracting Open Graph Protocol (OGP) information from web pages. This server provides OGP metadata commonly used for social media sharing previews and rich link displays.

Overview

Open Graph Protocol is a standard that allows web pages to control how their content appears when shared on social media platforms like Facebook, Twitter, and LinkedIn. This MCP server extracts that structured metadata and makes it available through simple tool interfaces.

Tools

ogp-info

Extracts comprehensive OGP information from any web page URL.

Parameters:

  • url (string, required): The target web page URL

Returns:

Dictionary containing extracted OGP metadata such as:

  • title: Page title
  • description: Page description
  • image: OGP image URL
  • site_name: Site name
  • type: Content type
  • url: Canonical page URL
  • Additional OGP properties as available

ogp-image

Retrieves the OGP image from a web page and returns it as an optimized Image object.

Parameters:

  • url (string, required): The target web page URL

Returns:

OGP Image Data

Installation

Using uv (Recommended)

No special installation is required when using uv. You can run mcp-server-ogp directly using uvx.

Using PIP

Alternatively, you can install mcp-server-ogp using pip:

pip install mcp-server-ogp

After installation, you can run the script as follows:

mcp-server-ogp

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "ogp": {
      "command": "uvx",
      "args": ["mcp-server-ogp"]
    }
  }
}

Configure for VS Code

For quick installation, use one of the one-click install buttons below...

Install with UV in VS Code

Command Line Options

You can specify the following options when running the server:

  • --sse: Enable Server-Sent Events transport (on/off)
  • --host: Server bind address (default: localhost)
  • --port: Server port number (default: 8000)
  • --log-level: Logging verbosity (debug, info, warning, error)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_ogp-0.1.5.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_ogp-0.1.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_ogp-0.1.5.tar.gz.

File metadata

  • Download URL: mcp_server_ogp-0.1.5.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for mcp_server_ogp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 818c8bb5e41258cb0ff0a3d0d63ad645470d90a3ba8e9bf9d7cfe2d636253242
MD5 2a5bcee13824dc3cd021dae5c281c4c3
BLAKE2b-256 33dafbe1514d67d37af577957e1b155b01330e29a112af66343e1a0bfd5e5b3e

See more details on using hashes here.

File details

Details for the file mcp_server_ogp-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_ogp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 81928d397a0926190203b2724878995c8fce67effba1b674e6249f847c37aa95
MD5 b5f7e4ad3fa83ac765a8e1c206b2de35
BLAKE2b-256 eff36d49c608148c56fe5bb6c601a29995e96f3bd90d2a460a0e101668c7f662

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page