Mochi MCP Server
MCP Server for Mochi Cards - Create and manage flashcards via AI
Endpoints
POST /api/mcp- MCP JSON-RPC endpointGET /api/mcp/sse- SSE endpoint for streamingPOST /api/mcp/sse- SSE message endpoint
Configuration
Set the MOCHI_API_KEY environment variable or pass it via the x-mochi-api-key header.
Available Tools
- Cards: create_card, get_card, list_cards, update_card, delete_card, add_attachment, delete_attachment, create_cards_bulk
- Decks: create_deck, get_deck, list_decks, update_deck, delete_deck
- Templates: create_template, get_template, list_templates
- Review: get_due_cards
Example Request
curl -X POST https://your-domain.vercel.app/api/mcp \
-H "Content-Type: application/json" \
-H "x-mochi-api-key: YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'