Koskamo

gramcp MCP

A Rust-based Telegram MCP server that acts as a secure proxy for AI agents. It connects to a user's personal Telegram account via MTProto, allowing tools to read chats, triage messages, search history, and send replies. It includes security features like prompt injection protection, tool whitelisting, and audit logging to mitigate risks when agents interact with untrusted chat inputs.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

gramcp MCP logo, by ilodezisCommunity listingLocal stdioSource reviewed; not executedPublished by ilodezis
Vendor documentation

What you can do with it

  • Read and triage unread Telegram messages
  • Search chat history for specific information
  • Draft and send replies to contacts or groups
  • Protect agent interactions from prompt injection attacks

Source and maintenance

Community listingRegistry 0.1.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

ghcr.io/ilodezis/gramcp:0.1.0

oci
ghcr.io/ilodezis/gramcp:0.1.0 package definition
{
  "transport": "stdio",
  "identifier": "ghcr.io/ilodezis/gramcp:0.1.0",
  "registryType": "oci",
  "packageArguments": [
    {
      "type": "positional",
      "value": "serve"
    },
    {
      "name": "--stdio",
      "type": "named"
    }
  ],
  "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"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "gramcp-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
        "-e",
        "TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
        "ghcr.io/ilodezis/gramcp:0.1.0",
        "serve"
      ],
      "env": {
        "TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
        "TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "gramcp-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
        "-e",
        "TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
        "ghcr.io/ilodezis/gramcp:0.1.0",
        "serve"
      ],
      "env": {
        "TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
        "TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "gramcp-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
        "-e",
        "TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
        "ghcr.io/ilodezis/gramcp:0.1.0",
        "serve"
      ],
      "env": {
        "TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
        "TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "gramcp-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TELEGRAM_API_ID=<YOUR_TELEGRAM_API_ID>",
        "-e",
        "TELEGRAM_API_HASH=<YOUR_TELEGRAM_API_HASH>",
        "ghcr.io/ilodezis/gramcp:0.1.0",
        "serve"
      ],
      "env": {
        "TELEGRAM_API_ID": "<YOUR_TELEGRAM_API_ID>",
        "TELEGRAM_API_HASH": "<YOUR_TELEGRAM_API_HASH>"
      }
    }
  }
}

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.