npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mediagraph/mcp

v1.0.13

Published

MCP server for Mediagraph - Media Asset Management Platform

Readme

Mediagraph MCP Server

An MCP (Model Context Protocol) server that provides AI assistants with access to the Mediagraph digital asset management platform.

Features

  • OAuth Authentication: Secure authorization with PKCE support
  • Asset Management: Search, view, and update digital assets
  • Organization Tools: Work with collections, lightboxes, and folders
  • Tagging: Add and manage asset tags
  • Sharing: Create share links for assets and collections
  • Bulk Operations: Perform batch updates on multiple assets

Installation

npm install -g @mediagraph/mcp

Or run directly with npx:

npx @mediagraph/mcp

Quick Start

1. Authorize

npx @mediagraph/mcp authorize

This will open a browser window for you to log in and authorize the MCP server with your Mediagraph account.

2. Configure Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mediagraph": {
      "command": "npx",
      "args": ["@mediagraph/mcp"]
    }
  }
}

3. Start Using

Restart Claude Desktop and you can now ask Claude to:

  • "Search for images tagged 'sunset'"
  • "Show me the details of asset ABC123"
  • "Add tags 'nature' and 'landscape' to this asset"
  • "Create a new collection called 'Project Photos'"
  • "Find all videos uploaded this week"

Available Tools

| Tool | Description | |------|-------------| | whoami | Get current user and organization info | | search_assets | Search assets with filters (tags, dates, ratings, etc.) | | get_asset | Get detailed asset information | | update_asset | Update asset metadata (title, description, etc.) | | add_tags | Add tags to an asset | | download_asset | Get a download URL for an asset | | list_collections | List all collections | | get_collection | Get collection details | | create_collection | Create a new collection | | add_to_collection | Add an asset to a collection | | list_lightboxes | List all lightboxes | | get_lightbox | Get lightbox details | | create_lightbox | Create a new lightbox | | add_to_lightbox | Add an asset to a lightbox | | list_storage_folders | List storage folders | | list_tags | List available tags | | create_share_link | Create a share link | | bulk_update | Bulk operations on multiple assets |

Available Resources

The server provides MCP resources for direct access to Mediagraph data:

  • mediagraph://asset/{id} - Asset details
  • mediagraph://collection/{id} - Collection with assets
  • mediagraph://lightbox/{id} - Lightbox with assets
  • mediagraph://search?q={query} - Search results

CLI Commands

# Authorize with Mediagraph
npx @mediagraph/mcp authorize

# Check authentication status
npx @mediagraph/mcp status

# Log out and revoke tokens
npx @mediagraph/mcp logout

# Show help
npx @mediagraph/mcp help

Environment Variables

All environment variables are optional. The default configuration works out of the box.

| Variable | Default | Description | |----------|---------|-------------| | MEDIAGRAPH_CLIENT_ID | (built-in) | OAuth client ID (override for custom apps) | | MEDIAGRAPH_CLIENT_SECRET | - | OAuth client secret (for confidential clients) | | MEDIAGRAPH_API_URL | https://api.mediagraph.io | API base URL | | MEDIAGRAPH_OAUTH_URL | https://mediagraph.io | OAuth server URL | | MEDIAGRAPH_REDIRECT_PORT | 52584 | Local callback port for OAuth |

Security

  • Tokens are stored encrypted in ~/.mediagraph/tokens.enc
  • PKCE is used for OAuth to prevent authorization code interception
  • Access tokens are automatically refreshed before expiration
  • No sensitive data is logged or exposed

Development

# Clone the repository
git clone https://github.com/mediagraph/mediagraph-mcp.git
cd mediagraph-mcp

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
npm run dev

Testing with MCP Inspector

# Build the project
npm run build

# Run with inspector
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT License - see LICENSE for details.

Support