LingoChunk MCP

LingoChunk MCP

Turns a coding agent into a language tutor grounded in your LingoChunk listening history, providing tools to access vocabulary, transcripts, audio clips, and create lessons.

Category
Visit Server

README

LingoChunk MCP

A Model Context Protocol server (and Claude Code plugin) that turns a coding agent into a language tutor grounded in your own LingoChunk listening history: your FSRS-graded vocabulary, native-audio transcripts and clips, and your library.

It is a thin client over the LingoChunk public API (/api/v1): read-only tools for your vocabulary, transcripts and audio, plus write tools to add review cards, export Anki decks and save lessons. The app stays closed source; this repo is just the client, the committed API spec, and two lesson skills.

Install: /plugin marketplace add lxol/lingochunk-mcp in Claude Code (server plus lesson skills), or npx -y @lingochunk/mcp as a standalone MCP server.

What it gives an agent

Eleven tools, each wrapping one public endpoint. The first seven are read-only; the last four (phase 3) write to your account.

Tool Scope What it does
get_vocabulary vocab:read Your vocabulary, aggregated per word with FSRS maturity (known/learning/new/due). Filterable; incremental sync via since + cursor (additive-only, so full-resync periodically).
lookup_word vocab:read One word: your own context plus a shared-lexicon gender/CEFR fallback. Grounds an LLM's guesses.
list_library content:read Your ready-to-study episodes (own + followed collections), cursor-paginated.
get_transcript content:read A submission's timestamped sentences + translations, sliceable by sentence or time range.
get_audio_url content:read A short-lived presigned URL to the full native audio (Range-capable).
search_examples content:read Example sentences across your library, by word (lemma) or text (q). A capped sample, not exhaustive.
get_audio_clip content:read Cuts a short native-audio snippet, saves it to a local file, and returns {path, media_type, size_bytes} for embedding in lessons.
list_decks cards:write or decks:export Your study decks with card counts, for picking a deck_id to add to or export.
add_card cards:write Adds a card to your review queue (FSRS, starts new): kind=vocab from your vocabulary, or kind=custom front/back. Omit deck_id to use the deck for the card's own submission.
export_anki_deck decks:export Exports a deck to Anki .apkg (no LLM), polling internally; returns a download URL when ready. A deck with no linked episode can't be exported.
save_lesson lessons:write Saves a self-contained HTML lesson to your private library (10 MB cap, 100 max); returns metadata + a short-lived view URL.

Plus two skills:

  • lingochunk-lesson - builds a single self-contained HTML lesson (data-URI audio; gap-fill, multiple-choice, listening and blur-reveal exercises) from the tools above, filtering out words you already know.
  • lingochunk-discuss - a lighter, conversational "talk me through this episode" workflow.

Prerequisites

  • Node.js >= 18.
  • A LingoChunk personal access token: in LingoChunk, open Settings -> API access, create a token, and grant the scopes you need (vocab:read + content:read cover the read tools; add cards:write, decks:export and lessons:write for the write tools). The token is shown once and starts with lcp_. The 403 errors from the tools name the exact scope you are missing.

Use it

Option A - Claude Code plugin (the server plus the lesson skills)

This repo is its own plugin marketplace. In Claude Code:

/plugin marketplace add lxol/lingochunk-mcp
/plugin install lingochunk@lingochunk-mcp

The plugin's .mcp.json runs the published server via npx -y @lingochunk/mcp (no build step needed) and reads your token from the environment, so export it in the shell you start Claude Code from:

export LINGOCHUNK_TOKEN=lcp_your_token_here

The skills/ (lesson builder and episode discussion) are picked up automatically with the plugin.

Option B - standalone MCP server (tools only, no skills)

claude mcp add --scope user lingochunk --env LINGOCHUNK_TOKEN=lcp_... -- npx -y @lingochunk/mcp

For development against a local checkout, run the built server directly:

npm install     # installs deps and builds dist/ via the prepare script
claude mcp add lingochunk --env LINGOCHUNK_TOKEN=lcp_... -- node /absolute/path/to/lingochunk-mcp/dist/index.js

Configuration

Variable Required Default Meaning
LINGOCHUNK_TOKEN yes - Your personal access token (lcp_...).
LINGOCHUNK_BASE_URL no https://lingochunk.com API origin override (for self-host/testing).
LINGOCHUNK_CLIP_DIR no ~/.cache/lingochunk-mcp Where get_audio_clip writes clip files (a private per-user dir, created mode 0700).

The token is only ever sent as an Authorization: Bearer header to the configured origin; it is never written to disk or logged.

Building a lesson

Ask your agent something like "build me a lesson from yesterday's German episode" or "quiz me on the words I'm learning". The lingochunk-lesson skill drives the workflow: pick the source, pull a transcript slice, gather and filter your vocabulary (never quizzing you on mastered words), fetch short audio clips, and render one shareable HTML file. See skills/lingochunk-lesson/.

Repository layout

src/                                    the MCP server (TypeScript, stdio)
skills/lingochunk-lesson/               the lesson skill
skills/lingochunk-lesson/assets/lesson-template.html   self-contained HTML template
skills/lingochunk-discuss/              the "discuss an episode" skill
docs/integrations/fluent.md             how to plug this into the fluent tutor plugin
spec/openapi-public-v1.json             the committed public API spec (the contract)
scripts/smoke.ts                        live smoke test (run by hand, never in CI)
test/                                   vitest unit tests (mocked fetch)
.claude-plugin/plugin.json              Claude Code plugin manifest
.mcp.json                               MCP server definition for the plugin

Development

npm install        # deps + build (prepare)
npm run build      # compile src/ -> dist/
npm run typecheck  # type-check without emitting
npm test           # vitest unit tests (mocked fetch; no network)

spec/openapi-public-v1.json is the source contract; it is exported from the LingoChunk repo (make generate-openapi-public) and refreshed here on each API release. This copy was taken from LingoChunk commit 3c226795.

Live smoke test

scripts/smoke.ts exercises a real API and is not part of npm test. Build first, then run it by hand with a real token:

npm run build
LINGOCHUNK_TOKEN=lcp_... [LINGOCHUNK_BASE_URL=http://localhost:8000] \
  node --experimental-strip-types scripts/smoke.ts

License

MIT.

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