Mailoo exposes agent tools over the Model Context Protocol using remote Streamable HTTP. Your MCP host authenticates with a personal MCP agent token. Actions run as the token owner and never exceed that user's project membership (OWNER or EDITOR, plus optional integration-scoped editors).
Endpoint
- Production:
https://mcp.mailoo.app/mcp
There is no stdio mode. The MCP path does not use project X-API-Key keys and does not use your Keycloak / Auth.js session cookie.
Create an agent token
- Sign in to the dashboard.
- Open Profile → Security → MCP tokens.
- Create a token with a name. The full secret (
mai_mcp_…) is shown once---store it securely. Mailoo keeps only a hash at rest. - Revoke a token from the same page when it is no longer needed.
Connect your MCP host
Example Cursor configuration (replace the token secret):
{
"mcpServers": {
"mailoo": {
"url": "https://mcp.mailoo.app/mcp",
"headers": {
"Authorization": "Bearer mai_mcp_your-token"
}
}
}
}
Security model
- Impersonation --- tools act as the owning user.
- Ceiling --- access cannot exceed
project_members(OWNER | EDITOR) and optionalintegration_members. There is no silent role upgrade. - Not an API key --- project API keys use the canonical owner model and optional RESTRICTED operations. MCP resolves membership separately.
- Secrets --- GET responses are sanitized (flags such as
hasSecret); raw SMTP or social tokens are not returned to tools.
Tools
Current tools include:
list_projects/create_projectget_activity_digest--- counts of recent messages, articles, and chat sessions (not a content list)list_integrations(optionaltype) /list_blog_integrationscreate_integration--- any type (FORM,CONTACT_FORM,JSBOX,BLOG,MARKET,SOCIAL); OWNER onlycreate_api_key--- OWNER only; plaintext key once; default RESTRICTED with requiredallowedOperationslist_api_keys/delete_api_key--- OWNER only; the list shows a masked key. Delete byidfrom that list.manage_blog_integration_settings--- sanitized Connection & settingsmanage_jsbox_integration_settings--- JSBOX widget settings + lifetime message/session counts (no session list or message bodies). Agent prompts (instructions,kbDigestPrompt,kbArticlePrompt) and knowledge-base files (upload_kb_file/delete_kb_file) live on the same tool.manage_blog_taxonomy--- classifiers and SEO wordsmanage_market_types--- MARKET product types and type attributesmanage_market_orders--- MARKET orders & quote requests (admin list/status)manage_market_catalog_csv--- catalog CSV export / preview / applymanage_market_wholesale_price_list--- wholesale price-list exportmanage_market_suppliers--- suppliers, products, price listsmanage_offer_generators--- offer generator admin + mail settingsmanage_market_integration_settings--- MARKET Connection & settings (Mail, IndexNow, priceList, contactsSource, marketQuote)manage_market_tags--- MARKET catalog tags (list/create/update/delete, locales)manage_market_units--- MARKET units, packagings, and packaging equivalencesmanage_market_prices--- MARKET price kinds, price lists, and product pricesmanage_market_products--- MARKET products, variants, and media attachlist_blog_articles/get_blog_articlecreate_blog_article/update_blog_article/delete_blog_articlemanage_blog_media--- list, upload, delete images; search and import Unsplash/Pexels when keys are set; resize a library image to a new file;readowned bytes as base64 for a local file
Typical flow: create or list a project → create a BLOG integration → optional API key for your host app → taxonomy and settings → upload or import media → create articles.
Images, stock photos, and resize
Unsplash and Pexels keys live on the Blog integration under Connection & settings. An agent can write them with manage_blog_integration_settings. Reads return only flags (hasUnsplashAccessKey / hasPexelsApiKey), never the keys themselves.
When a provider flag is true, manage_blog_media search_stock and import_stock use that integration's keys. An imported photo is an ordinary library file: set it as a cover (ogImageMediaId) or embed it in Markdown. When the flag is false, that provider cannot be searched; you can still upload your own files to the same library.
Do not HTTP GET embedUrl / imagePublicEmbedBaseUrl (needs X-API-Key + image.external-read; MCP Bearer does not work there) and do not download stock downloadUrl / previewUrl after import. For a local repo file, call manage_blog_media read. Prefer scope=INTEGRATION for blog photos.
derive creates a new library image (smaller or re-encoded). Use the new id in the article. The original stays.
Access is the same as the token owner: project editor or higher.
Prerequisites for blog create
create_blog_article needs at least one author profile for the token owner (Dashboard → Blog → Authors), unless you pass authorProfileId.
Related
configure-chat-mcp{.interpreted-text role="doc"} --- agent skill: minimum rules for JSBOX settings via MCPblog-headless-cms{.interpreted-text role="doc"} --- blog API and classifiersimages{.interpreted-text role="doc"} --- media library, stock import, and resizenextjs-packages{.interpreted-text role="doc"} --- host app packages that use API keys- OpenAPI at
https://api.mailoo.app/docs/v1