home / mcp / directmedia mcp server
Provides programmatic access to Directmedia Digitale Bibliothek for text extraction, navigation, and EPUB conversion.
Configuration
View docs{
"mcpServers": {
"sandraschi-directmedia-mcp": {
"command": "python",
"args": [
"-m",
"directmedia_mcp.server",
"--library-path",
"L:\\Multimedia Files\\Written Word\\Digitale Bibliothek"
]
}
}
}You can programmatically access and extract text from Directmedia Publishing's historic Digitale Bibliothek collection using this MCP server. It provides commands to manage volumes, search for German literature, extract text, navigate contents, and convert volumes to EPUB for modern reading, all through a simple MCP interface.
Start the MCP server using one of the available local (stdio) commands, then interact with it through your MCP client or tooling. You can list volumes, search for content, extract text, view the table of contents, and convert volumes to EPUB.
Examples of common workflows you can perform after starting the server include listing volumes, searching for specific terms, extracting text ranges, and converting volumes to EPUB format. The server exposes dedicated tools for these tasks as described in the tool list.
Convert a single volume to EPUB and batch convert multiple volumes using the provided MCP tools. These operations produce modern EPUB files suitable for popular readers and libraries.
Prerequisites: Python 3.11+ must be installed on your system.
Install the MCP package in editable mode from your source tree or distribution so you can run the MCP server and its tools locally.
pip install -e .You run the MCP server with the library path to the Directmedia Digitale Bibliothek collection on your filesystem. Two equivalent startup options are shown below.
python -m directmedia_mcp.server --library-path "L:\Multimedia Files\Written Word\Digitale Bibliothek"
```
```
directmedia-mcp --library-path "L:\Multimedia Files\Written Word\Digitale Bibliothek"Library management tools let you configure the library location and inspect volumes.
Content access tools enable text search and extraction across volumes.
EPUB conversion tools create EPUB 3.0 files from extracted text, with proper metadata and table of contents.
Note: Use the following representative tool calls to perform common tasks.
convert_volume_to_epub_file("DB002", "./epub_output")
batch_convert_to_epub("./epub_library", ["DB002", "DB003", "DB004"])You must legally own copies of Directmedia Publishing's Digitale Bibliothek CD-ROMs to use this toolset.
This tool is intended for educational and research use with legally obtained content. Adhere to copyright laws in your jurisdiction.
If you encounter path or encoding issues, ensure the library path is correct and that the Latin-1 text in the source volumes is properly handled by your environment.
Configure the library location so the MCP server can locate the Directmedia Digitale Bibliothek collection.
List all available volumes in the library with their metadata.
Retrieve metadata for a specific volume identified by its ID.
Search across volumes for a text query, optionally scoped to a specific volume and limited by a count.
Extract a span of text from a specified volume using a start position and length.
Obtain the table of contents or navigation structure for a volume.
Convert a single volume to a standards-compliant EPUB file and save it to a chosen directory.
Convert multiple volumes to EPUB in a batch operation and save them to a directory.
Analyze the file format structure of a volume for troubleshooting or research.