Skip to main content
Glama

vocabit-mcp

CI npm license

Un servidor MCP para Vocabit, una aplicación de tarjetas de memoria. Permite a un asistente de IA escribir un conjunto de estudio en una aplicación real en un teléfono real, y luego leer cómo le fue realmente al estudiante con él.

La mayoría de los servidores MCP leen desde una API. Este cierra un bucle:

flowchart LR
    A["Assistant<br/>teaches a topic"] --> B["create_study_set"]
    B --> C["Set appears in the<br/>Vocabit app"]
    C --> D["Learner works<br/>through it"]
    D --> E["get_set_results"]
    E -->|weak cards| A

La herramienta interesante no es create_study_set — cualquier cosa puede generar tarjetas. Es get_set_results: qué tarjetas marcó el estudiante como difíciles, cuáles nunca alcanzó, cuántas revisiones tomó cada una. El siguiente conjunto se construye a partir de eso, no de una suposición.

Pruébalo en 30 segundos

Sin backend, sin cuenta, sin clave de API:

npx -y vocabit-mcp --demo

El modo demo ejecuta el mismo servidor contra un Vocabit en memoria con dos conjuntos precargados. Crea un conjunto, pide resultados, y un estudiante sustituto determinista lo habrá trabajado — marcado en la respuesta como simulado, para que nunca se confunda con datos reales.

Para probarlo con una interfaz de usuario:

npx @modelcontextprotocol/inspector npx -y vocabit-mcp --demo

Related MCP server: inoh-mcp

Instalación

Listado en el Registro MCP como io.github.JohnBilousov/vocabit-mcp, por lo que los clientes que leen el registro pueden encontrarlo por sí mismos.

claude mcp add vocabit -- npx -y vocabit-mcp
{
  "mcpServers": {
    "vocabit": {
      "command": "npx",
      "args": ["-y", "vocabit-mcp"],
      "env": {
        "VOCABIT_BASE_URL": "https://your-vocabit-backend.example.com",
        "VOCABIT_AGENT_KEY": "your-agent-key"
      }
    }
  }
}

Elimina el bloque env para ejecutar en modo demo.

Herramientas

Tool

What it does

vocabit_health

Comprueba la conexión y en qué modo está el servidor.

create_study_set

Publica un conjunto en la aplicación del estudiante. Devuelve un enlace profundo que lo abre en el dispositivo.

list_study_sets

Conjuntos recientes, primero los más nuevos, cada uno con un resumen de progreso.

get_study_set

Contenido completo de un conjunto, más el tema y las notas que adjuntó el asistente.

get_set_results

La mitad de retroalimentación. Estado por tarjeta, weakCards, untouchedCards, tarjetas pendientes.

update_study_set

Cambiar título, reetiquetar o añadir tarjetas — normalmente el seguimiento después de leer los resultados.

notify_learner

Aviso por Telegram de que un conjunto está esperando.

delete_study_set

Elimina un conjunto de la aplicación. Se conserva el historial de estudio.

También se exponen: el recurso vocabit://set/{setId} (un conjunto como JSON, listable) y un prompt study-session que recorre todo el bucle.

Estados de las tarjetas

El progreso proviene del motor de repetición espaciada de la aplicación, no del asistente:

Status

Meaning

new

Nunca revisada.

struggling

El estudiante la marcó como difícil.

learning

Marcada como buena.

mastered

Marcada como fácil.

Un conjunto informa completed: true cuando no queda ninguna tarjeta en new.

Modo en vivo

Apunta el servidor a un backend de Vocabit que tenga habilitada la API de agente:

export VOCABIT_BASE_URL=https://your-vocabit-backend.example.com
export VOCABIT_AGENT_KEY=...   # must match one of AGENT_API_KEYS on the backend
npx -y vocabit-mcp

Variable

Purpose

VOCABIT_BASE_URL

URL base del backend.

VOCABIT_AGENT_KEY

Se envía como X-Agent-Key.

VOCABIT_USER_ID

UID de Firebase del estudiante. Opcional; el backend tiene un valor predeterminado.

VOCABIT_TERM_LANGUAGE / VOCABIT_DEFINITION_LANGUAGE

Valores predeterminados para nuevos conjuntos, p. ej. de / en.

VOCABIT_TELEGRAM_ID

Destinatario para notify_learner.

VOCABIT_TIMEOUT_MS

Tiempo de espera de la solicitud, predeterminado 20000.

VOCABIT_DEMO

1 fuerza el modo demo.

Si no se establecen ni la URL ni la clave, el servidor se inicia en modo demo. Si se establece exactamente una, se niega a iniciarse — media configuración es un error, no una pista.

Notas de diseño

El modo demo es un cliente de primera clase, no un stub. HttpVocabitClient y DemoVocabitClient implementan la misma interfaz VocabitClient, por lo que ninguna herramienta tiene una rama para "¿estamos fingiendo?". Un revisor puede ejecutar el servidor antes de tener credenciales, y la suite de pruebas ejercita la superficie real de las herramientas sobre un transporte MCP real en lugar de simular el SDK.

Los errores son recuperables, no fatales. Una llamada fallida regresa como isError con el mensaje del propio backend más una pista dirigida al modelo — 404 dice "llama a list_study_sets para ver qué conjuntos existen", 401 dice "o ejecuta con VOCABIT_DEMO=1". Los argumentos mutuamente excluyentes se rechazan con una explicación en lugar de una suposición.

Los esquemas de salida se mantienen flexibles en los bordes. Los campos de identificación son obligatorios; todo lo demás es opcional, por lo que un backend que añade un campo no convierte una herramienta funcional en un error de validación.

