Skip to main content
Glama
Gitlytics MCP Server

Gitlytics MCP Server

by ameyachopade

@gitlytics/cli

Zero-Dependency GitHub Traffic Analytics CLI, JS/TS SDK, Dual-Mode MCP Server & Local Dashboard

npm version Node License Live Dashboard Documentation Agent Skills

The JavaScript/TypeScript companion to PyPI gitlytics - 100% CSV-vault compatible, zero runtime dependencies.

PyPI MCP Blog


Installation

# Global CLI install
npm install -g @gitlytics/cli

# Project SDK install (ESM + TypeScript types)
npm install @gitlytics/cli

Related MCP server: mcp-github-tools

Quick Start

# Or run directly without installing via npx
npx @gitlytics/cli fetch --repo-name owner/repo --print-table

# Sync into monthly 22-column CSV vaults (interchangeable with Python gitlytics)
npx @gitlytics/cli sync --data-dir ./data --output-mode monthly

# Inspect star history
npx @gitlytics/cli stars owner/repo --json

# Launch local loopback dashboard
npx @gitlytics/cli dashboard --data-dir ./data --port 8000

Dual-Mode MCP Server

# Cloud MCP bridge (for stdio-only clients -> https://api.gitlytics.dev/mcp)
npx -y @gitlytics/cli mcp --mode cloud

# Local offline CSV vault MCP server (5 local tools, env-var token only)
npx -y @gitlytics/cli mcp --mode local --data-dir ./data

JavaScript / TypeScript SDK

import { fetchTraffic, sync, fetchStarHistory, queryCsvVault, buildWidgetEmbed } from "@gitlytics/cli";

const result = await sync({ dataDir: "./data", outputMode: "monthly" });
const vault = queryCsvVault({ dataDir: "./data", days: 90 });
const badge = buildWidgetEmbed({ kind: "tech_badge", slug: "typescript", style: "icon_label" });

The Gitlytics Ecosystem

Project

Role

Link

gitlytics

Core Python library, CLI (fetch, sync, stars, dashboard, mcp), and local dashboard

PyPI

gitlytics-npm (this package)

Zero-dependency Node.js CLI, JS/TS SDK, dual-mode MCP & local dashboard

npm (@gitlytics/cli)

gitlytics-plugin

Official Antigravity plugin, MCP configs & 4 Vercel Agent Skills

skills.sh

gitlytics-github-traffic-automation

Composite GitHub Action for automated CSV traffic backups

GitHub Action

Gitlytics Web & Docs

Official Homepage, Docs Hub & Engineering Blog

gitlytics.dev / docs.gitlytics.dev / blog.gitlytics.dev

Gitlytics Cloud Dashboard

Hosted Analytics Dashboard, Embed Studio & MCP OAuth Consent UI

dashboard.gitlytics.dev

Gitlytics Hosted API & MCP

50-card / 200-logo SVG engine & Streamable HTTP MCP server (/mcp-oauth & /mcp)

api.gitlytics.dev


Contributing, Security & License

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access files and terminal of a local computer via a public HTTPS endpoint, secured with GitHub OAuth.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform GitHub analytics and management tasks, including repository analysis, PR summarization, issue triage, release notes generation, and contributor statistics.
      41 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to turn local git history into answers about recent activity, file hotspots, change coupling, stale or already-merged branches, contributors, ref comparisons, and drafted release notes. It runs locally over stdio with a git subcommand allowlist, so it is read-only, works offline and without shell access, and is safe to auto-approve.
      13
      80 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI clients to interrogate a local Git repository's history, surfacing change hotspots, per-author activity, files that change together, single-file commit history, and draft changelogs between refs. It is strictly read-only, requires no API keys, and returns structured data for the client to interpret.
      6
      MIT