Stefan LohmaierandClaude Opus 4.8 4d198017df feat: Office-Extraktion (docx/xlsx/pptx) fuer files-, mail- und notes-MCP
officeutil.py (analog pdfutil): server-seitige Text-Extraktion, damit das
LLM Inhalte als Text bekommt statt Base64-Blob. Verkabelt in files.read_file,
mail.read_attachment (und notes.read_resource, bereits in e34711d).
Aeltere Binaerformate (.doc/.xls/.ppt) und .rtf bewusst nicht behandelt --
is_office() False -> Fallback auf Rohdaten. requirements-extra: python-pptx.

War bereits deployed und lief (FileTypes-Tests 14 passed), lag aber
uncommittet im Arbeitsverzeichnis; ohne officeutil.py waere ein frischer
Clone seit e34711d kaputt gewesen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XhHNJKk3RsHgUsJ27WQSom
2026-07-21 09:32:26 +02:00

mcp-home

Self-hosted MCP servers for Claude. Gives Claude access to your email, calendar, contacts, files, and notes — all running on your own hardware, behind OAuth.

Services & Tools

  • Maillist_accounts, list_folders, search_mail (full text), read_mail (lists attachments), read_attachment (image/PDF/text), create_draft
  • Calendar + Taskslist_calendars, get_events, search_events, list_task_lists, get_tasks, create_event (travel time + geocoding + reminders), create_task
  • Contactssearch_contacts, get_contact (with photo), create_contact, set_contact_photo
  • Fileslist_files, read_file (image/document/text), file_info, search_files, write_file, create_folder, delete_file, move_file
  • Noteslist_notebooks, list_notes, search_notes, read_note, create_note, list_note_resources, read_resource (attachments)

Setup

python3 -m venv venv
venv/bin/pip install mcp[cli] httpx vobject python-dateutil pytest
cp tokens.json.example tokens.json      # set OAuth client secrets
cp config.json.example config.json      # set backend credentials

Notes needs joplin-cli sync clients exposing the Data API (see /opt/joplin-mcp/).

Usage with claude.ai

Settings → Integrations → Custom MCP Server:

  • URL: https://<service>.mcp.your-domain/mcp (mail, calendar, contacts, files, notes)
  • OAuth Client ID: your username (e.g. stefan)
  • OAuth Client Secret: from tokens.json

claude.ai runs the OAuth Authorization Code + PKCE flow automatically.

Tests

venv/bin/python -m pytest tests/test_all.py -v

54 integration tests (OAuth, all tools, CRUD in isolated test collections). Run daily via mcp-tests.timer.

License

MIT

S
Description
Self-hosted MCP servers for Claude — Mail, Calendar, Contacts, Files, Notes via CalDAV/CardDAV/WebDAV/IMAP
Readme
526 KiB
Languages
Python 98.4%
Shell 1.6%