Yomitan MCP Server
The Yomitan MCP Server provides AI agents with offline access to local Yomitan dictionary databases for Japanese language processing and Anki flashcard generation.
Vocabulary lookup (
lookup): Search for Japanese terms to retrieve definitions, readings, and tags from your local Yomitan dictionaries.Kanji details (
kanji): Get detailed information about a single kanji character, including readings, stroke count, and meaning.Tokenization (
tokenize): Break down Japanese sentences into morphological tokens with readings and dictionary entries, using either the internal parser or MeCab.Anki flashcard generation (
anki_fields): Produce populated Anki card field data from text using your Yomitan templates and specified markers.Discover Anki markers (
anki_discover): Auto-detect valid Anki field markers (e.g.,{expression},{glossary}) for your specific Yomitan setup.Status check (
status): Verify the connection state and version of your local Yomitan backend.
All operations run entirely offline on your local machine and work with MCP-compatible clients like Claude Desktop and Cursor.
Enables the generation of populated Anki flashcard fields using Yomitan templates for vocabulary and kanji entries.
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., "@Yomitan MCP Server look up the meaning and readings for the word 雰囲気"
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.
Yomitan MCP Server
A Model Context Protocol (MCP) server that provides AI agents with direct access to your local Yomitan dictionary databases.
Overview
This MCP server connects to the Yomitan browser extension's existing Native Messaging HTTP API (typically running on localhost:19633). It allows any MCP-compatible client (like OpenClaw, Claude Desktop, or Cursor) to perform rich dictionary lookups instantly, completely offline, and without any browser automation.
Managed by GoRakuDo.
Related MCP server: Anki MultiDefine MCP
Features (MCP Tools)
The server exposes 6 tools:
lookup— Search for a vocabulary word and return definitions, readings, and tags. (Optimized for AI context)kanji— Search for detailed information about a single Kanji character.tokenize— Parse a Japanese sentence into tokens and dictionary entries.anki_discover— (New in v1.2.0) Auto-detect which Anki field markers (like{expression},{glossary}) are valid in your specific Yomitan setup.anki_fields— Generate populated Anki flashcard fields based on your Yomitan templates.status— Check the connection status and version of your Yomitan backend.
Prerequisites
Yomitan Browser Extension installed in Chrome/Firefox.
Native Messaging enabled in Yomitan.
Yomitan API enabled in Yomitan Settings:
Go to Yomitan Settings -> Advanced.
Enable "Yomitan API" (Ensure the server URL is
http://127.0.0.1:19633).
Node.js (v18+) installed.
Usage
You can run this MCP server directly using npx (no installation required):
npx yomitan-mcp-serverUsage with MCP Clients (Claude Desktop, Cursor, OpenClaw, etc.)
Add the following configuration to your MCP client's configuration file (e.g., mcp_config.json, claude_desktop_config.json):
{
"mcpServers": {
"yomitan-mcp": {
"command": "npx",
"args": [
"-y",
"yomitan-mcp-server@latest"
]
}
}
}Anki Integration
To use anki_fields effectively:
Configure your Anki Note Type and field mappings in Yomitan Settings -> Anki -> "Configure Anki card format...".
Use
anki_discoverfirst to see which markers (e.g.,expression,reading,glossary,single-glossary-DictionaryName) are available in your setup.If you encounter HTTP 500 errors, ensure you are using the correct marker names found via
anki_discover.
Security & Privacy
All lookups are performed entirely locally on your machine.
No data is sent to external servers by this MCP server.
The default HTTP API operates strictly on
localhost.
Troubleshooting
Connection Refused (
ECONNREFUSED): Ensure the browser with Yomitan is running. Check that "Enable Yomitan API" is turned on in the extension's Advanced Settings.HTTP 500 Errors in anki_fields: This usually means a marker name is invalid or not mapped. Run
anki_discoverto verify your available markers.Insufficient Permissions: Ensure the Native Messaging component is correctly installed for your browser. You can test this within the Yomitan Settings page under "API".
Built by GoRakuDo. Licensed under Mozilla Public License Version 2.0.
Available Tools
5 toolsanki_fieldsB
テキストからAnkiカード用のフィールドデータを生成する
Inputs: text (required), markers (required), type, maxEntries, +1 more.
kanjiC
漢字の詳細情報(読み、画数、意味等)を検索する
Inputs: character (required).
lookupC
Yomitanの辞書でterm/wordを検索し、定義・読み・タグ等を返す
Inputs: term (required).
statusB
Yomitan APIの接続状態とバージョンを確認する
Inputs: no named parameters.
tokenizeB
テキストを形態素解析し、読みと辞書エントリに分割する
Inputs: text (required), scanLength, parser.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap: anki_fields generates Anki card data, kanji provides kanji details, lookup searches dictionary terms, status checks API status, and tokenize performs morphological analysis. The descriptions clearly differentiate their functions, eliminating any ambiguity.
All tool names follow a consistent snake_case pattern with clear, descriptive nouns (e.g., anki_fields, kanji, lookup, status, tokenize). There are no deviations in naming style or verb usage, making the set predictable and easy to understand.
With 5 tools, the server is well-scoped for its Japanese language learning and dictionary domain. Each tool serves a specific, essential function (e.g., dictionary lookup, kanji info, text processing, API status), and none feel redundant or missing for the apparent purpose.
The tool set covers core functionalities well: dictionary lookup (lookup), kanji details (kanji), text processing (tokenize, anki_fields), and system status (status). A minor gap might be the lack of tools for managing user data or saved entries, but the existing tools support key workflows without dead ends.
Maintenance
Related MCP Connectors
Free: turn your AI chats into spaced-repetition vocabulary. 13 tools, reads and writes.
Save vocabulary from any AI chat; see each word in every language you know; review it with FSRS.
Connects an AI assistant to your Lingard account (lingard.app), an app for learning languages with books, news and flashcards. Create topic word collections and add complete cards: translation, part of speech, pronunciation, synonyms, example sentences with translations, and images. Fill in missing fields on existing cards, rewrite example translations, and pause or resume collections, books and news in your daily study sessions. Every change can be previewed before it is saved, and saved words appear in the Lingard apps on iOS, Android and the web. Requires a Lingard account; sign-in uses OAuth.
Save words from your AI chats as spaced-repetition flashcards, with meanings, IPA and audio.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Japanese word lookup and search using the Jisho.org dictionary, providing tools to search entries and retrieve exact word definitions with JLPT levels and parts of speech.23MIT
- AlicenseAqualityBmaintenanceEnables AI agents to look up words in monolingual dictionaries for English, German, Russian, French, and Azerbaijani, retrieving structured definitions, IPA phonetics, audio URLs, and verb forms. Includes schema guidance so the results can be turned into ready-to-add Anki flashcards.2GPL 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search and look up the Jisho.org Japanese-English dictionary by English keyword, kanji, kana, or romaji, returning headwords, readings, JLPT levels, common-ness, and grouped English meanings. Useful for translating words, checking how a term is read, or finding Japanese equivalents for an English concept.309 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to access a local Anki collection through AnkiConnect: list decks, search and retrieve notes/cards, identify weak cards, and batch-add validated flashcards with optional pronunciation audio.5MIT