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

@mikusnuz/umami-mcp

v1.1.0

Published

Full-coverage MCP server for Umami Analytics API v2

Readme

English | 한국어

umami-mcp

npm version License: MIT MCP Badge

Full-coverage Model Context Protocol (MCP) server for Umami Analytics API v2.

Unlike existing Umami MCP implementations (read-only, ≤5 tools), this server provides 39 tools, 2 resources, and 2 prompts covering the entire Umami API — websites CRUD, stats, sessions, events, reports, user management, teams, and realtime data.

Features

  • 39 Tools — Full CRUD for websites, detailed analytics, session tracking, event sending, report management, user/team administration, and realtime monitoring
  • 2 Resources — Quick access to website list and account info
  • 2 Prompts — Pre-built analytics workflows (site overview, traffic comparison)
  • Dual Auth — Self-hosted (username/password → JWT) and Umami Cloud (API key)
  • Lazy Config — Server starts without credentials; auth is checked on first API call
  • Zero Dependencies — Uses native fetch, no external HTTP libraries

Installation

npm install -g @mikusnuz/umami-mcp

Or use directly with npx:

npx @mikusnuz/umami-mcp

Configuration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | UMAMI_URL | Yes | Your Umami instance URL (e.g. https://analytics.example.com) | | UMAMI_USERNAME | For self-hosted | Login username | | UMAMI_PASSWORD | For self-hosted | Login password | | UMAMI_API_KEY | For Umami Cloud | API key from Umami Cloud dashboard |

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "umami": {
      "command": "npx",
      "args": ["-y", "@mikusnuz/umami-mcp"],
      "env": {
        "UMAMI_URL": "https://analytics.example.com",
        "UMAMI_USERNAME": "admin",
        "UMAMI_PASSWORD": "your-password"
      }
    }
  }
}

Claude Code

claude mcp add umami -- npx -y @mikusnuz/umami-mcp

# Set environment variables
export UMAMI_URL="https://analytics.example.com"
export UMAMI_USERNAME="admin"
export UMAMI_PASSWORD="your-password"

Tools (39)

Websites (6)

| Tool | Description | |------|-------------| | list_websites | List all tracked websites | | get_website | Get website details by ID | | create_website | Create a new website | | update_website | Update website configuration | | delete_website | Delete a website | | get_active_visitors | Get current active visitor count |

Stats & Analytics (6)

| Tool | Description | |------|-------------| | get_stats | Summary statistics (pageviews, visitors, bounce rate, etc.) | | get_pageviews | Pageview/session counts over time | | get_metrics | Aggregated metrics (top pages, browsers, countries, etc.) | | get_events | Event data over time | | get_sessions | Session listing with filters | | get_daterange | Available data date range |

Sessions (3)

| Tool | Description | |------|-------------| | get_session | Session details | | get_session_activity | Session activity log | | get_session_properties | Session custom properties |

Events (2)

| Tool | Description | |------|-------------| | send_event | Send custom events/pageviews (server-side tracking) | | get_event_values | Event/session property values |

Reports (4)

| Tool | Description | |------|-------------| | list_reports | List saved reports | | get_report | Get report details | | create_report | Create and save a report | | run_report | Execute a report (funnel, retention, utm, goals, insights, revenue, journey) |

Users (7, admin only)

| Tool | Description | |------|-------------| | list_users | List all users | | create_user | Create a new user (username, password, role) | | get_user | Get user details | | update_user | Update user (username, password, or role) | | delete_user | Delete a user | | get_user_websites | List websites a user has access to | | get_user_usage | Get usage statistics for a user |

Teams (10)

| Tool | Description | |------|-------------| | list_teams | List all teams | | create_team | Create a new team | | get_team | Get team details | | update_team | Update team name | | delete_team | Delete a team | | join_team | Join a team using an access code | | list_team_users | List team members | | add_team_user | Add a user to a team | | update_team_user | Update a team member's role | | remove_team_user | Remove a user from a team |

Realtime (1)

| Tool | Description | |------|-------------| | get_realtime | Real-time data for last 30 minutes (visitors, URLs, referrers, countries, events) |

Resources (2)

| Resource | URI | Description | |----------|-----|-------------| | Websites | umami://websites | All tracked websites | | Account | umami://me | Current user info |

Prompts (2)

| Prompt | Description | |--------|-------------| | site_overview | Comprehensive site analysis (stats + pageviews + top metrics + active visitors) | | traffic_compare | Compare traffic between two date ranges |

Usage Examples

Get website statistics

Use get_stats to show me the last 7 days of analytics for my main website.

Compare periods

Use the traffic_compare prompt to compare last week vs this week for website abc-123.

Send server-side event

Use send_event to track a "signup" event on my website with data { plan: "pro" }.

Development

git clone https://github.com/mikusnuz/umami-mcp.git
cd umami-mcp
npm install
npm run build

License

MIT