AWS Builder Center
Kiro - Telegram MCP Server

Kiro - Telegram MCP Server

I built a TypeScript MCP server that connects Kiro to Telegram for community workflows, scheduled channel posts, message analysis, and confirmed sending while keeping sessions, cache, and secrets local.

Series: Kiro Projects (4 articles)

  1. 2
    Kiro - Telegram MCP Server This article
Community Building SG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Telegram is where many developer communities actually operate. Questions, feedback, links, event updates, and scheduled announcements often live inside fast-moving chats and channels. I wanted Kiro to help with that workflow without giving it unsafe direct control over Telegram.

So I built a Telegram MCP server for Kiro using Node.js, TypeScript, GramJS, and the Model Context Protocol.

The MCP lets Kiro read selected Telegram chats, search recent or cached messages, summarize conversations, extract links, find unanswered questions, inspect reactions and polls, and manage scheduled channel messages. It also supports useful actions like sending replies, scheduling posts, forwarding messages, pinning announcements, and marking chats as read.

The important part is safety. Telegram is sensitive, so every write action is confirmation-gated. Safe mode requires the exact outgoing text to be repeated before sending. Media sends also require the file path to be confirmed. Optional allowed chat IDs can restrict write tools to only approved chats or channels.

The project stores the Telegram session locally, keeps the cache in a local SQLite database, and avoids committing secrets. The npm package only includes the compiled server, examples, README, license, and `.env.example`.

A typical Kiro MCP config looks like this:

```json
{
"mcpServers": {
"telegram": {
"command": "kiro-telegram-mcp",
"env": {
"TELEGRAM_API_ID": "${TELEGRAM_API_ID}",
"TELEGRAM_API_HASH": "${TELEGRAM_API_HASH}",
"KIRO_TELEGRAM_SAFE_MODE": "true"
}
}
}
}
After installing globally, users can authenticate once with:
1
kiro-telegram-mcp-auth
Then Kiro can use the MCP from anywhere through:
1
kiro-telegram-mcp
This makes Kiro more useful for real community operations. For example, it can help review a Telegram channel’s scheduled posts, decide which updates should go out earlier, push lower-priority posts to another day, summarize community feedback into requirements, or prepare a safe draft reply before anything is sent.
The goal is not to automate Telegram blindly. The goal is to give Kiro enough context to help, while keeping the human in control of every action that changes Telegram.

Series: Kiro Projects (4 articles)

  1. 2
    Kiro - Telegram MCP Server This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article