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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@feedmob/samsung-reporting

v0.1.2

Published

MCP server for Samsung API

Downloads

40

Readme

Samsung Reporting MCP Server

Node.js server implementing Model Context Protocol (MCP) for Samsung API.

Features

This server provides the following tools:

  • get_samsung_content_metrics: Fetch content metrics from Samsung API for a specific date range.
    • Input Parameters:
      • startDate (string, required): Start date for the report in YYYY-MM-DD format.
      • endDate (string, required): End date for the report in YYYY-MM-DD format.
      • metricIds (array of strings, optional): Optional array of metric IDs to fetch. Defaults to standard metrics if not provided:
        • total_unique_installs_filter
        • revenue_total
        • revenue_iap_order_count
        • daily_rat_score
        • daily_rat_volumne
    • Output: Returns the content metrics data as JSON.

Setup

  1. Environment Variables: Before running the server, you need to set the following environment variables:

    export SAMSUNG_ISS='your_samsung_issuer'
    export SAMSUNG_PRIVATE_KEY='your_samsung_private_key'
    export SAMSUNG_CONTENT_ID='your_samsung_content_id'

    Required Environment Variables:

    • SAMSUNG_ISS: Samsung issuer identifier for JWT authentication
    • SAMSUNG_PRIVATE_KEY: Private key for JWT signing (RS256 algorithm)
    • SAMSUNG_CONTENT_ID: Content ID for which to fetch metrics

Usage with Claude Desktop

  1. Make sure you have installed and updated to the latest version of Claude for Desktop.

  2. Open the Claude for Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Add the Samsung MCP server to the mcpServers configuration section:

    {
      "mcpServers": {
        "samsung": {
          "command": "npx",
          "args": [ "-y", "@feedmob/samsung-reporting" ],
          "env": {
            "SAMSUNG_ISS": "your_samsung_issuer",
            "SAMSUNG_PRIVATE_KEY": "your_samsung_private_key",
            "SAMSUNG_CONTENT_ID": "your_samsung_content_id"
          }
        }
      }
    }

Authentication

The server uses JWT (JSON Web Token) authentication with RS256 algorithm to authenticate with Samsung API:

  1. Generates a JWT token using the provided private key and issuer
  2. Uses the JWT to obtain an access token from Samsung's auth endpoint
  3. Uses the access token for subsequent API calls to fetch content metrics

The JWT token includes:

  • iss: Samsung issuer identifier
  • scopes: ['publishing', 'gss']
  • exp: Token expiration (20 minutes from issue time)
  • iat: Token issue time

Development

  1. Clone the repository.
  2. Navigate to the src/samsung-reporting directory.
  3. Install dependencies: npm install
  4. Set the required environment variables (SAMSUNG_ISS, SAMSUNG_PRIVATE_KEY, and SAMSUNG_CONTENT_ID).
  5. Build the project: npm run build
  6. Run the server directly: node dist/index.js

License

MIT