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.
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
the client, the committed API spec, and the skills - and the skills are open to
contributions (see CONTRIBUTING.md).
Install:
/plugin marketplace add lingochunk/lingochunk-mcpin Claude Code (server plus lesson skills), ornpx -y @lingochunk/mcpas a standalone MCP server.
What it gives an agent
Twelve tools, each wrapping one public endpoint. The first seven are read-only; the last five 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). Preferred: the card.v1 kinds (word, phrase, collocation, idiom, chunk, grammar, cloze, contrast, qa, production) anchored to a verbatim transcript sentence - the server derives the highlight/blur painting and native-audio clip, so the card matches the app's own. Legacy: 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 lesson to your private library (100 max). Preferred: a structured lesson.v1 document the app renders natively (Lessons tab on the episode, real audio, live word state, Ask AI); returns metadata + an app_url. Legacy: a self-contained HTML file (10 MB cap) opened via a short-lived view URL. |
delete_lesson |
lessons:write |
Permanently deletes one saved lesson by id (destructive; owner-scoped server-side). Mainly for iterating: re-saving creates a new lesson, so superseded drafts count against the 100-lesson cap. |
Plus three skills:
lingochunk-lesson- composes a coursebook-stylelesson.v1document (listen, text, vocabulary, one grammar point, graded exercises, review) from the tools above, filtering out words you already know; the app renders it natively and can export an offline HTML worksheet.lingochunk-cards- builds native-grade flashcards with thecard.v1kinds: verbatim transcript anchors, per-kind guidance (grammar = production cloze of the morpheme with a hint), and a quality rubric distilled from the known failure modes of AI-generated cards.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:readcover the read tools; addcards:write,decks:exportandlessons:writefor the write tools). The token is shown once and starts withlcp_. 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 lingochunk/lingochunk-mcp
/plugin install lingochunk@lingochunk-mcp
The plugin's .mcp.json runs the published server via npx, pinned to the
exact version the plugin was released with (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
Use with other agents
Nothing in the server is Claude-specific: it is a standard stdio MCP server,
so any MCP-capable agent can run it. The recipe is always the same - run
npx -y @lingochunk/mcp with LINGOCHUNK_TOKEN in its environment - and
most clients express it as JSON like this:
{
"mcpServers": {
"lingochunk": {
"command": "npx",
"args": ["-y", "@lingochunk/mcp"],
"env": { "LINGOCHUNK_TOKEN": "lcp_your_token_here" }
}
}
}
Where that config lives per client (differences noted):
| Client | Where |
|---|---|
| Claude Desktop | Settings -> Developer -> Edit Config (claude_desktop_config.json) |
| Cursor | ~/.cursor/mcp.json, or .cursor/mcp.json per project |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code (Copilot agent mode) | .vscode/mcp.json, with top-level key servers instead of mcpServers |
| Gemini CLI | ~/.gemini/settings.json |
| Codex CLI | ~/.codex/config.toml, as [mcp_servers.lingochunk] with the same command/args/env in TOML |
Where your client supports it, prefer referencing an environment variable
over pasting the token into the config file (VS Code can prompt for it via
inputs; CLI clients usually inherit your shell environment).
The skills are not Claude-specific either: each one is a plain-markdown
playbook (skills/<name>/SKILL.md). Claude Code auto-loads them through the
plugin; with any other agent, point it at the file (or paste it as context)
and ask for a lesson. Every hard guarantee - the schema, verbatim transcript
quoting, sentence positions - is enforced server-side on save, so the
quality contract holds no matter which agent is driving.
Updating and checking versions
Two artefacts ship from this repo and version separately:
| Artefact | Carries | Check the version with |
|---|---|---|
Claude Code plugin lingochunk |
the skills + the server launcher | claude plugin list, or /plugin -> Installed |
npm package @lingochunk/mcp |
the MCP server (the tools) | npx -y @lingochunk/mcp --version |
Update the plugin (Claude Code)
/plugin marketplace update lingochunk-mcp
/reload-plugins
The first refreshes the marketplace; the second activates updated skills in the RUNNING session (new sessions load them automatically). To compare the installed version against what the marketplace offers:
claude plugin list --json --available
Set-and-forget alternative: /plugin -> Marketplaces -> select
lingochunk-mcp -> Enable auto-update (third-party marketplaces have it
disabled by default; official ones are on). With it enabled, Claude Code
refreshes at startup and prompts /reload-plugins when something changed.
An update only appears when the plugin's version was bumped - Claude Code
uses it as the cache key, which is why our release rule (CONTRIBUTING.md)
bumps it on every user-visible change.
Update the MCP server
The plugin pins the exact server version in its .mcp.json, so updating
the plugin updates the server too - no separate step. A running session
keeps its old server process; /reload-plugins (or a new session)
reconnects to the new one.
Standalone installs (claude mcp add ... npx -y @lingochunk/mcp, or the
other-agents configs above) are exposed to an npx trap: npx caches packages
in ~/.npm/_npx and does NOT re-check the registry once cached, so an
unpinned @lingochunk/mcp can run a stale server indefinitely. To check and
fix:
npx -y @lingochunk/mcp --version # what npx actually runs
npm view @lingochunk/mcp version # latest published
rm -rf ~/.npm/_npx # blunt fix: clear the npx cache, relaunch
Or make your config always-fresh by using @lingochunk/mcp@latest (checks
the registry on every launch: ~1-3 s extra startup and a registry
dependency), or pin @lingochunk/mcp@<version> and move the pin yourself
when you want the update.
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), then compose a structured
lesson.v1 document that the app renders natively - real episode audio, live
word state, crosslinks, Ask AI - with an offline HTML export available in-app.
A submission can hold many lessons, so different skills (or repeated runs) add
lessons side by side under the episode's Lessons tab. See
skills/lingochunk-lesson/.
Repository layout
src/ the MCP server (TypeScript, stdio)
skills/lingochunk-lesson/ the coursebook lesson skill
skills/lingochunk-cards/ the flashcard (card.v1) skill
skills/lingochunk-discuss/ the "discuss an episode" skill
skills/*/examples/ example lesson.v1 documents (CI-validated)
docs/skill-authoring.md how to write a new skill
docs/skill-template.md SKILL.md starting point
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/validate-lesson.ts validate a lesson.v1 document against the spec
scripts/smoke.ts live smoke test (run by hand, never in CI)
test/ vitest unit tests (mocked fetch) + example validation
.claude-plugin/plugin.json Claude Code plugin manifest
.mcp.json MCP server definition for the plugin
Contributing a skill
Skills are markdown pedagogy, not code: a SKILL.md playbook plus an example
lesson.v1 document that CI validates against the committed spec. Anyone can
contribute one - a dictation drill, an exam rehearsal, a due-words review
session - and AI-drafted skills are explicitly welcome. Start with
CONTRIBUTING.md and
docs/skill-authoring.md.
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) + skill example validation
npm run validate:lesson -- <doc.json> # validate a lesson.v1 document (Node 22.6+)
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 0db02377.
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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.