# tgcli MCP server

> Lets an AI client search, archive, and send Telegram messages on a personal account via MTProto.

- Repository: https://github.com/kfastov/tgcli
- Page: https://hostedmcp.org/servers/kfastov/tgcli
- Transport: —
- Stars: 45
- License: MIT

## FAQ

### How do I enable the MCP server in tgcli?

Set mcp.enabled to true through the config command, then run tgcli server and point your client at the configured address.

### What authentication does tgcli use for Telegram?

It uses Telegram API credentials (api_id and api_hash) from my.telegram.org plus the tgcli auth command for session setup.

### Can tgcli search message history offline?

Yes, it archives messages through sync and can search them from the local archive.

### Does tgcli use the bot API?

No, it works with your personal Telegram account over MTProto rather than the bot API.
