Mochi MCP Server

Mochi MCP Server

Enables AI assistants to create and manage Mochi Cards flashcards, including card operations, deck management, templates, and spaced repetition reviews through the Mochi API.

Category
Visit Server

README

Mochi MCP Server

An MCP server for creating and managing Mochi Cards flashcards via AI.

Supports both HTTP/SSE (for Vercel deployment) and stdio (for local use with Claude Desktop).

Features

Card Operations

  • create_card - Create a new card
  • get_card - Get card details
  • list_cards - List cards
  • update_card - Update a card
  • delete_card - Delete a card
  • add_attachment - Add attachment to a card
  • delete_attachment - Delete attachment
  • create_cards_bulk - Create multiple cards at once

Deck Operations

  • create_deck - Create a new deck
  • get_deck - Get deck details
  • list_decks - List all decks
  • update_deck - Update a deck
  • delete_deck - Delete a deck

Template Operations

  • create_template - Create a new template
  • get_template - Get template details
  • list_templates - List all templates

Review

  • get_due_cards - Get cards due for review

Deployment

Deploy to Vercel

Deploy with Vercel

  1. Click the deploy button above
  2. Set the MOCHI_API_KEY environment variable
  3. Deploy

API Endpoints

  • GET / - Server info page
  • POST /api/mcp - MCP JSON-RPC endpoint
  • GET /api/mcp/sse - SSE endpoint for streaming connections
  • POST /api/mcp/sse - SSE message endpoint

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"
  }'

Local Development

Installation

npm install

Development Server

npm run dev

Build

npm run build

Stdio Mode (Claude Desktop)

For local use with Claude Desktop, use the stdio transport:

Build stdio version

npm run build:stdio

Claude Desktop Configuration

Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "mochi": {
      "command": "node",
      "args": ["/path/to/mochi-mcp-server/dist/stdio.js"],
      "env": {
        "MOCHI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Getting Mochi API Key

  1. Log in to Mochi Cards
  2. Go to Account Settings → API to get your API key

Usage

Creating Cards

Card content is in Markdown format. Use --- to separate front and back:

What is the capital of France?
---
Paris

Bulk Card Creation

{
  "method": "tools/call",
  "params": {
    "name": "create_cards_bulk",
    "arguments": {
      "deck_id": "deck-id",
      "cards": [
        { "content": "Question 1\n---\nAnswer 1" },
        { "content": "Question 2\n---\nAnswer 2", "tags": ["tag1", "tag2"] }
      ]
    }
  }
}

Notes

  • Mochi API only accepts one concurrent request per account
  • Be aware of rate limits (429 error)
  • Deck deletion cannot be undone

License

ISC

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured