bunpro-mcp
This server acts as an MCP interface to Bunpro, a Japanese grammar/vocabulary SRS platform, letting an LLM agent read study data and manage SRS reviews. It also supports token refresh without restarting the MCP client.
User & Profile
get_user— Retrieve your Bunpro user profile (level, title, settings)
Review Queue & History
get_due_count— Check how many reviews are currently dueget_queue— Fetch the full current review queueget_reviews— List reviews with paginationget_last_session— Stats from your most recent review sessionget_last_24_hours— Review history for the last 24 hours
Statistics
get_base_stats— Overall study statistics (totals, streaks, etc.)get_jlpt_progress— Grammar/vocab progress by JLPT level (N1–N5)get_srs_overview— SRS level distribution across all itemsget_srs_level_details— Items at a specific SRS level (1–10) with paginationget_ghost_details— Ghost review items that reappear after being burned
Forecasts & Activity
get_forecast_daily/get_forecast_hourly— Upcoming daily/hourly review forecastsget_review_activity— Review activity history (for streak/activity graphs)
Item Details & Search
get_item— Full details for a grammar point or vocabulary item by slug or ID (meaning, structure, examples, SRS status)get_item_notes— Your personal study notes for a grammar or vocab itemsearch— Search grammar points and vocabulary by query, with filters for type (grammar/vocab) and result limit
SRS Management
add_to_reviews— Add grammar points or vocab items to your SRS reviews (optionally specifying a deck)remove_from_reviews— Remove items from your SRS reviews
Bookmarks
add_bookmark/remove_bookmark— Add or remove bookmarks for items
Legacy API (requires BUNPRO_API_KEY)
get_study_queue_legacy— Review queue counts via the legacy APIget_recent_items_legacy— Recently added grammar points via the legacy API
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bunpro-mcp what's my due count for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bunpro-mcp
An unofficial Model Context Protocol server for Bunpro, the Japanese grammar/vocabulary SRS. It exposes Bunpro's review queue, search, statistics, and SRS management as MCP tools, so an LLM agent can read your study data and add grammar points / vocabulary to your reviews.
Disclaimer — please read
This is an independent, unofficial project, not affiliated with, endorsed by, or supported by Bunpro. It wraps Bunpro's private, undocumented frontend API, which can change or break at any time. Built for personal, educational use.
This tool only works because it relies on Bunpro's servers, content, and services. Your use of it — and especially any commercial use — is subject to Bunpro's Terms of Service independently of this project's license. No Bunpro content (grammar explanations, example sentences, vocabulary data, audio) is included in this repository. Use at your own risk. If you build something commercial on top of Bunpro, support Bunpro directly.
Features
Read your review queue, due counts, SRS overview, JLPT progress, forecasts, and session history.
Search grammar points and vocabulary — compact results, filterable by type, size-capped.
Add / remove grammar points and vocabulary to / from your SRS reviews.
Manage bookmarks.
Per-call token resolution: refresh an expired token without restarting your MCP client (see below).
Related MCP server: Anki MCP Server
Requirements
Node.js 18+ (uses the built-in
fetch).A Bunpro account and its
frontend_api_token.
Getting your token
The frontend API uses the frontend_api_token cookie as a bearer token:
Log in to bunpro.jp.
DevTools → Application → Cookies →
https://bunpro.jp→ copy the value offrontend_api_token.
The token expires roughly monthly; refresh it the same way when calls start returning
401 AUTH_USER_DENIED.
Install & build
npm install
npm run buildConfigure your MCP client
Add the server to your MCP client config (stdio transport). Build it locally first
(npm install builds via the prepare script), then point at dist/index.js — see
claude_desktop_config.example.json:
{
"mcpServers": {
"bunpro": {
"command": "node",
"args": ["/absolute/path/to/bunpro-mcp/dist/index.js"],
"env": { "BUNPRO_API_TOKEN": "your_frontend_api_token_here" }
}
}
}Not yet published to npm. Once it is, you'll also be able to run it with no local clone via
"command": "npx", "args": ["-y", "@patvandyke/bunpro-mcp"].
BUNPRO_API_KEY (legacy) is optional and only enables the two *_legacy tools.
Token refresh without restarting
The token is resolved per request, not just at startup, so a refreshed token is picked up without restarting the server:
BUNPRO_TOKEN_FILE— if set (or, by default,~/.claude-work/.claude.jsonwhen present), the liveBUNPRO_API_TOKENvalue is read from that JSON file on each call (30 s cache) and re-read on a401. Refresh the token in the file and the next call picks it up — no restart. This is handy under Claude Code, whose config already holds the token.Otherwise it falls back to the
BUNPRO_API_TOKENenv var supplied at spawn.
A 401 returns a clear "token expired" message instead of dropping the connection.
Tools
Tool | Description |
| User profile |
| Number of reviews due |
| Full review queue |
| Paginated reviews |
| Statistics |
| Forecasts & activity |
| History |
| Full detail / notes for one item |
| Search grammar + vocab ( |
| SRS management ( |
| Bookmarks |
| Legacy API-key endpoints |
API notes
Frontend API base:
https://api.bunpro.jp/api/frontend. Auth:Authorization: Bearer <frontend_api_token>.The reviews endpoint uses the type names
Vocab/GrammarPoint(bookmarks useVocabulary/GrammarPoint).Raw search responses can be very large; this server returns a compact projection and reports truncation.
Related projects
brimalval/bunpro-mcp — an independent Python / FastAPI implementation.
License
MIT © Patrik Kollár. Keep the copyright / credit notice in copies. This license covers this client code only — it grants no rights to Bunpro's services or content, which remain governed by Bunpro's Terms of Service.
Available Tools
23 toolsadd_bookmarkB
Bookmark a Bunpro item for later review.
Inputs: reviewable_id (required), reviewable_type (required).
add_to_reviewsA
Add one or more items to your Bunpro SRS reviews. Items start at SRS level 0 and become reviewable immediately. Note: reviewable_type for this endpoint is 'Vocab' or 'GrammarPoint' (not 'Vocabulary').
Inputs: reviewables (required), deck_id.
get_base_statsA
Get overall Bunpro study statistics (total grammar points, reviews, streaks, etc.).
Inputs: no named parameters.
get_due_countA
Get the number of reviews currently due in Bunpro.
Inputs: no named parameters.
get_forecast_dailyA
Get the upcoming daily review forecast (next N days).
Inputs: no named parameters.
get_forecast_hourlyA
Get the upcoming hourly review forecast for today.
Inputs: no named parameters.
get_ghost_detailsB
Get ghost review items (items that haunt your review queue after being burned).
Inputs: reviewable_type (required).
get_itemA
Get full details for a grammar point or vocabulary item by its slug or ID (e.g. 'は-wa-topic-marking-particle' or '42'). Returns meaning, structure, example sentences, SRS status, and more.
Inputs: slug_or_id (required).
get_item_notesA
Get your personal study notes for a grammar point or vocab item.
Inputs: slug_or_id (required).
get_jlpt_progressA
Get grammar/vocab progress broken down by JLPT level (N1–N5).
Inputs: no named parameters.
get_last_24_hoursB
Get review history for the last 24 hours.
Inputs: no named parameters.
get_last_sessionB
Get statistics from the most recent review session.
Inputs: no named parameters.
get_queueB
Get the full current review queue from Bunpro.
Inputs: no named parameters.
get_recent_items_legacyA
Get recently added grammar points using the legacy Bunpro API key (requires BUNPRO_API_KEY).
Inputs: limit.
get_review_activityB
Get review activity history (used for the activity/streak graph).
Inputs: no named parameters.
get_reviewsC
List reviews with pagination.
Inputs: page, per_page.
get_srs_level_detailsC
Get items at a specific SRS level with pagination.
Inputs: level (required), reviewable_type (required), page.
get_srs_overviewA
Get the SRS level distribution — how many items are at each SRS tier.
Inputs: no named parameters.
get_study_queue_legacyA
Get review queue counts using the legacy Bunpro API key (requires BUNPRO_API_KEY). Returns reviews available now, next hour, and next day.
Inputs: no named parameters.
get_userA
Get the current Bunpro user profile (level, title, settings).
Inputs: no named parameters.
remove_bookmarkA
Remove a Bunpro bookmark by its bookmark ID.
Inputs: bookmark_id (required).
remove_from_reviewsB
Remove one or more items from your Bunpro SRS reviews.
Inputs: reviewables (required), deck_id.
searchA
Search Bunpro grammar points and vocabulary. Returns compact matches (id, title, kana, level, meaning) plus a truncated field when results were capped. Use the grammar/vocab flags to narrow the search and limit to cap each section (raw payloads can exceed 240 KB). Get full per-item detail via get_item.
Inputs: query (required), grammar, vocab, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools have clearly distinct purposes, but there is some overlap between queue-related tools (get_due_count, get_queue, get_reviews, get_study_queue_legacy) and between list-based statistics (get_last_24_hours, get_review_activity). Descriptions help differentiate, but an agent might occasionally misselect.
All tool names follow a consistent snake_case verb_noun pattern (e.g., add_bookmark, get_due_count, remove_from_reviews). Legacy tools are suffixed with _legacy. No mixing of conventions or ambiguous verbs.
23 tools cover the main aspects of the Bunpro study platform (user, items, reviews, SRS, bookmarks, statistics) without being excessive. Each tool serves a specific function and feels well-scoped.
The tool surface covers core workflows: searching, viewing item details, managing reviews, bookmarks, and statistics. A minor gap is the absence of a tool to update personal notes (only get_item_notes exists), but general CRUD operations for items are not needed for a study app.
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables language models to interact with Anki flashcard decks programmatically, with specialized features for Japanese language learning including vocabulary import, sample sentence generation, and spaced repetition review.3MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that integrates with Anki flashcard application, allowing LLM applications like Claude to interact with your Anki decks and cards.111MIT
- FlicenseNot gradedqualityDmaintenanceA read-only MCP server that lets ChatGPT inspect your LingQ progress without exposing your password. It exposes tools for listing languages, checking progress capabilities, and retrieving progress summaries and charts.-
- FlicenseAqualityCmaintenanceA local MCP server that helps you maintain a personal Japanese learning knowledge base, including vocabulary, confusion relations, mistakes, and spaced-repetition reviews. It provides tools and prompts for managing and reviewing your Japanese learning data without calling external LLM APIs.6-