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

mochi-mcp-kit

v1.5.3

Published

Local MCP server for Mochi website monitoring suite

Readme

Mochi MCP

TypeScript Model Context Protocol NPM Version Package Manager Code Style

A premium, modular Model Context Protocol (MCP) server for the Mochi website uptime and monitoring suite.
Equip your AI assistants in Cursor and Antigravity IDE with real-time website checks, intervals, active latency, and uptime reports.

InstallRunIDE IntegrationFeaturesToolsArchitectureDeveloper Guide


Install It Locally

bun install -g mochi-mcp-kit

Run It

mochi-mcp login

IDE Integration (Manual)

If you prefer to configure your workspace manually, simply update your settings:

[!IMPORTANT] Cursor Configuration Open there settings/config folder

Configuration Snippet

Add this snippet inside the "mcpServers" object in either of the files:

{
  "mcpServers": {
    "mochi": {
      "command": "npx",
      "args": [
        "-y",
        "mochi-mcp-kit"
      ],
      "env": {
        "MOCHI_API_KEY": "mochi_pat_xxxxxxxx", // create from mochi.elitedev.space
        "DOTENV_CONFIG_QUIET": "true", // (optional) add in antigravity 
        "DOTENVX_LOG": "error" // (optional) add in antigravity 
      }
    }
  }
}

⚡ Key Features

  • 🛡️ Robust TypeScript & ESM: Built from the ground up on modern TypeScript ESM standards, compiled via tsup into optimized, minified production builds.
  • 🎨 Designer CLI Wizard: A stunning setup experience powered by @clack/prompts, gradient-string, ora spinners, and boxen.
  • 🤖 Multi-IDE Auto-Configurator: Auto-detects platform paths (Windows, macOS, Linux) and injects configurations directly into both Cursor and Antigravity IDE configuration stores.
  • 🔑 Smart Configuration Fallbacks: Leverages conf secure stores while maintaining seamless fallback checks across environment variables and legacy .mochirc configurations.

🗺️ System Flow

graph TD
    A[User Terminal / IDE Boot] --> B[src/index.ts Entrypoint]
    
    B -->|'login' Argument| C[src/cli/login.ts Wizard]
    B -->|Default Stdio Boot| D[src/mcp/server.ts Server]
    
    C -->|Validate Key & Store| E[src/config.ts Storage Manager]
    C -->|Auto-Inject Settings| F[(mcp_config.json stores)]
    
    D -->|Read Token / URL| E
    D -->|Expose Tools & Handlers| G[src/mcp/tools.ts Actions]
    G -->|Axios HTTPS Requests| H[Mochi Backend API]
    H -->|Return Monitor States| G
    G -->|Format Beautiful Markdown Table| D

🚀 Quick Start

1. Boot the Interactive Setup Wizard

Initialize the package configurations and link your IDEs instantly:

pnpm run dev login

You'll be greeted with a colorful double-bordered title box and guided step-by-step:

  1. API Key Entry: Paste your Mochi Access Token (format verified in real-time).
  2. Live Token Verification: A sleek animated spinner verifies your credentials directly against the Mochi API.
  3. Automatic IDE Linking: Choose whether to configure Cursor, Antigravity IDE, both, or skip.

⚙️ Configuration Hierarchy

The system resolves your credentials dynamically according to the following strict priority:

┌────────────────────────────────────────────────────────┐
│  1. Env Variables (MOCHI_API_KEY / MOCHI_API_URL)     │
└───────────────────────────┬────────────────────────────┘
                            ▼
┌────────────────────────────────────────────────────────┐
│  2. Secure 'conf' Store (Saved during setup)           │
└───────────────────────────┬────────────────────────────┘
                            ▼
┌────────────────────────────────────────────────────────┐
│  3. Legacy ~/.mochirc File Configs                     │
└───────────────────────────┬────────────────────────────┘
                            ▼
┌────────────────────────────────────────────────────────┐
│  4. Legacy ~/.config/mochi/config.json File Configs     │
└────────────────────────────────────────────────────────┘

🛠️ MCP Tools Exposed

🌐 list_monitors

Queries and lists all active and configured website monitors directly linked to your Mochi account.

Input Schema

No parameters required.

Live Markdown Response (LLM Rendered)

🌐 Mochi Active Monitors

| Monitor ID | Target URL | Cron Schedule | Current Status | Total Checks | Avg Latency | Uptime | Downtime | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | | d0f41ab9... | https://mywebsite.com | */5 * * * * | ACTIVE | 12,840 | 102ms | 240.5 hrs | 0.0 hrs | | f3922c01... | https://api.mywebsite.com | */10 * * * * | ACTIVE | 6,420 | 84ms | 120.2 hrs | 0.1 hrs |


📂 Modular Architecture

src/
├── index.ts             # Lightweight entry router (CLI login or MCP standard boot)
├── config.ts            # Configuration manager (handles Typed conf store & fallbacks)
├── cli/
│   └── login.ts         # High-fidelity setup wizard (clack prompts, ora spinner, multi-IDE setup)
└── mcp/
    ├── server.ts        # Bootstraps the MCP Server over StdioServerTransport
    └── tools.ts         # Handles tool definitions, Axios API calls, and markdown tables

💻 Developer Guide

Install Dependencies

pnpm install

Run Dev Live Reloading

pnpm run dev

Production ESM Bundle

Bundles and minifies TypeScript using tsup:

pnpm run build

Made with ♥ for the Mochi Ecosystem.