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

ai-flashmob-mcp

v0.0.10

Published

MCP server for AI-powered flashcard generation

Readme

🤖 AI Flashmob MCP Server

A Model Context Protocol (MCP) server that enables AI assistants like Claude to generate educational flashcards from text and images using the AI Flashmob platform.

🚀 Features

  • Text-to-Flashcards: Generate AI flashcards from any text content
  • Image-to-Flashcards: Analyze images and create educational flashcards
  • Deck Management: Browse and organize your flashcard decks
  • Flashcard Browsing: View all flashcards from specific decks
  • Secure Authentication: HMAC-SHA256 request signing for secure API access
  • Credit Management: Automatic AI credit consumption and tracking

📋 Prerequisites

  • Node.js 18.0.0 or higher
  • An AI Flashmob account with API credentials
  • Claude Desktop or another MCP-compatible client

🔧 Installation

Method 1: Global Installation (Recommended for Regular Use)

npm install -g ai-flashmob-mcp

Benefits:

  • ✅ Command available everywhere
  • ✅ Faster startup (already installed)
  • ✅ Works offline once installed

Method 2: Using npx (No Installation Required)

npx ai-flashmob-mcp

Benefits:

  • ✅ No installation needed
  • ✅ Always uses latest version
  • ✅ Perfect for trying it out

Which Method Should You Choose?

| Feature | Global Install | npx | | -------------- | -------------------- | ---------------------- | | Setup | One-time install | No setup needed | | Speed | Fast startup | Slower first run | | Updates | Manual update needed | Always latest | | Disk Space | Uses ~40MB | Downloads each time | | Best For | Regular users | Testing/occasional use |

Get Your API Credentials

  1. Log into your AI Flashmob account
  2. Go to Profile → API Credentials section
  3. Copy your Public User ID and API Secret Key

⚙️ Configuration

Claude Desktop Setup

Add this to your Claude Desktop configuration file:

Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)

For Global Installation:

{
  "mcpServers": {
    "ai-flashmob": {
      "command": "ai-flashmob-mcp",
      "env": {
        "PUBLIC_USER_ID": "your-public-user-id",
        "SECRET_KEY": "your-secret-key"
      }
    }
  }
}

For npx Usage:

{
  "mcpServers": {
    "ai-flashmob": {
      "command": "npx",
      "args": ["ai-flashmob-mcp@latest"],
      "env": {
        "PUBLIC_USER_ID": "your-public-user-id",
        "SECRET_KEY": "your-secret-key"
      }
    }
  }
}

Environment Variables

| Variable | Required | Description | | ---------------- | -------- | ---------------------------------- | | PUBLIC_USER_ID | ✅ | Your public user identifier (UUID) | | SECRET_KEY | ✅ | Your 64-character secret key |

After setup:

  1. Restart Claude Desktop
  2. Test by asking: "What MCP tools do you have available?"

🛠️ Available Tools

1. Generate Flashcards from Text

Create educational flashcards from any text content.

Usage:

Generate flashcards from this text: "JavaScript is a programming language..."

Parameters:

  • Text content (10-7000 characters)
  • Maximum cards (1-10, default: 5, used in prompt, not guaranteed to work)
  • Optional deck ID for organization

2. Generate Flashcards from Image

Analyze images and create educational flashcards from visual content.

Usage:

Generate flashcards from this image: [upload or paste image]

Parameters:

  • Base64-encoded image or image upload
  • Image format (png, jpeg, jpg, webp)
  • Maximum cards (1-10, default: 5, used in prompt, not guaranteed to work)
  • Optional deck ID for organization

3. Browse Decks

View all your flashcard decks with details and counts.

Usage:

Show me all my flashcard decks

Response includes:

  • Deck names and ids
  • Number of flashcards in each deck
  • Creation dates

4. View Deck Flashcards

Browse all flashcards from a specific deck.

Usage:

Show me all flashcards in deck 5

Response includes:

  • Complete flashcard content (front/back)
  • Study progress status
  • Bookmark indicators
  • Creation dates

🔐 Security

Your API credentials are securely processed using:

  • HMAC-SHA256 request signing - Your secret key never travels over the network
  • Timestamp validation - Prevents replay attacks
  • Secure authentication - Industry-standard security practices

🐛 Troubleshooting

Common Issues

Authentication Failed

❌ Authentication failed: Invalid credentials

Solution: Verify your PUBLIC_USER_ID and SECRET_KEY are correct in the configuration.

Insufficient Credits

❌ Insufficient credits: You need more AI credits

Solution: Add AI credits to your account or upgrade your plan.

Connection Issues

❌ Unable to connect to API

Solution: Check your internet connection. If the issue persists, verify the AI Flashmob service status.

Invalid Input

❌ Invalid request: Text must be between 10 and 7000 characters

Solution: Ensure your input meets the parameter requirements.

Testing Your Setup

After configuration, test by asking Claude:

"Generate a few flashcards from this text: Node.js is a JavaScript runtime environment"

📊 Usage Limits

  • different number of requests based on user tier
  • 1 AI credit consumed per flashcard generation, refer to pricing for latest details

🆘 Support

For help:

  1. Check this README for common solutions
  2. Verify your configuration matches the examples above
  3. Ensure you have sufficient AI credits in your account
  4. Contact AI Flashmob support with your PUBLIC_USER_ID (never share your SECRET_KEY)

📄 License

MIT License - see the full license in the package.

🔄 Updates

For Global Installation:

npm update -g ai-flashmob-mcp

For npx Usage:

# No action needed - npx always uses the latest version
npx ai-flashmob-mcp  # Automatically gets latest

🎓 Happy Learning with AI-Powered Flashcards!

Ready to supercharge your study sessions? Install the MCP server and start generating intelligent flashcards directly through Claude!