kontext

mcp
Security Audit
Pass
Health Pass
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 17 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Self-hosted Google Workspace & Microsoft 365 alternative for small businesses: webmail with shared mailboxes, team calendar, contacts as a mini CRM, tasks, team chat with video calls and Fritzbox telephony (CTI). JMAP web app for Stalwart. GDPR-friendly, no per-user cost, open source (AGPL).

README.md

Kontext – your own alternative to Google Workspace and Microsoft 365

Kontext in motion: every module at a glance, the inbox with a PDF preview, a video call from the laptop to a phone, Word in the browser with comments, and an AI agent that looks up a customer and leaves a draft

Mail, calendar, chat, documents and phone for your team – on your own server, open source

No per-seat pricing. Made in Europe.

CI
Release
Docker Pulls
Platforms
Docs
License: AGPL-3.0
Stalwart 1.1
JMAP
GDPR
Made in Europe
TypeScript
Bun
React
TanStack
Tailwind CSS
Vite
Hono
SQLite
MCP server

Why •
Install •
Features •
Screenshots •
Alternatives •
FAQ •
Documentation •
Deutsch

▶️ Watch the film (2 min) · 🖱️ Try the demo – in your browser, nothing to install

💡 Why Kontext?

Google Workspace and Microsoft 365 are convenient, but every user costs money every month and the
data sits with a US corporation. Kontext is just as convenient in the browser and on the phone, but
runs on your server: a small VPS from about €5 a month (e.g. at IONOS or Hetzner) or a machine
of your own.

  • Your data stays with you: mails, appointments, contacts, chat and calls live on your server,
    in Europe or in your own office. No US provider in between, no trackers.
  • No per-seat pricing: ten people cost the same as one; you pay for the server.
  • Everything about a customer in one place: their latest mails, next appointments, open tasks
    and calls – a small CRM without another tool.
  • One app instead of five: mail, calendar, tasks, team chat with video calls, the office phone
    and documents, with one sign-in.
  • Built for the phone and the keyboard: every view works on the phone and without a mouse, and
    it installs as an app without an app store.
  • AI if you want it: Claude and other assistants find customers, mails and appointments for you
    and write drafts – they never send or delete anything.
  • Open, no lock-in: open source (AGPL) and standard protocols, so Outlook, Thunderbird, iPhone
    and Android keep working and you can take everything with you.

🚀 Install

You need a server with Docker or Podman, your own domain and open ports for mail and web (25, 80,
443, 465, 587, 993). Ten users run fine on a VPS with 2 vCPUs and 4 GB RAM.

With an agent: give Claude Code or another coding agent this repository and SSH access to your
server and say: "Set up Kontext on my server following the
installation guide."

By hand:

git clone https://github.com/Speicherstadt/kontext /opt/kontext && cd /opt/kontext
cp deploy/.env.example deploy/.env && chmod 600 deploy/.env
nano deploy/.env                              # domain, version, backup target, replace every change-me
docker compose -f deploy/compose.yaml up -d   # pulls Kontext, Stalwart and Caddy and starts them

