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

@getxapi/mcp

v0.1.1

Published

Official GetXAPI MCP server — use the Twitter/X API (search, users, tweets, posting, DMs, articles) inside Claude, Cursor, and any MCP client.

Downloads

369

Readme

GetXAPI MCP — Twitter/X API for Claude, Cursor & any MCP client

npm License: MIT

The official GetXAPI MCP server. Give your AI assistant direct access to the Twitter/X API — search tweets, look up users, read replies and followers, and post tweets, send DMs, manage articles, and more — through one Model Context Protocol server.

Unlike read-only Twitter MCP servers, GetXAPI MCP can act: post tweets, reply, like, retweet, send DMs, and publish articles — not just read.

Get a free API key at getxapi.com · API docs · Pricing ($0.001/call, $0.05 per 1,000 tweets)


Install

Add it to your MCP client config (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "getxapi": {
      "command": "npx",
      "args": ["-y", "@getxapi/mcp@latest"],
      "env": {
        "GETXAPI_KEY": "get-x-api-..."
      }
    }
  }
}

Get your GETXAPI_KEY from your GetXAPI dashboard. That's all the read tools need.

Or via the Claude Code CLI:

claude mcp add getxapi -- npx -y @getxapi/mcp@latest

What you can do

Once installed, just ask your assistant naturally:

"Find Elon Musk's latest tweets" "Search tweets about OpenAI from the last week" "Who are @vercel's verified followers?" "Get the replies to this tweet: 1799…" "Post 'shipping 🚀' to my X account" (requires X auth — see below)


Read vs. write tools

| | Needs | Examples | |---|---|---| | Read | GETXAPI_KEY only | search tweets, user info, followers/following, replies, mentions, user tweets, lists | | Write / private | GETXAPI_KEY + X account auth | post / reply / like / retweet / bookmark / delete tweet, send DM, read DMs/timeline/bookmarks, publish articles, update profile |

Enabling write tools

Write and private tools act on a real X account, so they need that account's auth. Two ways to provide it:

Option A — log in through the assistant (convenient):

"Log in to my X account"

The assistant calls the x_login tool with your credentials and keeps the session for write tools. ⚠️ Your X password is passed as tool arguments, so it transits the AI model's context. For sensitive accounts, prefer Option B.

Option B — set credentials in config (recommended for sensitive accounts):

{
  "mcpServers": {
    "getxapi": {
      "command": "npx",
      "args": ["-y", "@getxapi/mcp@latest"],
      "env": {
        "GETXAPI_KEY": "get-x-api-...",
        "X_AUTH_TOKEN": "...",
        "X_CT0": "...",
        "X_TWID": "...",
        "X_PROXY": "http://user:pass@host:port"
      }
    }
  }
}

X_CT0, X_TWID, and X_PROXY are optional — X_AUTH_TOKEN alone is enough for most write tools; the others improve reliability on some accounts.

Your X password never touches the model. The credential fields are never shown to the AI — the server injects them only into the calls that need them.


How billing works

Every tool call is a normal GetXAPI API call authenticated with your GETXAPI_KEY, metered exactly like direct API usage. No separate MCP billing. See pricing.


Links

GetXAPI is an independent third-party API for developers and researchers. Not affiliated with, endorsed by, or sponsored by X Corp.

License

MIT