Skip to content

Claude Desktop Configuration

This guide walks you through configuring Claude Desktop to connect with your MoMail data via MCP.

  • Claude Desktop installed (version 1.0.0 or later)
  • A MoMail account with an API key
  • Your API key (starts with mk_)

Claude Desktop stores its MCP configuration in a JSON file. The location depends on your operating system:

OSConfig Path
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%/Claude/claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

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"
}
}
}
}
{
"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"]
}
}
}

After saving the configuration file:

  1. Quit Claude Desktop completely
  2. Restart the application
  3. Look for the MoMail tools in the tool picker (hammer icon)

Start a new conversation and ask Claude:

“List my mailboxes”

If configured correctly, Claude will:

  1. Show a tool use indicator
  2. Call the list_mailboxes tool
  3. Display your mailboxes

Make sure Claude Desktop is updated to version 1.0.0 or later. StreamableHTTP support was added in this version.

  • Verify your API key is correct
  • Ensure the key is active in your MoMail dashboard
  • Check that the x-api-key header is lowercase in the config
  • 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
  • Check your internet connection
  • Verify mcp.momail.io is accessible
  • Try restarting Claude Desktop

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:

Terminal window
export MOMAIL_API_KEY=mk_a1b2c3d4_e5f6g7h8i9j0k1l2m3n4o5p6

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"
}
}
}
}
FieldRequiredDescription
transportYesMust be streamableHttp
urlYesMCP endpoint URL
headers.x-api-keyYesYour MoMail API key

Now that Claude Desktop is configured: