ai-flashmob-mcp
v0.0.10
Published
MCP server for AI-powered flashcard generation
Maintainers
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-mcpBenefits:
- ✅ Command available everywhere
- ✅ Faster startup (already installed)
- ✅ Works offline once installed
Method 2: Using npx (No Installation Required)
npx ai-flashmob-mcpBenefits:
- ✅ 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
- Log into your AI Flashmob account
- Go to Profile → API Credentials section
- 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:
- Restart Claude Desktop
- 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 decksResponse 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 5Response 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 credentialsSolution: Verify your PUBLIC_USER_ID and SECRET_KEY are correct in the configuration.
Insufficient Credits
❌ Insufficient credits: You need more AI creditsSolution: Add AI credits to your account or upgrade your plan.
Connection Issues
❌ Unable to connect to APISolution: 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 charactersSolution: 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:
- Check this README for common solutions
- Verify your configuration matches the examples above
- Ensure you have sufficient AI credits in your account
- Contact AI Flashmob support with your
PUBLIC_USER_ID(never share yourSECRET_KEY)
📄 License
MIT License - see the full license in the package.
🔄 Updates
For Global Installation:
npm update -g ai-flashmob-mcpFor 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!
