Audiobook Library MCP Server
Uses Audible as a web lookup source for limited audiobook-specific metadata.
Organizes and names audiobook libraries in Audiobookshelf-compatible structures for seamless use with Audiobookshelf.
Queries the Google Books API to identify books and enrich metadata during filename and library analysis.
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., "@Audiobook Library MCP Server Scan my audiobook library and suggest better filenames"
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.
π§ Audiobook Library MCP Server
Advanced MCP server for intelligent audiobook library management with AI-powered pattern recognition, web lookup capabilities, and audio processing features.
β¨ Features
π§ AI-Powered Intelligence
Web Lookup Integration - Identifies books using Google Books, Open Library, and more
Advanced Pattern Recognition - Learns your organizational preferences
Smart Entity Recognition - Extracts authors, titles, series from any filename format
Intelligent Suggestions - Context-aware recommendations with confidence scoring
π΅ Audio Processing
MP3 Combination - Merge multiple files with lossless concatenation
M4B Audiobook Creation - Professional audiobooks with metadata and chapters
Format Conversion - Support for MP3, M4A, FLAC, OGG β M4B
Automatic Chapter Markers - Generated from individual files
π Library Management
Audiobookshelf Compatibility - Perfect integration with Audiobookshelf
Intelligent Organization - Author-first, series-first, or hybrid structures
Bulk Operations - Process hundreds of files efficiently
Archive Handling - Extract ZIP, RAR, 7Z files automatically
π Advanced Analysis
Filename Intelligence - Handles any naming convention
Metadata Enhancement - Combines file metadata with web sources
Confidence Scoring - Reliability ratings for all suggestions
Learning System - Gets smarter with every interaction
Related MCP server: calibre-mcp
π Quick Start
Prerequisites
# Install FFmpeg (required for audio processing)
brew install ffmpeg # macOS
# or visit https://ffmpeg.org/download.html
# Verify installation
ffmpeg -versionInstallation
# Clone the repository
git clone https://github.com/yourusername/audiobook-mcp-server.git
cd audiobook-mcp-server
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
Set up Claude Desktop configuration at
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"audiobook-library": {
"command": "node",
"args": ["/path/to/audiobook-mcp-server/dist/index.js"],
"env": {
"AUDIOBOOK_ROOT": "/path/to/your/audiobook/library"
}
}
}
}Restart Claude Desktop
Test the connection:
"Scan my audiobooks library"
π‘ Usage Examples
Basic Operations
"Scan my audiobooks library"
"Analyze my Temp folder and suggest integration"
"Extract archive files in [folder]"AI-Powered Analysis
"Analyze this filename using web lookup: 'HP1_sorcerers_stone_jim_dale.mp3'"
"Bulk analyze my messy files and suggest proper names"
"Get smart suggestions for organizing my library"Audio Processing
"Combine the MP3 files in this folder into one audiobook"
"Create an M4B audiobook with metadata and chapters"
"Convert this series to M4B format with proper naming"Learning & Preferences
"Learn from this action: I renamed the file to include the author"
"Update my preferences: I prefer author-first organization"
"Show me insights about my organizing patterns"π οΈ Available Tools
Tool | Description |
| Recursively scan audiobook directories |
| Analyze filenames using web lookups |
| Identify authors, titles, series from names |
| Query web sources for book information |
| Mass analyze and suggest improvements |
| Merge multiple MP3s into single file |
| Convert to M4B with metadata and chapters |
| Deep analysis of library patterns |
| AI-powered organization recommendations |
| Record user actions for learning |
π Web Sources
Google Books API - Comprehensive book database
Open Library - Open-source book information
LibriVox - Public domain audiobooks
Audible - Audiobook-specific data (limited)
ποΈ Architecture
src/
βββ index.ts # Main MCP server implementation
βββ WebLookupEngine # Web API integration and caching
βββ PatternRecognizer # AI pattern detection and learning
βββ SmartSuggestionEngine # Intelligent recommendation system
βββ AudiobookMCPServer # Core server with all tool implementationsπ Data Storage
The server creates these files in your audiobook root directory:
.mcp_learning_data.json- Pattern recognition and user actions.mcp_user_preferences.json- Explicit user preferences.mcp_lookup_cache.json- Cached web lookup results (7-day expiry)
All data stays local on your system - no external data transmission except for web API queries.
π§ Development
# Development mode with auto-reload
npm run dev
# Build for production
npm run build
# Test the built server
node dist/index.jsπ Requirements
Node.js 18.0.0 or higher
FFmpeg (for audio processing)
TypeScript 5.0.0 or higher
Claude Desktop (for MCP integration)
π€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Model Context Protocol for the MCP framework
Google Books API for book data
Open Library for open-source book information
FFmpeg for audio processing capabilities
Audiobookshelf for inspiration on audiobook organization
π§ Support
If you encounter issues or have questions:
Check the Issues page
Create a new issue with detailed information
Include your system information and error logs
Transform your chaotic audiobook collection into a perfectly organized, AI-enhanced library! π§β¨
Available Tools
24 toolsanalyze_patternsB
Analyze library patterns and user behavior to provide intelligent suggestions
Inputs: analysisType, learningDepth, includePredictions.
bulk_filename_enrichmentC
Bulk analyze and suggest improvements for multiple files using web lookups
Inputs: batchSize, fileTypes, targetDirectory, generateSuggestions, +1 more.
combine_mp3_filesC
Combine multiple MP3 files into a single MP3 file
Inputs: inputFiles (required), outputPath (required), dryRun, deleteOriginals.
create_directoryC
Create a new directory structure
Inputs: relativePath (required).
create_m4b_audiobookC
Convert and combine audio files into M4B audiobook format with metadata
Inputs: inputFiles (required), outputPath (required), dryRun, bitrate, +3 more.
enhance_metadata_with_lookupC
Enhance existing metadata using web lookup results
Inputs: filePath (required), forceRefresh, mergingStrategy.
extract_archiveC
Extract compressed audio book archives
Inputs: archivePath (required), dryRun, extractTo, deleteAfter.
generate_audiobookshelf_structureC
Generate optimal Audiobookshelf directory structure from metadata
Inputs: basedOn, convention, includeSeriesNumbers.
get_file_infoC
Get detailed information about a specific file or directory
Inputs: relativePath (required), includeMetadata.
integrate_temp_folderB
Analyze Temp folder and suggest integration into main audiobooks library
Inputs: dryRun.
intelligent_filename_analysisB
Analyze filenames using web lookups to identify authors, titles, and series
Inputs: maxResults, targetPath, lookupSources, minConfidence.
learn_from_actionC
Record and learn from user actions to improve future suggestions
Inputs: context (required), outcome (required), actionType (required), feedback.
move_fileC
Move a file or directory to a new location
Inputs: sourcePath (required), destinationPath (required), dryRun.
pattern_insightsC
Get insights about detected patterns and learning progress
Inputs: timeframe, insightType.
rename_fileB
Rename a file or directory
Inputs: newPath (required), oldPath (required), dryRun.
scan_libraryC
Recursively scan the audiobook library and return structure
Inputs: maxDepth, subfolder, includeMetadata.
smart_entity_recognitionB
Identify authors, titles, series from filenames using pattern matching and web lookups
Inputs: filenames (required), contextPath, enableWebLookup, aggressiveMatching.
smart_suggestionsC
Generate intelligent suggestions based on learned patterns and user preferences
Inputs: targetPath, minConfidence, maxSuggestions, suggestionTypes.
standardize_audiobookshelf_structureC
Convert current structure to Audiobookshelf naming standards
Inputs: dryRun, convention, targetPath, includeMetadata.
suggest_reorganizationC
Analyze current structure and suggest improvements
Inputs: targetStructure.
update_preferencesC
Update user preferences based on explicit input or learned behavior
Inputs: preferences (required), learningMode.
validate_audiobookshelf_complianceC
Check if library structure follows Audiobookshelf best practices
Inputs: strictMode, targetPath.
validate_naming_rulesC
Check if files follow Audiobookshelf naming conventions
Inputs: relativePath (required).
web_lookup_bookC
Perform web lookups for specific book information
Inputs: query (required), sources, useCache, queryType.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 24 tools
Several clusters of near-duplicate tools exist: intelligent_filename_analysis, smart_entity_recognition, and bulk_filename_enrichment all parse filenames with web lookups; analyze_patterns, smart_suggestions, pattern_insights, and learn_from_action all operate on the same learning/pattern domain; and validate_naming_rules, validate_audiobookshelf_compliance, standardize_audiobookshelf_structure, and suggest_reorganization overlap heavily. An agent would struggle to pick the right tool for 'identify book from filename' or 'check naming'.
All names use snake_case, but verb style is inconsistent: verb-first action names (rename_file, validate_naming_rules) mix with noun-first and adjective-prefixed names (pattern_insights, intelligent_filename_analysis, smart_suggestions, web_lookup_book). The smart_/intelligent_/analyze_ prefixes don't map to a predictable pattern.
24 tools is at the heavy end for what is essentially a file-management/metadata domain, and the count is inflated by redundant learning and validation tools. The core capabilities could be delivered in roughly half the tools without loss of function.
Coverage spans scanning, metadata enrichment, file operations, structure standardization, and MP3/M4B conversion, which is broadly complete for an audiobook library workflow. Gaps remain: no delete/remove file tool, no search/query tool over the library, and no direct read of embedded audio tags.
Maintenance
Related MCP Connectors
AI assistant integration for Leaf β track books, log reading sessions, and manage your library.
Summarize and transcribe videos, audio, documents and web pages; subtitles; search your library.
AI-manageable audio CDN: upload, transcode, normalize, stream & deliver audio, plus grounded docs.
The media memory layer for AI agents and their humans. Your AI client can search your collection, add and log what you've finished, update ratings and lists, and find patterns across everything you've read, watched, played, and listened to.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for Audiobookshelf that lets AI assistants browse libraries and manage listening progress, bookmarks, collections, and playlists.4484 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search, browse, import, and manage a local Calibre ebook library, including duplicate detection and an inbox-based drop folder workflow.11MIT
- FlicenseAqualityCmaintenanceConverts a single-file MP3/M4A audiobook plus its EPUB into a chaptered M4B, using silence-gap detection to find real chapter boundaries, with checkpointed job-based progress, EPUB preview, boundary inspection/waveform review, metadata lookup, and cover fetching/embedding tools for resumable, verifiable audiobook production.15-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to fetch and write ebook metadata, download covers, convert books between formats, and manage an ebook library through command-line tools. Batch operations default to dry-run, so changes can be previewed before being applied.MIT