
MCP-Flashcard
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
Flashcards MCP
A Go-based implementation of a spaced repetition flashcard system using the Model Context Protocol (MCP). This allows AI assistants and other systems to leverage spaced repetition for knowledge retention.
Features
- Comprehensive API for managing flashcards through the Model Context Protocol
- Implementation of the Free Spaced Repetition Scheduler (FSRS) algorithm for optimized review scheduling
- Persistent storage of flashcard data and review history across sessions
- Support for tagging and filtering cards
Installation
Prerequisites
- Go 1.19 or later
- Access to an MCP-compatible client (e.g., Claude Desktop, Anthropic Claude in Console)
Building from Source
# Clone the repository
git clone https://github.com/danieldreier/mcp-flashcards.git
cd mcp-flashcards
# Build the flashcards executable
go build -o cmd/flashcards/flashcards ./cmd/flashcards
Configuration
Claude Desktop Configuration
To ensure your flashcards persist across sessions in Claude Desktop, you need to configure the MCP server with an absolute path for the storage file.
Create or edit your MCP configuration in Claude Desktop:
- Open Claude Desktop
- Go to Settings → MCP
- Add the flashcards MCP server with an absolute file path:
{
"mcpServers": {
"Flashcards": {
"command": "/path/to/mcp-flashcards/cmd/flashcards/flashcards",
"args": ["-file", "/absolute/path/to/store/flashcards-data.json"]
}
}
}
Example (using home directory):
{
"mcpServers": {
"Flashcards": {
"command": "/Users/yourusername/go/src/github.com/danieldreier/mcp-flashcards/cmd/flashcards/flashcards",
"args": ["-file", "/Users/yourusername/flashcards-data.json"]
}
}
}
Important: The default configuration uses a relative path (
./flashcards.json
), which depends on the current working directory when Claude Desktop launches the MCP. Using an absolute path ensures your flashcards are saved to and loaded from the same location regardless of the working directory.
Usage
Once configured, you can use the flashcards MCP with Claude Desktop. Here are some example prompts:
Creating Cards
Use the Flashcards MCP to create a new flashcard:
Front: What is the capital of France?
Back: Paris
Tags: geography, europe
Reviewing Cards
Use the Flashcards MCP to get my next due card for review.
After seeing the card:
I recall the answer is Paris. Rate this card as "Good" (3).
Listing Cards
Use the Flashcards MCP to list all my flashcards with the tag "geography".
Available MCP Tools
The Flashcards MCP provides the following tools:
- get_due_card: Returns the next card due for review
- submit_review: Records a review with rating (1-4) for a card
- create_card: Creates a new flashcard
- update_card: Updates an existing flashcard
- delete_card: Deletes a flashcard
- list_cards: Lists flashcards, optionally filtered by tags
Troubleshooting
Cards Not Persisting Between Sessions
If your cards aren't being saved between sessions:
- Verify you're using an absolute path for the storage file in your MCP configuration
- Check that the directory for the storage file exists and is writable
- Confirm your Claude Desktop configuration is correctly formatted
- Check that the path to the executable is correct
Running Tests
To verify persistence is working correctly:
cd cmd/flashcards
go test -v -run TestPersistenceAcrossSessions
License
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_GQpmwHaz
I've been using mcp-flashcards by danieldreier and it's an incredible tool! The app is straightforward and user-friendly, making studying efficient and enjoyable. With comprehensive features and a seamless interface, it's perfect for anyone looking to enhance their learning through flashcards. Highly recommend it!

user_5MLpTDPx
I've been using mcp-flashcards by danieldreier for a while now, and it's simply fantastic. The user interface is intuitive, and the flashcards have greatly improved my retention. The platform is perfect for anyone looking to boost their learning efficiency. Highly recommend this tool!

user_yzkGxbxr
As an avid user of mcp-flashcards by danieldreier, I can confidently say this tool is a game-changer for learning and retention. Its intuitive design and ease of use make it ideal for anyone looking to improve their study habits. The seamless integration into my daily routine has boosted my productivity and made learning enjoyable. Highly recommend!

user_YNEFEQbN
I’ve been using mcp-flashcards by danieldreier for a while now, and it has significantly improved my study sessions. The interface is user-friendly, and the flashcards are effective for memorization and review. Highly recommend it for anyone looking to enhance their learning experience!

user_ALyArSpY
I have been using mcp-flashcards by danieldreier and it has significantly boosted my learning experience! The interface is user-friendly, and the flashcards are well-organized and cover a wide range of topics. It's a must-have tool for anyone looking to improve their study efficiency. Highly recommend it!

user_q3iKWJfF
I've been using mcp-flashcards by danieldreier to study and it's been a game-changer. The interface is user-friendly and the customizable flashcards make retaining information a breeze. It's evident that a lot of thought went into developing this app. Highly recommend it to anyone looking to enhance their learning process!

user_NJRBiEVp
As an avid user of mcp-flashcards by danieldreier, I must say this tool is a game-changer! It's efficient and user-friendly, making studying a breeze. The seamless interface and well-organized structure help in quick learning and retention. Highly recommended for anyone looking to enhance their learning process.