# telegram-parser MCP server

> Exports Telegram channel posts, comments, and reactions into JSON, CSV, or PostgreSQL for local analysis and dashboarding.

- Repository: https://github.com/TheMyxa/telegram-parser
- Page: https://hostedmcp.org/servers/themyxa/telegram-parser
- Transport: —
- Stars: 258

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `API_HASH` | no | no |  |
| `API_ID` | no | no |  |
| `INCREMENTAL_LOOKBACK_POSTS` | no | no |  |
| `LLM_ENDPOINT` | no | no |  |
| `LLM_MODEL` | no | no |  |
| `OUTPUT_FILE` | no | no |  |
| `POSTGRES_DB` | no | no |  |
| `POSTGRES_HOST` | no | no |  |
| `POSTGRES_PASSWORD` | no | no |  |
| `POSTGRES_PORT` | no | no |  |
| `POSTGRES_TABLE` | no | no |  |
| `POSTGRES_USER` | no | no |  |
| `POSTS_PAUSE_AFTER_POSTS` | no | no |  |
| `POSTS_PAUSE_SECONDS` | no | no |  |
| `POST_LIMIT` | no | no |  |
| `TELEGRAM_SESSION` | no | no |  |

## FAQ

### What formats can I export Telegram data into?

You can save your exports as JSON, CSV, Parquet, or PostgreSQL.

### Can I download media files along with the posts?

Yes, you can optionally download media files into a specific content directory during the export process.

### Does the tool support incremental updates?

Yes, it features true incremental export that scans new posts and revisits older ones to refresh comments, reactions, and counters.