Las anotaciones son honestas. delete_study_set está marcado como destructiveHint, las herramientas de lectura como readOnlyHint. notify_learner envía un mensaje a una persona real, y su descripción dice que se use con moderación.

Desarrollo

git clone https://github.com/JohnBilousov/vocabit-mcp && cd vocabit-mcp
npm install
npm run build
npm test          # tool surface + full loop, plus the HTTP client against a mocked fetch
npm run lint      # eslint
npm run format    # prettier --write
npm run inspect   # demo mode in the MCP Inspector

CI ejecuta typecheck, lint, format:check, test y build en cada push y pull request.

src/
  index.ts        CLI entry, stdio transport
  config.ts       env → Config, demo-mode resolution
  server.ts       tool / resource / prompt registration
  schemas.ts      zod input and output shapes
  format.ts       human-readable summaries next to structuredContent
  client/
    types.ts      wire types + VocabitClient contract
    http.ts       live backend
    mock.ts       in-memory backend for demo mode
test/
  server.test.ts       tool surface + full loop — over an in-memory MCP transport
  client/
    http.test.ts       query encoding, error-body parsing, timeouts — against a mocked fetch

Publicación

La publicación utiliza la publicación confiable de npm (OIDC) — sin secreto NPM_TOKEN, nada que pueda filtrarse o expirar. Configuración única en npmjs.com, en Configuración → Publicación confiable → GitHub Actions del paquete: organización JohnBilousov, este repositorio, nombre de archivo del flujo de trabajo publish.yml.

Para hacer un lanzamiento: sube la versión en package.json, server.json y VERSION en src/server.ts juntos (una prueba asegura que no puedan divergir), haz commit, push, y luego publica un Release de GitHub con una etiqueta vX.Y.Z correspondiente. Eso activa .github/workflows/publish.yml, que ejecuta la suite de pruebas y publica en npm con procedencia — la página del paquete muestra un enlace verificado a este commit y ejecución de flujo de trabajo exactos, no solo un nombre en el registro.

Hoja de ruta

  • Transporte HTTP transmisible junto a stdio

  • Soporte para múltiples estudiantes sin un UID predeterminado del backend

  • Tarjetas de pronunciación de audio

Licencia

MIT © Ivan Bilousov

Available Tools

8 tools
create_study_setCreate a study setA

Build a flashcard set and publish it to the learner's Vocabit app. Returns a deep link that opens the set on their device. Prefer one focused topic and 8-15 cards per set — long sets get abandoned. Use the notes field for what you want to check afterwards; the learner never sees it.

Inputs: cards (required), title (required), notes, topic, +6 more. Returns: setId, title, userId, deepLink, +4 more

delete_study_setDelete a study setA
DestructiveIdempotent

Remove a set from the learner's app. Study history is kept on the backend, but the set disappears from their device. Ask before calling this.

Inputs: setId (required). Returns: setId, deleted

get_set_resultsGet how the learner didA
Read-only

Read back real study results for a set: which cards the learner marked hard (weakCards), which they never reached (untouchedCards), and per-card review counts. This is the feedback half of the loop — read it before writing the next set, and build the follow-up out of weakCards.

Inputs: setId (required), userId. Returns: cards, notes, setId, title, +7 more

get_study_setGet study set contentsA
Read-only

Read the full contents of a set — every card, plus the topic and notes you attached when you created it.

Inputs: setId (required). Returns: cards, notes, setId, title, +4 more

list_study_setsList study setsA
Read-only

List the sets you created for this learner, newest first, each with a progress summary. Use it to find a setId, or to see at a glance which sets were never opened.

Inputs: limit, topic, userId, includeProgress. Returns: sets, count

notify_learnerPing the learnerA

Send the learner a Telegram message that a set is waiting. Use sparingly — one ping per set, right after you create it.

Inputs: setId (required), text. Returns: setId, notified, telegramId

update_study_setUpdate a study setA
Idempotent

Change a set in place: retitle it, retag it, or add cards. Pass addCards to append (the usual case after reviewing results) or cards to replace the list wholesale — never both. Replacing the cards resets what the learner has already studied.

Inputs: setId (required), cards, notes, title, +4 more. Returns: setId, updated, cardCount

vocabit_healthCheck Vocabit connectionA
Read-only

Verify the server can reach Vocabit and report which mode it is in (live backend or in-memory demo). Call this first if anything else fails.

Inputs: no named parameters. Returns: mode, baseUrl, defaultUserId

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: health check, CRUD for study sets, results feedback, and learner notification. Even get_study_set and get_set_results are unambiguously separated—one retrieves content, the other study metrics. No two tools appear to do the same thing.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (create_study_set, list_study_sets, update_study_set, delete_study_set, get_study_set, get_set_results). However, vocabit_health deviates from the verb-first style and notify_learner uses a non-set object, so the pattern is not perfectly uniform but remains predictable.

    Tool Count5/5

    8 tools is well within the ideal 3-15 range and each earns its place in the set lifecycle. The count matches the server's scope—managing study sets with health check and notification—without redundancy or unnecessary bulk.

    Completeness5/5

    The tool surface covers the full lifecycle: create, read, update, delete, list, plus results feedback and learner notification. The feedback loop is closed by get_set_results informing update_study_set. Health check aids debugging. No obvious gaps that would cause agent failures.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search the Inoh dictionary and create, update, or delete vocabulary flashcards in the user's Inoh account through natural language.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to act as the memory of a personal English-learning app: read progress and words due for review, run short practice conversations, and store sentences, corrections, new words, rubric scores, and checked exercises back to the user's dashboard. Also lets the assistant grow the flashcard deck and adjust word familiarity, which reschedules spaced-repetition reviews.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to programmatically create, validate, store, and hot-swap interactive quizzes and study bundles into a desktop learning application, with analytics and local REST integration.
      MIT