eblook MCP server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
eblook MCP server
An MCP server that provides EPWING dictionary search services through eblook. It is built with FastMCP and exposes dictionary listing, dictionary selection, and HTML search results as MCP tools.
Features
Tool | Description |
| List the configured dictionaries with their tags and descriptions. |
| Select the dictionary to search; returns supported search methods and a search-query guide. |
| Search the selected dictionary and return the entries as HTML. |
| Search several dictionaries with one word and return one combined HTML document. |
Search results are HTML fragments. The heading contains the search word, the
search method, and the dictionary title, for example
Search 楽器@glob in 広辞苑第六版.
Related MCP server: MCP Fast Server
Requirements
Python 3.10 or later
The
eblookcommand onPATH(see the eblook project page)EPWING dictionary data
estcmdonPATHonly for full-text search. A dictionary must also contain an_ebestindex, created as described in Making an ebest index.
Installation
End-user installation with pipx:
make install
# equivalent to: pipx install --force .This installs the eblook-mcp command into an isolated environment.
For development:
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
make testConfiguration
The default config file is ${XDG_CONFIG_HOME}/eblook_mcp/config.toml
(~/.config/eblook_mcp/config.toml when XDG_CONFIG_HOME is unset).
Generate an initial config from a directory containing dictionaries:
eblook-mcp --gen-config /usr/local/share/dict > \
"${XDG_CONFIG_HOME:-$HOME/.config}/eblook_mcp/config.toml"Example config:
eblook = ""
estcmd = ""
max_hits = 25
[[dictionaries."koujien:kojien"]]
path = "/usr/local/share/dict/koujien"
subbook = "kojien"
title = "広辞苑 第六版"
description = "Japanese word dictionary"
mapfile = "/usr/local/share/dict/koujien/kojien.map"
appendix = ""
alternate_ini = ""Top-level keys:
Key | Default | Description |
|
| Path to |
|
| Path to |
|
| Maximum number of hits per search; |
| unset | Global alternate character map. When unset, the default path is used if it exists; |
Relative paths are resolved against the directory of the config file.
eblook and estcmd values without / are treated as command names and
looked up on PATH.
Each dictionary is an entry such as [[dictionaries."NAME:SUBBOOK"]] (quotes
are required because TOML bare keys cannot contain :). path and subbook
are required; title and description are optional display strings. subbook
is the subbook name reported by eblook's list command (lowercase).
appendix, alternate_ini, and mapfile each have three states:
key absent: auto-detect (
_appendix,alternate.ini,SUBBOOK.map)empty string: explicitly disabled
a path: use that path
Command-line usage
Invocation | Behavior |
| Read the default config and start the MCP server over stdio. |
| Start the server with the specified config file (exclusive with |
| Generate a config from dictionaries under |
| Write a log file at |
| Write the log to |
| Print the version. |
Logging uses Python's standard logging module and always writes to a file,
never to stdout, because stdout carries the MCP protocol over stdio. Logging is
enabled only by an explicit --loglevel LEVEL; --logfile requires a level
and is rejected on its own. The default log file is %Y_%M_%D.log in the
directory of the config file. Errors
that stop the command (bad config, failed config generation, an unexpected
server failure) and exceptions raised by MCP tools are logged as errors, with a
traceback where available.
A typical MCP client configuration for stdio:
{
"mcpServers": {
"eblook-mcp": {
"command": "eblook-mcp",
"args": ["--config", "/path/to/config.toml"]
}
}
}MCP tools in detail
list_dictionaries()returns thetag,title, anddescriptionof every configured dictionary.set_dictionary(tag)selects a dictionary. Pass atagreturned bylist_dictionaries(NAME:SUBBOOK); a bare subbook name is not accepted. The result containssupported_methodsandsearch_query_guide, which explains how to write search queries for each method.search(word, method="glob")searches the selected dictionary and returns HTML. Callset_dictionaryfirst.search_multiple(tags, word, method="glob")applies one query to all given dictionaries and returns the results as a single HTML document. The current dictionary selection is left unchanged.
The dictionary selection is kept per server session. All eblook operations are serialized because a single eblook subprocess is used.
Full-text search (method="fulltext") requires an index generated with
ebestmk in addition to
estcmd; without it, the method is not listed by set_dictionary.
Development
Make target | Description |
| Install the |
| Build a wheel into |
| Run |
| Run |
| Run the tests with line coverage of the |
| Remove |
Tests live in tests/. They import the package from the editable install made
by make test, so run them through the project virtualenv rather than the
system Python. make test runs a strict type check on both the package and the
tests first, so a type error fails the test target before pytest starts. Tests
that need real dictionaries are marked integration and use
EBLOOK_DICT_ROOT (default /usr/local/share/dict); they are skipped when the
dictionaries are unavailable. To run only the fast tests, use
.venv/bin/python -m pytest -m "not integration". For a visual check of
generated HTML, run python tests/manual_eblook.py 2.
Reference
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Jisho.org Japanese-English dictionary MCP (keyless).
Read-only Old English (Anglo-Saxon) dictionary over MCP: headword lookup with senses, etymology and inflections; full declension and conjugation tables; inflected-form identification; Modern English to Old English reverse lookup; and Beowulf citations with line numbers.
Wiktionary MCP — multilingual dictionary via Wikimedia REST + MediaWiki Action API
MCP server for Chinese dictionary lookup: character definitions, pinyin, stroke order and word
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for searching Japanese Diet bills and committee Q\&A records via the NDL Kokkai API.444 npm1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables web search via DuckDuckGo and readable content extraction from HTML pages using FastMCP.-
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving audiobooks, authors, and tracks from LibriVox through an MCP interface.68 npmMIT
- AlicenseAqualityAmaintenanceAn MCP server that searches across the Internet Archive and Library of Congress at once, merging results while keeping each archive's differences. Provides tools to search inside texts, search catalogues, and retrieve item records, all read-only and without an API key.3111 npmMIT