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

@janus-analytics/mcp-server

v1.0.1

Published

MCP server for querying Janus analytics — let your AI agent check your dashboard, events, funnels, and usage.

Readme

Janus Analytics MCP Server

An MCP server that connects AI coding agents to your Janus analytics. Query your dashboard, events, funnels, and usage directly from Claude Code, Cursor, Windsurf, or any MCP-compatible client.

Setup

1. Get a Janus API key

Sign up at addjanus.ca and create an API key in Settings.

2. Add to your MCP client

Claude Code

claude mcp add janus -- npx -y @janus-analytics/mcp-server

Then set your API key:

export JANUS_API_KEY=jns_your_key_here

Claude Desktop / Cursor / Windsurf

Add to your MCP config file:

{
  "mcpServers": {
    "janus": {
      "command": "npx",
      "args": ["-y", "@janus-analytics/mcp-server"],
      "env": {
        "JANUS_API_KEY": "jns_your_key_here"
      }
    }
  }
}

Config file locations:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Cursor: Settings > MCP Servers
  • Windsurf: ~/.windsurf/mcp.json

Tools

All tools are read-only — the server never modifies your data.

| Tool | Description | |------|-------------| | get_dashboard_stats | Event counts, unique visitors, top pages, referrers, UTM sources, countries, bounce rate, and daily trends. Optional apiKeyId filter. | | query_events | Search the event log with filters for type, tags, date range, API key, and pagination. | | get_usage | Current month's event usage vs. tier cap, API key count, and per-key breakdown. | | list_journeys | List all funnels with step definitions, match scope, and conversion windows. | | get_journey_results | Funnel conversion data — per-step counts, conversion rates, and median time between steps. | | list_api_keys | Your API keys with names, prefixes, allowed origins, and last-used dates. |

Example prompts

Once connected, ask your AI agent things like:

  • "How's my traffic looking this week?"
  • "Show me the top pages from the last 7 days"
  • "What's my funnel conversion rate for the signup journey?"
  • "Am I close to my usage limit this month?"
  • "Which API key is getting the most events?"

Configuration

| Environment variable | Required | Description | |---------------------|----------|-------------| | JANUS_API_KEY | Yes | Your Janus API key (starts with jns_) |

License

MIT