epost-mcp

epost-mcp

Enables listing and downloading scanned letters from the Swiss ePost digital letterbox through browser automation, requiring manual SwissID login for session establishment.

Category
Visit Server

README

epost-mcp

MCP server for the Swiss ePost digital letterbox (app.epost.ch) — list and download your scanned letters (Scanning-Service) from any MCP client.

ePost has no public retrieval API for private customers (the public APIs cover sending only). This server therefore drives the web portal with Playwright browser automation. It is inherently fragile: portal updates can break it, and it depends on your interactive SwissID login.

How it works

  • A persistent Chromium profile (~/.epost-mcp/profile) keeps the SwissID/ePost session between runs.
  • When the session has expired, the epost_login tool opens a visible browser window; you complete the SwissID login (incl. 2FA) yourself. Everything else runs headless.
  • Downloads go through the portal's own download button — no undocumented token endpoints.

Tools

Tool Purpose
epost_status ok or login_required
epost_login opens a visible window for the SwissID login (waits up to 8 min)
epost_list_letters index, sender, title, dates of every letter in the letterbox
epost_download_letter download one letter (index, output_dir)
epost_download_all download everything to output_dir

Install

git clone git@github.com:sapn95/epost-mcp.git
cd epost-mcp
npm install
npx playwright install chromium   # skip if a playwright chromium is already cached

Register with your MCP client, e.g. Claude Code:

claude mcp add --scope user epost -- node /path/to/epost-mcp/index.js

Env

Variable Default Purpose
EPOST_PROFILE ~/.epost-mcp/profile browser profile dir (holds the session — treat as secret)
EPOST_CHROMIUM auto-detect chromium executable override

Caveats

  • Private use for your own letterbox. Respect ePost's terms of service.
  • The profile directory contains live session cookies — never commit or share it.
  • JSF component ids in the portal are unstable; selectors use CSS classes and labels with fallbacks, but expect occasional breakage after ePost releases.
  • SwissID uses session cookies, so a session does not always survive a browser restart — expect to run epost_login at the start of a session. Within one running server instance the session stays warm across calls.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured