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ライセンス - 詳細はLICENSEファイルを参照