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

@practicaltools/twitter-mcp-server

v1.0.0

Published

Twitter/X.com MCP Server via Apify

Downloads

50

Readme

𝕏 (Twitter) MCP Server

npm version License: MIT

Powered by practicaltools/cheap-simple-twitter-api via Apify.

A Model Context Protocol (MCP) server that provides comprehensive access to Twitter (𝕏) data, including advanced search, user profiles, tweets, followers, followings, mentions, and more.

✨ Features

  • Advanced Search: Powerful search with filters (from:NASA, min_faves:100, etc.)
  • User Intelligence: Profiles, followers, following, and latest tweets.
  • Engagement Insights: Mentions, retweeters, quotes, and replies.
  • List Support: Fetch tweets from specific Twitter lists.
  • Pagination Support: Seamlessly fetch large datasets using cursors.
  • Cleaned Data: Optimized for LLM consumption with noise removal and truncation.

🛠️ Tools

The server provides 11 specialized tools:

  1. twitter_search: Advanced search with type: Latest | Top.
  2. twitter_user_info: Profile details for any handle.
  3. twitter_user_tweets: Latest tweets from a user.
  4. twitter_mentions: Recent mentions of a user.
  5. twitter_followers: User's follower list.
  6. twitter_followings: Accounts a user is following.
  7. twitter_tweet_replies: Threaded conversation replies.
  8. twitter_tweet_quotes: Quotes of a specific tweet.
  9. twitter_tweet_retweeters: List of users who retweeted.
  10. twitter_tweets_by_ids: Lookup specific tweets.
  11. twitter_list_tweets: Tweets from a Twitter list.

🚀 Quick Start

Prerequisites

Configuration

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "twitter": {
      "command": "npx",
      "args": ["-y", "@practicaltools/twitter-mcp-server"],
      "env": {
        "APIFY_API_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}

GitHub Copilot (via config.yaml)

mcpServers:
  twitter:
    command: npx
    args: ["-y", "@practicaltools/twitter-mcp-server"]
    env:
      APIFY_API_TOKEN: YOUR_APIFY_TOKEN

📖 Authentication

This server requires an Apify API token. The underlying actor used is highly cost-effective (~$0.10 per 1,000 results).

  1. Get your token from the Apify Console.
  2. Set it as the APIFY_API_TOKEN environment variable.

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.