Cover image
Try Now
2025-04-14

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:

  1. Open Claude Desktop
  2. Go to Settings → MCP
  3. 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:

  1. get_due_card: Returns the next card due for review
  2. submit_review: Records a review with rating (1-4) for a card
  3. create_card: Creates a new flashcard
  4. update_card: Updates an existing flashcard
  5. delete_card: Deletes a flashcard
  6. list_cards: Lists flashcards, optionally filtered by tags

Troubleshooting

Cards Not Persisting Between Sessions

If your cards aren't being saved between sessions:

  1. Verify you're using an absolute path for the storage file in your MCP configuration
  2. Check that the directory for the storage file exists and is writable
  3. Confirm your Claude Desktop configuration is correctly formatted
  4. 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

MIT License

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    3.6 (7)
    Avatar
    user_GQpmwHaz
    2025-04-24

    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!

    Avatar
    user_5MLpTDPx
    2025-04-24

    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!

    Avatar
    user_yzkGxbxr
    2025-04-24

    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!

    Avatar
    user_YNEFEQbN
    2025-04-24

    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!

    Avatar
    user_ALyArSpY
    2025-04-24

    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!

    Avatar
    user_q3iKWJfF
    2025-04-24

    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!

    Avatar
    user_NJRBiEVp
    2025-04-24

    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.