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
just the client, the committed API spec, and two lesson skills.
Install:
/plugin marketplace add lxol/lingochunk-mcpin Claude Code (server plus lesson skills), ornpx -y @lingochunk/mcpas 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: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 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。