Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCP server that gives AI agents access to Telegram, Gmail, WhatsApp, Slack, and Discord. Pure Rust, 48 tools, single binary.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Chat, email & messaging.
A Node.js application for managing email workflows using the ModelContextProtocol (MCP).
Same catalog task: Chat, email & messaging.
A Node.js application for summarizing emails using the ModelContextProtocol (MCP).
Same catalog task: Chat, email & messaging.
MCP server for interacting with Slack
Fetched from the repository for this visit.
MCP server that gives AI agents access to messaging platforms. One binary, five platforms.
Telegram · Gmail · WhatsApp · Slack · Discord
Nexus implements the Model Context Protocol (MCP) over stdio, exposing 48 tools that let AI agents read, send, search, and manage messages across platforms through a unified interface.
Built in pure Rust. No MCP SDK dependencies — hand-rolled JSON-RPC 2.0. Single binary, ~4MB release.
AI agents need to communicate. They need to read your Telegram messages, send emails, search Slack history, and manage Discord channels — but each platform has its own API, auth flow, and data model.
Nexus unifies all of this behind MCP. Connect it to Claude Code, Claude Desktop, or any MCP client, and your agent gets instant access to your messaging world.
What agents can do with Nexus:
From source:
git clone https://github.com/santoshakil/nexus.git
cd nexus
cargo build --release
cp target/release/nexus ~/.local/bin/
Prerequisites:
libtdjson.so) — only needed for Telegram support. See TDLib build instructions.Copy the example env file and fill in the platforms you want:
cp .env.example .env
You only need to configure the platforms you'll use. Nexus silently skips unconfigured platforms.
# Telegram (get from https://my.telegram.org)
TELEGRAM_API_ID=12345678
TELEGRAM_API_HASH=abcdef1234567890abcdef1234567890
# Gmail (generate App Password at https://myaccount.google.com/apppasswords)
GMAIL_ADDRESS=you@gmail.com
GMAIL_APP_PASSWORD=xxxx xxxx xxxx xxxx
# WhatsApp Business Cloud API (https://developers.facebook.com)
WHATSAPP_ACCESS_TOKEN=your_token
WHATSAPP_PHONE_NUMBER_ID=your_phone_id
# Slack (create app at https://api.slack.com/apps)
SLACK_BOT_TOKEN=xoxb-your-bot-token
# Discord (create app at https://discord.com/developers/applications)
DISCORD_BOT_TOKEN=your_bot_token
Telegram requires an interactive login the first time:
nexus auth telegram
This prompts for your phone number, SMS code, and optional 2FA password. The session is saved to ~/.nexus/tdlib/ and reused automatically.
Add to your Claude Code MCP config (~/.claude/claude_code_config.json):
{
"mcpServers": {
"nexus": {
"command": "nexus",
"args": ["mcp"],
"env": {
"TELEGRAM_API_ID": "12345678",
"TELEGRAM_API_HASH": "abcdef1234567890abcdef1234567890",
"GMAIL_ADDRESS": "you@gmail.com",
"GMAIL_APP_PASSWORD": "xxxx xxxx xxxx xxxx"
}
}
}
}
Or for Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"nexus": {
"command": "/path/to/nexus",
"args": ["mcp"],
"env": {
"TELEGRAM_API_ID": "12345678",
"TELEGRAM_API_HASH": "abcdef1234567890abcdef1234567890"
}
}
}
}
Nexus exposes tools dynamically — only tools for configured platforms appear in tools/list.
| Tool | Description |
|---|---|
list_platforms | List connected platforms |
get_profile | Get authenticated user profile |
list_channels | List chats, folders, channels |
read_messages | Read messages with pagination |
send_message | Send a message (with optional reply) |
search | Search messages across a platform |
| Tool | Description |
|---|---|
telegram_search_chat | Search within a specific chat |
telegram_get_message | Get a single message with full metadata |
telegram_get_chat_info | Chat details, member count, description |
telegram_get_chat_members | List members with roles |
telegram_send_media | Send photo/video/document |
telegram_download_media | Download media to local file |
telegram_forward_message | Forward between chats |
telegram_edit_message | Edit your sent messages |
telegram_delete_messages | Delete messages |
telegram_pin_message | Pin a message |
telegram_unpin_message | Unpin a message |
telegram_mark_read | Mark messages as read |
telegram_react | Add emoji reaction |
| Tool | Description |
|---|---|
gmail_send_email | Send with CC, BCC, attachments |
gmail_create_draft | Create draft without sending |
gmail_archive | Remove from inbox |
gmail_trash | Move to trash |
gmail_move_to | Move to any folder |
gmail_list_labels | List all labels/folders |
gmail_add_label | Add label to message |
gmail_remove_label | Remove label from message |
gmail_mark_read | Mark as read |
gmail_mark_unread | Mark as unread |
gmail_star | Star a message |
gmail_unstar | Unstar a message |
gmail_get_attachment | Download attachment to file |
| Tool | Description |
|---|---|
slack_set_status | Set status message and emoji |
slack_create_channel | Create a new channel |
slack_invite_to_channel | Invite user to channel |
slack_set_topic | Set channel topic |
slack_add_reaction | React to a message |
slack_remove_reaction | Remove reaction |
slack_upload_file | Upload file to channels |
slack_list_users | List workspace users |
slack_get_user_info | Get user profile details |
| Tool | Description |
|---|---|
discord_list_guilds | List servers the bot is in |
discord_list_guild_channels | List channels in a server |
discord_create_thread | Create a thread |
discord_add_reaction | React to a message |
discord_remove_reaction | Remove reaction |
discord_pin_message | Pin a message |
| Tool | Description |
|---|---|
whatsapp_send_media | Send media file to a number |
WhatsApp Business Cloud API is limited to sending only. Message history is not available through the API.
Every data-returning tool accepts an optional format parameter:
| Format | Behavior | Use Case |
|---|---|---|
compact (default) | One-liner per item, text truncated to 200 chars | Browsing, scanning, token-efficient |
expanded | One-liner per item, full untruncated text | Reading full messages |
full | Complete JSON with all fields | When you need exact field values |
Examples:
Compact (default):
[Jan 15 10:30] John Doe (@john): Hey, I was thinking about the architecture for the new... (id:123456)
Expanded:
[Jan 15 10:30] John Doe (@john): Hey, I was thinking about the architecture for the new messaging service. We should probably use a hexagonal pattern with ports and adapters. What do you think? (id:123456)
Full:
{"id":"123456","platform":"telegram","channel_id":"-100123","sender":"John Doe","text":"Hey, I was thinking about...","timestamp":1705312200,...}
Hexagonal (ports-and-adapters) with 9 workspace crates:
app-mcp ──→ mod-messaging ──→ core-domain ──→ core-error
↑ ↑
infra-tdlib (port traits)
infra-google
infra-whatsapp
infra-slack
infra-discord
| Layer | Crate | Purpose |
|---|---|---|
| Core | core-error | AgentError enum with suggestions and retryable flags |
| Core | core-domain | Shared entities (Message, Channel, Profile, etc.) and port traits (MessagingPort, TelegramExt, GmailExt, etc.) |
| Module | mod-messaging | AgentService (platform registry + routing) and Format engine |
| Infra | infra-tdlib | Telegram via TDLib FFI (4 C functions, dedicated receive thread) |
| Infra | infra-google | Gmail via IMAP + SMTP (connection pooling, MIME decoding) |
| Infra | infra-whatsapp | WhatsApp Business Cloud API via HTTP |
| Infra | infra-slack | Slack Web API via HTTP |
| Infra | infra-discord | Discord Bot API v10 via HTTP |
| App | app-mcp | Binary: CLI, MCP server (stdio JSON-RPC), tool definitions |
Nexus uses newline-delimited JSON-RPC 2.0 on stdio (not Content-Length headers). stdout is exclusively for JSON-RPC responses. All logging goes to stderr via tracing.
Every error includes context to help the AI agent recover:
{
"isError": true,
"content": [{"type": "text", "text": "[auth] Telegram session expired | try: re-run `nexus auth telegram` | retryable: false"}]
}
Errors include a suggestion (actionable fix) and whether the operation is retryable.
API_ID and API_HASHexport TELEGRAM_API_ID=12345678
export TELEGRAM_API_HASH=abcdef1234567890abcdef1234567890
nexus auth telegram
Enter your phone number, SMS code, and 2FA password if enabled.~/.nexus/tdlib/ — you won't need to authenticate again unless you revoke the session.Note: Telegram requires TDLib (libtdjson.so) installed at /usr/local/lib. See the TDLib build guide for your platform. Set TDLIB_DIR env var if installed elsewhere.
export GMAIL_ADDRESS=you@gmail.com
export GMAIL_APP_PASSWORD="xxxx xxxx xxxx xxxx"
Gmail search syntax: The search tool accepts IMAP criteria:
"meeting notes" (searches body)FROM sender@example.comSUBJECT "quarterly report"SINCE 01-Jan-2025UNSEENFROM boss@company.com SINCE 01-Feb-2025 UNSEENexport WHATSAPP_ACCESS_TOKEN=your_token
export WHATSAPP_PHONE_NUMBER_ID=your_phone_id
Limitations: WhatsApp Business Cloud API only supports sending messages. You cannot read message history or search messages through the API.
channels:history, channels:read, channels:writechat:writegroups:history, groups:readim:history, im:readmpim:history, mpim:readreactions:read, reactions:writeusers:readfiles:write (for file uploads)xoxb-...)export SLACK_BOT_TOKEN=xoxb-your-bot-token
bot scope and these permissions:
export DISCORD_BOT_TOKEN=your_bot_token
# Start the MCP server (default command)
nexus mcp
# Authenticate with Telegram (interactive, one-time)
nexus auth telegram
# Show help and environment variables
nexus help
| Variable | Platform | Description |
|---|---|---|
TELEGRAM_API_ID | Telegram | API ID from my.telegram.org |
TELEGRAM_API_HASH | Telegram | API hash from my.telegram.org |
GMAIL_ADDRESS | Gmail | Your Gmail address |
GMAIL_APP_PASSWORD | Gmail | App Password (not your regular password) |
WHATSAPP_ACCESS_TOKEN | Business Cloud API token | |
WHATSAPP_PHONE_NUMBER_ID | Sender phone number ID | |
SLACK_BOT_TOKEN | Slack | Bot User OAuth Token (xoxb-...) |
DISCORD_BOT_TOKEN | Discord | Bot token |
NEXUS_DATA_DIR | All | Data directory (default: ~/.nexus) |
RUST_LOG | All | Log level (default: nexus=info) |
# Debug build
cargo build --workspace
# Release build (optimized, ~4MB)
cargo build --release
# Check/lint
cargo check --workspace
cargo clippy --workspace -- -D warnings
# Run protocol tests (needs debug build)
cargo build --workspace
bash tests/mcp_protocol_test.sh
The release profile is optimized for small binary size:
These are enforced across all crates:
clippy::unwrap_used = "deny" — use ? or matchclippy::expect_used = "deny" — use ? or matchunused_must_use = "deny"unsafe_code = "warn" (only allowed in infra-tdlib for FFI)crates/infra-{name}/ with Cargo.toml and src/adapter.rsPlatform enum in core-domain/src/entities.rsMessagingPort trait (6 methods)core-domain/src/ports.rsapp-mcp/src/main.rsapp-mcp/src/mcp/tools.rsapp-mcp/src/mcp/server.rscore-domain/src/ports.rsinfra-tdlib/src/adapter.rs)ToolDef in app-mcp/src/mcp/tools.rsapp-mcp/src/mcp/server.rsContributions are welcome. Please:
cargo clippy --workspace -- -D warnings passes with no warningscargo check --workspace compiles cleanlybash tests/mcp_protocol_test.sh (needs a debug build)MIT — see LICENSE for details.
Loading reviews...
GitHub checked 112h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.