Keila MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Keila MCP Servercreate a new email campaign for our product launch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Keila MCP Server
This repository contains a Model Context Protocol (MCP) server that acts as a secure, multi-tenant proxy between an AI Assistant and the Keila backend API. It exposes 34 MCP tools covering 6 resource domains with full CRUD, transactional messaging, and system operations.
โจ Features
๐ Identity Passthrough โ Extracts the
Authorization: Bearer <token>header from incoming HTTP requests and forwards it to the Keila API without server-side authentication.๐ฅ Multi-Tenancy โ Uses Python
contextvarsto maintain thread-safe user identity isolation, ensuring all AI-driven actions are scoped to the authenticated user's permissions.๐ Full Keila Coverage โ 34 tools mapped to Keila REST API endpoints across 6 resource domains.
โก TOON Optimization โ Bulk list responses are automatically compressed using TOON (Token-Optimized Object Notation) to reduce token consumption and maximize context window efficiency.
๐ Efficient Gets โ GET responses return only commonly used fields by default. Full objects are available via an
include_all_fieldsflag.๐งช Comprehensive Testing โ 75 automated tests covering all tool domains, run via the test runner pipeline.
Related MCP server: keila-mcp
๐ง Environment Variables
Variable | Required | Description |
| Yes | Docker-internal URL of the Keila API (e.g. |
| Yes | Port number the MCP server listens on |
| No | When |
| No | When |
๐ฆ Installation & Local Development
Ensure you have Python 3.12+ installed.
Install dependencies:
pip install fastmcp httpx pydantic uvicorn toon-mcp-serverRun the server:
export KEILA_BASE_URL=http://keila-app:4000 export MCP_SERVER_PORT=80 python -m src.main
๐ณ Docker Deployment
Build and run the server using Docker:
docker build -t keila-mcp:latest .
docker run -d --name keila-mcp \
-e KEILA_BASE_URL="http://keila-app:4000" \
-e MCP_SERVER_PORT=80 \
-e ALLOW_ALL_AGGREGATE=false \
keila-mcp:latestThe MCP server serves at http://keila-mcp:80/mcp (Streamable HTTP).
โ ๏ธ Important Notes
๐
include_all_fieldsโ Theinclude_all_fieldsparameter (available on allget_*andlist_*tools) controls whether all available fields are included in responses. Defaults toFalsefor performance; set toTrueonly when additional fields are needed.๐
ALLOW_ALL_AGGREGATEโ Controls whether aggregate listing tools respect theinclude_all_fieldsparameter. When set tofalse(default), all aggregate list operations silently return only default fields regardless of the caller's request.โก TOON Compression โ All bulk list responses are automatically compressed using TOON to reduce token consumption by 30โ60%.
๐ Required Fields & Defaults โ Each
create_*tool requires specific key fields. All other fields default to empty strings or reasonable values.
๐ ๏ธ API Tool Mapping
The server implements 34 MCP tools organized into the following categories:
๐ง Campaigns (7 tools)
list_all_campaignsโ List all campaign recordsget_campaign_by_idโ Get a single campaign by IDcreate_campaignโ Create a new campaignupdate_campaignโ Update an existing campaigndelete_campaign_by_idโ Delete a campaign by IDsend_campaignโ Queue a campaign for immediate deliveryschedule_campaignโ Schedule a campaign for future delivery
๐ฏ Segments (5 tools)
list_all_segmentsโ List all segment recordsget_segment_by_idโ Get a single segment by IDcreate_segmentโ Create a new segmentupdate_segmentโ Update an existing segmentdelete_segment_by_idโ Delete a segment by ID
๐ฅ Contacts (7 tools)
list_all_contactsโ List all contact recordsget_contact_by_idโ Get a single contact by ID, email, or external IDcreate_contactโ Create a new contactupdate_contactโ Update an existing contactdelete_contact_by_idโ Delete a contact by ID, email, or external IDupdate_contact_dataโ Shallow-merge custom data fields on a contactreplace_contact_dataโ Replace all custom data fields on a contact
๐ Forms (6 tools)
list_all_formsโ List all form recordsget_form_by_idโ Get a single form by IDcreate_formโ Create a new formupdate_formโ Update an existing formdelete_form_by_idโ Delete a form by IDsubmit_formโ Submit a form to create or update a contact
๐ Templates (5 tools)
list_all_templatesโ List all template recordsget_template_by_idโ Get a single template by IDcreate_templateโ Create a new templateupdate_templateโ Update an existing templatedelete_template_by_idโ Delete a template by ID
๐ ๏ธ Senders, Transactional Messages & System Tools (4 tools)
list_all_sendersโ List all sender recordssend_transactional_messageโ Send a transactional messagerender_transactional_messageโ Render a transactional message without sending itcheck_server_statusโ Check connectivity to the Keila backend
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for Microsoft Outlook via Graph API. 20 consolidated tools for email, calendar, contacts, folders, rules, categories, and settings with safety controls (dry-run preview, rate limiting, recipient allowlists) and MCP annotations on every tool.Last updated2228231MIT
- Flicense-qualityDmaintenanceComprehensive MCP server for the Mautic marketing automation API, providing 203 tools for managing contacts, campaigns, emails, segments, and more.Last updated2
- Alicense-qualityCmaintenanceMCP server for Mailtarget that exposes tools to discover and call management API endpoints and send transactional emails via the Transmission API.Last updated10MIT
Related MCP Connectors
34 production API tools over one hosted MCP endpoint.
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors โ no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/homeserverhq/keila-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server