Skip to main content
Glama

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: productivity-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.

  1. Clone the repository:

    git clone https://github.com/yourusername/sogo-mcp.git
    cd sogo-mcp
  2. Install dependencies:

    pip install -r requirements.txt
  3. Configure your Client: In your client application (e.g. Codex or Claude Desktop), add the server configuration using the absolute path to your server.py and 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.

  1. Create an environment file: Copy the example config and fill in your details:

    cp .env.example .env

    Edit .env with your SOGo credentials. You can also change MCP_PORT if port 8000 is already in use on your machine.

  2. Start the Docker container:

    docker compose up --build -d
  3. Connect 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

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrlemongrass/sogo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server