kobana-mcp-mailbox
v1.0.1
Published
MCP Server for Kobana Mailbox API v2 (mailbox entries, files, email/S3/SFTP/WhatsApp/Syncthing channels)
Maintainers
Readme
Kobana MCP Mailbox Server
MCP (Model Context Protocol) server for the Kobana Mailbox API v2. This server enables AI assistants to manage mailbox entries, files, and communication channels (email, S3, SFTP, WhatsApp, Syncthing).
Features
- Create and manage mailbox entries (caixas postais)
- Upload, list, and manage mailbox files
- Configure and control email channels
- Configure and control S3 channels (AWS Cognito)
- Configure and control SFTP channels
- Configure and control WhatsApp channels
- Configure and control Syncthing channels
- Activate/deactivate channels independently
- Both stdio and HTTP/SSE transports supported
- Bearer token authentication
Installation
npm install kobana-mcp-mailboxOr install globally:
npm install -g kobana-mcp-mailboxConfiguration
Set the following environment variable:
export KOBANA_ACCESS_TOKEN=your_access_token_hereOptionally, customize the API URL:
export KOBANA_API_URL=https://api.kobana.com.brUsage
Stdio Transport (for Claude Desktop, etc.)
kobana-mcp-mailboxHTTP Transport (for web applications)
kobana-mcp-mailbox-httpThe HTTP server will start on port 3001 by default. Customize with:
PORT=3001 HOST=0.0.0.0 kobana-mcp-mailbox-httpClaude Desktop Configuration
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"kobana-mailbox": {
"command": "npx",
"args": ["kobana-mcp-mailbox"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Available Tools
Mailbox Entries
list_mailbox_entries- List all mailbox entries with paginationget_mailbox_entry- Get details of a specific mailbox entrycreate_mailbox_entry- Create a new mailbox entry (document, import_export, or edi_cnab)update_mailbox_entry- Update an existing mailbox entrydelete_mailbox_entry- Delete a mailbox entry
Mailbox Files
list_mailbox_files- List all mailbox files across entriesget_mailbox_file- Get details of a specific filecreate_mailbox_file- Upload a file to a mailbox entry (Base64)update_mailbox_file- Update file metadatadelete_mailbox_file- Delete a file
Email Channel
get_mailbox_email_channel- Get email channel configurationcreate_mailbox_email_channel- Create email channel with inbox/outbox addressesupdate_mailbox_email_channel- Update email channel configurationdelete_mailbox_email_channel- Delete email channel (must deactivate first)activate_mailbox_email_channel- Activate the email channeldeactivate_mailbox_email_channel- Deactivate the email channel
S3 Channel
get_mailbox_s3_channel- Get S3 channel configuration and AWS connection detailscreate_mailbox_s3_channel- Create S3 channel (AWS Cognito credentials auto-generated)delete_mailbox_s3_channel- Delete S3 channel (must deactivate first)activate_mailbox_s3_channel- Activate the S3 channeldeactivate_mailbox_s3_channel- Deactivate the S3 channelupdate_mailbox_s3_credentials- Queue AWS credentials update
SFTP Channel
get_mailbox_sftp_channel- Get SFTP channel configurationcreate_mailbox_sftp_channel- Create SFTP channel with server detailsupdate_mailbox_sftp_channel- Update SFTP username and SSH keydelete_mailbox_sftp_channel- Delete SFTP channel (must deactivate first)activate_mailbox_sftp_channel- Activate the SFTP channeldeactivate_mailbox_sftp_channel- Deactivate the SFTP channelfetch_mailbox_sftp_files- Queue file retrieval from SFTP serverupdate_mailbox_sftp_credentials- Queue SSH credentials update
WhatsApp Channel
get_mailbox_whatsapp_channel- Get WhatsApp channel configurationcreate_mailbox_whatsapp_channel- Create WhatsApp channel with phone numbersupdate_mailbox_whatsapp_channel- Update WhatsApp channel configurationdelete_mailbox_whatsapp_channel- Delete WhatsApp channel (must deactivate first)activate_mailbox_whatsapp_channel- Activate the WhatsApp channeldeactivate_mailbox_whatsapp_channel- Deactivate the WhatsApp channel
Syncthing Channel
get_mailbox_syncthing_channel- Get Syncthing channel configurationcreate_mailbox_syncthing_channel- Create Syncthing channel with device and folder IDsupdate_mailbox_syncthing_channel- Update Syncthing device name and IDdelete_mailbox_syncthing_channel- Delete Syncthing channel (must deactivate first)activate_mailbox_syncthing_channel- Activate the Syncthing channeldeactivate_mailbox_syncthing_channel- Deactivate the Syncthing channelresend_mailbox_syncthing_invites- Queue resending Syncthing invitesupdate_mailbox_syncthing_status- Queue Syncthing server status check
HTTP API Endpoints
When running in HTTP mode:
GET /- Server info and available toolsGET /health- Health checkGET /sse- SSE connection for MCP protocolPOST /messages?sessionId=<id>- Send MCP messages
Authentication
For HTTP mode, you can pass the access token via:
- Environment variable
KOBANA_ACCESS_TOKEN - Authorization header:
Authorization: Bearer <token>
Required OAuth Scopes
When using OAuth authentication, the following scopes are required based on the resources you want to access:
| Resource | Scope |
|----------|-------|
| Mailbox Entries | mailbox.entries |
| Mailbox Files | mailbox.files |
| Email Channel | mailbox.entries |
| S3 Channel | mailbox.entries |
| SFTP Channel | mailbox.entries |
| WhatsApp Channel | mailbox.entries |
| Syncthing Channel | mailbox.entries |
Request only the scopes needed for your use case. For full access to all mailbox features, include all scopes above.
Development
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev
# Start stdio server
npm start
# Start HTTP server
npm run start:httpLicense
MIT
