gramcp MCP
A self-hosted Rust MCP server enabling agents to interact with multiple personal Telegram accounts via MTProto. It provides 68 tools for reading, messaging, and organization, featuring an embedded web UI, OAuth 2.1, and deterministic guardrails against prompt injection.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Read and search Telegram dialogs and media
- Send, edit, and schedule messages with formatting
- Manage chat folders, mute, and pin messages
- Transcribe voice messages and translate text
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/ilodezis/gramcp:0.2.0
{
"transport": "stdio",
"identifier": "ghcr.io/ilodezis/gramcp:0.2.0",
"registryType": "oci",
"packageArguments": [
{
"type": "positional",
"value": "serve",
"isRequired": true
},
{
"type": "positional",
"value": "--stdio",
"isRequired": true
}
],
"runtimeArguments": [
{
"name": "-v",
"type": "named",
"value": "{volume}:/data",
"variables": {
"volume": {
"default": "gramcp-data",
"isRequired": true,
"description": "Docker volume name or absolute host path"
}
},
"isRequired": true,
"description": "Volume holding the Telegram session, state.db, and outbox. Sign in once with `docker run --rm -it -v gramcp-data:/data -e TELEGRAM_API_ID -e TELEGRAM_API_HASH ghcr.io/ilodezis/gramcp login`."
}
],
"environmentVariables": [
{
"name": "TELEGRAM_API_ID",
"format": "number",
"isRequired": true,
"description": "Telegram api_id from my.telegram.org"
},
{
"name": "TELEGRAM_API_HASH",
"isRequired": true,
"description": "Telegram api_hash from my.telegram.org"
},
{
"name": "GRAMCP_TRANSPORT",
"default": "stdio",
"description": "Transport mode inside the container; keep stdio for local MCP clients"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"gramcp-mcp-0-2-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
"-e",
"TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
"-e",
"GRAMCP_TRANSPORT=<YOUR_GRAMCP_TRANSPORT>",
"ghcr.io/ilodezis/gramcp:0.2.0",
"serve",
"--stdio"
],
"env": {
"TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
"TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>",
"GRAMCP_TRANSPORT": "<YOUR_GRAMCP_TRANSPORT>"
}
}
}
}Cline
{
"mcpServers": {
"gramcp-mcp-0-2-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
"-e",
"TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
"-e",
"GRAMCP_TRANSPORT=<YOUR_GRAMCP_TRANSPORT>",
"ghcr.io/ilodezis/gramcp:0.2.0",
"serve",
"--stdio"
],
"env": {
"TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
"TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>",
"GRAMCP_TRANSPORT": "<YOUR_GRAMCP_TRANSPORT>"
}
}
}
}VS Code
{
"servers": {
"gramcp-mcp-0-2-0": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
"-e",
"TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
"-e",
"GRAMCP_TRANSPORT=<YOUR_GRAMCP_TRANSPORT>",
"ghcr.io/ilodezis/gramcp:0.2.0",
"serve",
"--stdio"
],
"env": {
"TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
"TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>",
"GRAMCP_TRANSPORT": "<YOUR_GRAMCP_TRANSPORT>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"gramcp-mcp-0-2-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
"-e",
"TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
"-e",
"GRAMCP_TRANSPORT=<YOUR_GRAMCP_TRANSPORT>",
"ghcr.io/ilodezis/gramcp:0.2.0",
"serve",
"--stdio"
],
"env": {
"TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
"TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>",
"GRAMCP_TRANSPORT": "<YOUR_GRAMCP_TRANSPORT>"
}
}
}
}Let your agent find its tools
Find servers like gramcp MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.