Skip to main content
Glama

IMAP MCP Server

by non-dirty
INSTALLATION.md2.74 kB
# IMAP MCP Server Installation Guide This document provides detailed instructions for installing and setting up the IMAP MCP Server. ## Prerequisites - Python 3.8 or higher - An IMAP-enabled email account - [uv](https://docs.astral.sh/uv/) - Python package installer (required for installation) - Claude Desktop or another MCP-compatible client ## Installation Steps ### 1. Install the uv tool The MCP server installation requires the uv tool from Astral. Install it according to the official documentation: https://docs.astral.sh/uv/ ### 2. Clone the repository ```bash git clone https://github.com/non-dirty/imap-mcp.git cd imap-mcp ``` ### 3. Install the package and dependencies ```bash pip install -e . ``` For development, install with additional development dependencies: ```bash pip install -e ".[dev]" ``` ### 4. Create a configuration file ```bash cp examples/config.yaml.example config.yaml ``` Edit the `config.yaml` file with your email settings: ```yaml # IMAP server configuration imap: # IMAP server address host: imap.example.com # IMAP port (default: 993 for SSL, 143 for non-SSL) port: 993 # IMAP username (often your email address) username: your.email@example.com # IMAP password (or set IMAP_PASSWORD environment variable) # password: your_password # Use SSL connection (default: true) use_ssl: true # Optional: Restrict access to specific folders # If not specified, all folders will be accessible # allowed_folders: # - INBOX # - Sent # - Archive # - Important ``` For security, it's recommended to use environment variables for sensitive information: ```bash export IMAP_PASSWORD="your_secure_password" ``` ### 5. Running the server #### Basic usage: ```bash python -m imap_mcp.server ``` #### With specific config file: ```bash python -m imap_mcp.server --config /path/to/config.yaml ``` #### For development mode (with inspector): ```bash python -m imap_mcp.server --dev ``` #### For debugging: ```bash python -m imap_mcp.server --debug ``` ## Integrating with Claude Desktop Add the following to your Claude Desktop configuration: ```json { "mcpServers": { "imap": { "command": "python", "args": ["-m", "imap_mcp.server", "--config", "/path/to/config.yaml"], "env": { "IMAP_PASSWORD": "your_secure_password" } } } } ``` ## Troubleshooting If you encounter issues with the installation or running the server: 1. Ensure all prerequisites are installed correctly 2. Verify your IMAP server settings are correct 3. Check that your email provider allows IMAP access 4. For authentication issues, try using an app-specific password if available 5. Enable debug mode (`--debug`) for more detailed logs

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/non-dirty/imap-mcp'

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