Then set up Stalwart (domain, DKIM, the boss's account) and register Kontext there with one
command. These steps, DNS, telephony, backups and updates are in the
installation guide; for a fresh server see
setting up a VPS.

✨ Features

In short per area; the details are on the linked page of the documentation.

Area What Kontext does
✉️ Mail Shared mailboxes like info@, assigning mails, deputies, rules and categories, search inside attachments, masked addresses
📅 Calendar Team calendar, invitations answered with one click, "who is free?", a video meeting per event
👥 Contacts The customer at a glance: latest mails, next appointments, open tasks and calls
✅ Tasks List or Kanban board per mailbox, from a mail, a chat message, an appointment or a missed call
💬 Team chat & video Channels and direct messages, mails as cards, video calls and screen sharing on your own server
📞 Telephony (CTI) Your Fritzbox and numbers stay, calls ring with the caller's contact, click to call
🔐 Encryption OpenPGP and S/MIME, send confidentially to anyone, encrypted storage and backups
📄 Documents Word, Excel, PowerPoint and PDF in the browser with Schreibzeug
🤖 AI agents (MCP) Claude and other agents look things up with your rights and write drafts
🏢 Company admin People, mailboxes and rights without IT skills, company signature, moving in from Microsoft 365 and Gmail
📱 On every device An app without an app store, push notifications, passkeys, light and dark
♿ Accessibility Everything by keyboard, checked against WCAG 2.2 AA on every push

📸 Screenshots

Shared mailbox info@ in Kontext: a customer enquiry about a heat pump with the category In progress
Shared mailbox – info@ for the whole team
Contact Markus Hoffmann with upcoming appointments and latest mails, like a small CRM
Contacts – the customer at a glance
Team calendar week view with site meeting, maintenance appointment and month overview
Calendar – week, month, availability
Kanban board of the shared mailbox info@ with Open, In progress, Waiting and Done
Tasks – a Kanban board per mailbox
Team chat channel with a site report, a shared customer mail as a card and a task made from a message
Team chat – mails as cards, tasks from messages
CTI in Kontext: an incoming call from the Fritzbox rings in the browser with the caller's contact, company, number and last mail
Telephony – the caller with their last mail

Kontext on the phone: inbox with tab bar Reading a mail on the phone Calendar day view on the phone Team chat on the phone with bubbles, a file and a mail card

More pictures, made to send to customers, in the tour.

🔀 Kontext and the alternatives

What it is How Kontext differs
Google Workspace, Microsoft 365 mail, calendar and office as a per-user subscription your own server, no per-seat cost, chat and phone included
Nextcloud self-hosted files with mail and calendar as apps built around mail and the customer, with shared mailboxes and the office phone
Roundcube, SOGo proven webmail clients for IMAP modern interface built for the phone, customer view, tasks and chat
Zimbra, Open-Xchange groupware for providers and larger companies one small server per company, set up in an afternoon
3CX, Placetel phone systems with CTI apps keeps your Fritzbox and numbers, no licence per extension

❓ FAQ

Who is Kontext for?

For small businesses that want Google Workspace comfort on their own server: freelancers, trades,
law firms and medical practices, small and mid-sized businesses. And for self-hosters looking for a
web interface for the Stalwart mail server: Kontext is a JMAP client for mail,
calendar and contacts on Stalwart, see the architecture.

What does it cost?

The software is free (AGPL). You need a server – a VPS from about €5 a month – and someone who
sets it up and keeps it updated.

Stalwart Community or Enterprise?

Kontext runs fully on Stalwart's free Community edition. An Enterprise license adds a few things,
such as restoring deleted mails and sign-in with the company account (SSO), see
Stalwart Enterprise.

Does Kontext work with my Fritzbox (CTI)?

Yes. A telephone box in the office registers as an IP phone at the Fritzbox; calls then ring in
Kontext with the caller's contact and last mail. See Telephony.

Can it run on my own PC or NAS?

Yes, wherever Docker or Podman runs. To receive mail from the internet the machine needs port 25
reachable from outside, a fixed IP address and a reverse DNS entry; home internet connections
usually block port 25. A small VPS is simpler.

Does Kontext help with the GDPR?

Yes, with what software can do: the data stays on your server, without trackers or third parties.
The GDPR itself is up to your company, for example the data processing agreement with your hosting
provider and the record of processing activities.

Do iPhone, Android, Outlook and Thunderbird keep working?

Yes. Stalwart speaks IMAP, SMTP, CalDAV and CardDAV; every mail program and phone can connect
directly. Kontext is the browser interface on top.

Can I move from Gmail, Microsoft 365 or Outlook?

Yes: IMAP mailboxes, Microsoft 365, Outlook as a PST file, and contacts and calendars from a Google
export. You can also keep using an existing Gmail address. See
Company admin and moving in.

Can I use Claude or other AI agents with my mail?

Yes, over MCP: Claude and other agents look things up with your rights, write drafts and invite
colleagues to appointments; they never mail anyone outside or delete anything. See
AI agents.

Which languages?

German and English, per device. Other European languages are planned.

Is it secure?

We check automatically, and you can too: the code is open. There has been no independent audit so far.

  • Checked automatically: with Cloudflare's Security Audit Skill and
    Claude Code's /security-review. Feel free to let your agent run them on this repository itself.
  • Secured: the browser holds only an httpOnly cookie, the Stalwart tokens are stored encrypted on
    the server; Stalwart's storage is encrypted, backups go encrypted and immutable (Object Lock) to S3
    storage; a mail loads images from the internet only when asked to; AI agents never send anything
    out and never delete.
  • Kept up to date: Renovate brings dependency updates as pull requests through CI; known
    vulnerabilities (Dependabot alerts and the OSV database) it fixes outside the schedule, see
    SECURITY.md.
  • Open to everyone: anyone can read the code and report vulnerabilities, please privately as
    described in SECURITY.md.
Is Kontext developed with AI?

Yes, largely with coding agents, but not unchecked: every change comes with tests (unit tests and
Playwright on desktop and phone), and CI runs them against a real Stalwart. How it is built and
tested: Development.

📚 Documentation

Everything in detail, with search: kontext.email (Deutsch).
Every feature above links its page; besides:

🛠️ Development

Needs Bun 1.4 and Linux or macOS (Windows through WSL).

git clone https://github.com/Speicherstadt/kontext && cd kontext
bun install
bun run dev   # Stalwart with test data, server and app: http://localhost:5173

Sign in as [email protected] / kaffee-werkbank-kontext (the boss, sees the company
admin too); anna@, sandra@ and max@ share the password. Structure, tests and releases:
Development.

🧩 More from us

  • Word, Excel and PowerPoint without Microsoft 365? Schreibzeug edits them in the browser and keeps them as .docx, .xlsx and .pptx.
  • Doing your own books in Germany? Haben: invoices with e-invoicing, receipts, bank reconciliation and VAT returns via ELSTER.

🤝 Contributing

Bugs and ideas are welcome as issues, through the bug report form.
Security problems please report privately, see SECURITY.md. What to run before a pull
request is in CONTRIBUTING.md.


⭐ Like Kontext? A star on GitHub helps others find it.

🐛 Report a bug · 💡 Request a feature

License: AGPL-3.0 · © Tristan Teufel and contributors · Deutsche Version

Changed versions you pass on or run for others must offer their source code under the AGPL; a commercial license without these obligations is available via teufel-it.de.

Kontext is no legal advice: data protection and retention duties are up to the company, the software helps with them.

Kontext is not affiliated with Stalwart Labs, AVM (FRITZ!Box), Snom, Google, Microsoft or Anthropic.

Reviews (0)

No results found