闪卡管理服务

MCP闪卡管理服务,用于以编程方式创建、学习和组织闪卡组,支持间隔重复学习和统计跟踪。

  • by mclenhard
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 mclenhard/mcp-flashcards

使用说明

MCP闪存卡

用于管理抽认卡的MCP服务器-以编程方式创建、研究和组织抽认卡组。

特性

  • 创建和管理抽认卡组
  • 添加、编辑和删除卡片
  • 间隔重复学习模式
  • 进出口甲板
  • 统计跟踪
  • 完全MCP集成

安装

npm install @no-smoke/mcp-flashcards

配置

添加到MCP设置中:

{
  "mcpServers": {
    "flashcards": {
      "command": "npx",
      "args": ["@no-smoke/mcp-flashcards"],
      "env": {
        "FLASHCARDS_DATA_DIR": "./flashcards-data"
      }
    }
  }
}

用法

创建甲板

await createDeck({
  name: "JavaScript Basics",
  description: "Fundamental JavaScript concepts"
});

添加卡片

await addCard({
  deckId: "deck-id",
  question: "What is a closure?",
  answer: "A function that has access to variables in its outer scope"
});

学习模式

const card = await getNextCard({ deckId: "deck-id" });
await markCard({ cardId: card.id, correct: true });

发展

# Clone the repository
git clone https://github.com/No-Smoke/mcp-flashcards.git
cd mcp-flashcards

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Start development server
npm run dev

许可证

MIT许可证-请参阅 许可证 详细信息文件