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

git-to-x-mcp

v0.2.0

Published

MCP server for git-to-x — post to X from Claude Code, Cursor, or any MCP-enabled AI editor

Readme

git-to-x-mcp

MCP server for git-to-x — post tweets to X directly from Claude Code, Cursor, or any MCP-enabled AI editor. No terminal switching, no copy-pasting — just say "tweet this" and the agent posts it via a tool call.


Install

Claude Code

claude mcp add git-to-x -- npx -y git-to-x-mcp

Cursor / VS Code

Add to ~/.cursor/mcp.json (Cursor) or your editor's MCP config:

{
  "mcpServers": {
    "git-to-x": {
      "command": "npx",
      "args": ["-y", "git-to-x-mcp"]
    }
  }
}

Usage

1. Log in (one-time)

In the AI chat panel, run the login tool:

"Log in to git-to-x"

A browser tab opens. Approve the request. Done — token is saved to ~/.config/g2x/token (shared with the g2x CLI, so if you already ran g2x login, you're ready with no extra steps).

2. Tweet from chat

"tweet this: shipped dark mode today — link: https://git-to-x.com"

"post to X: Day 42 of building in public — closed 8 issues, 3 PRs merged"

The agent calls post_tweet and shows you the tweet ID plus remaining quota.

3. Check quota

"how many tweets do I have left this month?"

The agent calls check_quota and shows text/link posts remaining in the current 30-day window.


Tools

| Tool | Description | |------|-------------| | post_tweet | Post a text tweet (up to 280 chars). Returns tweet ID + remaining quota. | | check_quota | Show remaining text/link post quota for this 30-day period. Read-only. | | login | Browser-based auth (device flow). Saves token to ~/.config/g2x/token. |


Headless / remote environments

For SSH, Codespaces, or any browserless setup:

  1. Go to git-to-x.com/settings and generate an editor token under "Connected terminals".
  2. Set it as an env var in your editor's MCP config:
{
  "mcpServers": {
    "git-to-x": {
      "command": "npx",
      "args": ["-y", "git-to-x-mcp"],
      "env": {
        "GIT_TO_X_TOKEN": "your-token-here"
      }
    }
  }
}

The GIT_TO_X_TOKEN env var takes precedence over the token file.


Requirements

  • Node.js 18+
  • A git-to-x account (free or paid) at git-to-x.com
  • Paid/trial plan for post_tweet (free tier: dashboard posts only; CLI/MCP is a paid feature)

License

MIT