pim-mcp
Read mail and manage calendars on your own IMAP and CalDAV servers, with read-only mode
pim-mcp is an open-source MCP server for productivity. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- macOS, Linux, Windows
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Access
- Needs a secret key or token
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add pim-mcp --env PIM_MCP_PASSWORD='<PIM_MCP_PASSWORD>' -- docker run -i --rm -e PIM_MCP_PASSWORD ghcr.io/robinvdvleuten/pim-mcp:v0.1.0Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"pim-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIM_MCP_PASSWORD",
"ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"
],
"env": {
"PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"pim-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIM_MCP_PASSWORD",
"ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"
],
"env": {
"PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"pim-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIM_MCP_PASSWORD",
"ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"
],
"env": {
"PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"pim-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIM_MCP_PASSWORD",
"ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"
],
"env": {
"PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add pim-mcp --env PIM_MCP_PASSWORD='<PIM_MCP_PASSWORD>' -- docker run -i --rm -e PIM_MCP_PASSWORD ghcr.io/robinvdvleuten/pim-mcp:v0.1.0Or add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.pim-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"]
env = { PIM_MCP_PASSWORD = "<PIM_MCP_PASSWORD>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"pim-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIM_MCP_PASSWORD",
"ghcr.io/robinvdvleuten/pim-mcp:v0.1.0"
],
"env": {
"PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Or run: gemini mcp add -s user -e PIM_MCP_PASSWORD='<PIM_MCP_PASSWORD>' pim-mcp docker -- run -i --rm -e PIM_MCP_PASSWORD ghcr.io/robinvdvleuten/pim-mcp:v0.1.0
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "pim-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PIM_MCP_PASSWORD", "ghcr.io/robinvdvleuten/pim-mcp:v0.1.0" ], "env": { "PIM_MCP_PASSWORD": "<PIM_MCP_PASSWORD>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
PIM_MCP_PASSWORDThe account password. A container has no keychain, so this is needed. Only works with a single account.RequiredPIM_MCP_READ_ONLYSet to 1 to remove every tool that can change something.
About pim-mcp
pim-mcp is built on the assumption that agents make mistakes and that invitations come from strangers. Mail can never be changed: no tool sends, moves, flags or deletes a message, and reading leaves it unread. Calendar writes are conditional on the version the agent read, so a stale write fails instead of overwriting an edit you just made on your phone.
Its signature move is email to calendar. An agent finds an invite with mail_search, previews what importing it would do, then imports it with recurrence and time zones intact; importing twice changes nothing and a newer invite updates the event. Setup needs only an email address and password, and the server discovers IMAP and CalDAV endpoints itself, asking before the password goes anywhere. Passwords live in the OS keychain, and certificates are always verified.
It is a single Go binary of about 16 MB, installed with Homebrew, release archives, packages or Docker. Tests ran against Dovecot, Radicale, Baikal and Nextcloud. The README calls it early days and recommends starting with --read-only.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 12 tools deletes data and 2 change data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- account_info
- Show an account, its servers and your time zone
- mail_list_foldersName suggests: reads
- List mail folders and their roles
- mail_searchName suggests: reads
- Search a folder by sender, subject, text, date or invite
- mail_getName suggests: reads
- Read a message
- calendar_list_calendarsName suggests: reads
- List calendars
- calendar_list_eventsName suggests: reads
- List events in a range with recurring events expanded
- calendar_free_busy
- Find when you are busy
- calendar_preview_importName suggests: reads
- Show what importing an invite would do
- calendar_create_eventName suggests: changes
- Create an event, optionally recurring
- calendar_update_eventName suggests: changes
- Change an event or one occurrence
- calendar_delete_eventName suggests: deletes
- Delete an event or one occurrence
- calendar_import_from_email
- Add, update or cancel an event from an invite
What it does
- Email to calendar
- Preview and import an invite from a message, repeat-safe.
- Safe writes
- Each calendar change is conditional on the version read.
- Read-only mode
- The --read-only flag removes every tool that can change something.
- Keychain password
- Stored in the OS keychain, never in config or logs.
- Multiple accounts
- Add more than one account, with the first as default.
- Self-hosted friendly
- Tested against Dovecot, Radicale, Baikal and Nextcloud.
Good for
- Add a meeting from an email to your calendar
- Ask what is on your calendar next week
- Find a free slot across your calendars
- Search mail by sender or invite without touching it
- Give an assistant calendar access while mail stays untouchable
Pricing
Open source
pim-mcp FAQ
Can pim-mcp send or delete my email?
No. No tool sends, moves, flags or deletes mail, and reading leaves it unread.
Where is my password stored?
In your OS keychain; in Docker it comes from the PIM_MCP_PASSWORD variable and supports a single account.
How do I install pim-mcp?
Via Homebrew, release archives, deb, rpm or apk packages, Docker, or go install.
Is pim-mcp production-ready?
The README says it is early days, and reading has been tried on one real provider, so start with --read-only.
Is pim-mcp free?
Yes. pim-mcp is open source, so you can use and self-host it for free.
How do I add pim-mcp to Claude Code?
Run this command in your terminal: claude mcp add pim-mcp --env PIM_MCP_PASSWORD='<PIM_MCP_PASSWORD>' -- docker run -i --rm -e PIM_MCP_PASSWORD ghcr.io/robinvdvleuten/pim-mcp:v0.1.0
What are the best alternatives to pim-mcp?
The closest alternatives to pim-mcp are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

