Claude Desktop Configuration
This guide walks you through configuring Claude Desktop to connect with your MoMail data via MCP.
Prerequisites
Section titled “Prerequisites”- Claude Desktop installed (version 1.0.0 or later)
- A MoMail account with an API key
- Your API key (starts with
mk_)
Step 1: Locate Configuration File
Section titled “Step 1: Locate Configuration File”Claude Desktop stores its MCP configuration in a JSON file. The location depends on your operating system:
| OS | Config Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Step 2: Edit Configuration
Section titled “Step 2: Edit Configuration”Add MoMail to your MCP servers configuration using StreamableHTTP transport:
{ "mcpServers": { "momail": { "transport": "streamableHttp", "url": "https://mcp.momail.io/mcp", "headers": { "x-api-key": "mk_your_api_key_here" } } }}Complete Example Configuration
Section titled “Complete Example Configuration”{ "mcpServers": { "momail": { "transport": "streamableHttp", "url": "https://mcp.momail.io/mcp", "headers": { "x-api-key": "mk_a1b2c3d4_e5f6g7h8i9j0k1l2m3n4o5p6" } }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/files"] } }}Step 3: Restart Claude Desktop
Section titled “Step 3: Restart Claude Desktop”After saving the configuration file:
- Quit Claude Desktop completely
- Restart the application
- Look for the MoMail tools in the tool picker (hammer icon)
Step 4: Verify Connection
Section titled “Step 4: Verify Connection”Start a new conversation and ask Claude:
“List my mailboxes”
If configured correctly, Claude will:
- Show a tool use indicator
- Call the
list_mailboxestool - Display your mailboxes
Troubleshooting
Section titled “Troubleshooting””Transport not supported” Error
Section titled “”Transport not supported” Error”Make sure Claude Desktop is updated to version 1.0.0 or later. StreamableHTTP support was added in this version.
”Unauthorized” Error
Section titled “”Unauthorized” Error”- Verify your API key is correct
- Ensure the key is active in your MoMail dashboard
- Check that the
x-api-keyheader is lowercase in the config
Tools Not Appearing
Section titled “Tools Not Appearing”- Check the Claude Desktop logs for errors
- Verify the JSON syntax in your config file
- Ensure the URL is correct:
https://mcp.momail.io/mcp
Connection Timeout
Section titled “Connection Timeout”- Check your internet connection
- Verify
mcp.momail.iois accessible - Try restarting Claude Desktop
Advanced Configuration
Section titled “Advanced Configuration”Using Environment Variables
Section titled “Using Environment Variables”For better security, you can use environment variables in your configuration:
{ "mcpServers": { "momail": { "transport": "streamableHttp", "url": "https://mcp.momail.io/mcp", "headers": { "x-api-key": "${MOMAIL_API_KEY}" } } }}Set the environment variable before starting Claude Desktop:
export MOMAIL_API_KEY=mk_a1b2c3d4_e5f6g7h8i9j0k1l2m3n4o5p6Multiple MoMail Accounts
Section titled “Multiple MoMail Accounts”You can configure multiple MoMail accounts by using different server names:
{ "mcpServers": { "momail-personal": { "transport": "streamableHttp", "url": "https://mcp.momail.io/mcp", "headers": { "x-api-key": "mk_personal_key_here" } }, "momail-work": { "transport": "streamableHttp", "url": "https://mcp.momail.io/mcp", "headers": { "x-api-key": "mk_work_key_here" } } }}Configuration Reference
Section titled “Configuration Reference”| Field | Required | Description |
|---|---|---|
transport | Yes | Must be streamableHttp |
url | Yes | MCP endpoint URL |
headers.x-api-key | Yes | Your MoMail API key |
Next Steps
Section titled “Next Steps”Now that Claude Desktop is configured: