SOGo MCP Server
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., "@SOGo MCP ServerCheck my unread emails"
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.
SOGo MCP Server
A Model Context Protocol (MCP) server that connects your AI agents (like Codex, Claude) to your SOGo groupware server. It enables your AI assistants to read your emails, check your calendar, and search your contacts.
Features
Email Integration: Read recent unread emails (with full body previews) using IMAP.
Calendar Integration: Check your schedule for today/tomorrow using CalDAV.
Contacts Integration: Search your address book for specific contacts by name or email using CardDAV.
Related MCP server: personal-mail-mcp
Prerequisites
A SOGo account
Python 3.11+
Docker (Optional, for containerized deployment)
Setup Options
You can run this MCP server either Locally (Stdio) or via Docker (SSE).
Option A: Running Locally (Stdio)
This is the most common way to run MCP servers directly connected to local desktop applications like Claude Desktop or Codex.
Clone the repository:
git clone https://github.com/yourusername/sogo-mcp.git cd sogo-mcpInstall dependencies:
pip install -r requirements.txtConfigure your Client: In your client application (e.g. Codex or Claude Desktop), add the server configuration using the absolute path to your
server.pyand your SOGo credentials:{ "mcpServers": { "sogo": { "command": "python", "args": ["/absolute/path/to/sogo-mcp/server.py"], "env": { "SOGO_HOST": "mail.example.com", "SOGO_USER": "your_email@example.com", "SOGO_PASS": "your_password" } } } }
Option B: Running via Docker (SSE / Networked)
If you want to run the server on a remote machine or isolated in a container, you can use Docker Compose, which runs the server over HTTP SSE on port 8000.
Create an environment file: Copy the example config and fill in your details:
cp .env.example .envEdit
.envwith your SOGo credentials. You can also changeMCP_PORTif port 8000 is already in use on your machine.Start the Docker container:
docker compose up --build -dConnect to the Server: Your server is now available via SSE at
http://localhost:8000/sse(or whichever port you set). Connect your client by pointing it to this URL.
Available Tools
Once connected, your AI agent will have access to the following tools:
get_unread_emails: Fetches the most recent unread emails from your SOGo INBOX, including Date, Sender, Subject, and the text body preview.get_todays_schedule: Retrieves today's calendar events (including expanding recurring events) from your SOGo CalDAV calendars.search_contacts: Searches your SOGo CardDAV personal address book for contacts matching a name or email query.
Contributing
Pull requests are welcome! If you encounter any issues with parsing specific SOGo setups, please open an issue.
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseBqualityDmaintenanceA local MCP server that provides LLM clients with read/write access to email and calendar data from Gmail, iCloud, and generic IMAP providers. It runs entirely on your machine, keeping data private while enabling email management, calendar operations, and task handling through natural language.39MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that connects Codex to Microsoft Graph and Gmail for reading and managing personal mail and calendar accounts.MIT
- AlicenseNot gradedqualityFmaintenanceProvider-agnostic CalDAV calendar MCP server that connects any CalDAV calendar to AI assistants, enabling calendar operations like listing, creating, updating, and deleting events.AGPL 3.0
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that connects AI agents to Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, and Slides).302MIT