Elastic Email MCP Gateway for AI Agents
Expose Elastic Email tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
6 functions 4 read 2 write API key auth
Elastic Email MCP Gateway
Expose Elastic Email to MCP clients with `kosmokrator mcp:serve --integration=elastic-email`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=elastic-email --write=deny --json {
"mcpServers": {
"kosmokrator-elastic-email": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=elastic-email",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=elastic-email --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__elastic_email__elasticemail_send_email | elastic-email.elasticemail_send_email | Write write |
integration__elastic_email__elasticemail_list_templates | elastic-email.elasticemail_list_templates | Read read |
integration__elastic_email__elasticemail_get_template | elastic-email.elasticemail_get_template | Read read |
integration__elastic_email__elasticemail_list_contacts | elastic-email.elasticemail_list_contacts | Read read |
integration__elastic_email__elasticemail_create_contact | elastic-email.elasticemail_create_contact | Write write |
integration__elastic_email__elasticemail_get_current_user | elastic-email.elasticemail_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.