Bedolaga MCP Server
Allows retrieving a user's balance in rubles from the Bedolaga Bot by Telegram ID.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bedolaga MCP Servershow balance for telegram user 12345"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bedolaga MCP Server
MCP-сервер для получения баланса пользователя из Bedolaga Bot по Telegram ID.
Возможности
bedolaga_balance— получить баланс пользователя в рублях по Telegram ID
Related MCP server: Sentice MCP Server
Транспорты
Сервер поддерживает два транспортных протокола:
Транспорт | Файл | Порт | Протокол |
Streamable HTTP (новый) |
| 3100 | HTTP (REST + SSE) |
Stdio (legacy) |
| — | stdin/stdout JSON |
Streamable HTTP — это современный транспорт MCP, рекомендованный для production. Он позволяет подключаться по HTTP без необходимости запускать дочерний процесс на клиенте.
Требования
Python 3.11+
Docker (опционально)
Развёрнутый Bedolaga Bot с Web API
API-ключ от Bedolaga (выдаётся в админ-панели бота)
Быстрый старт
1. Клонировать
git clone https://github.com/mitetenov/bedolaga-mcp.git
cd bedolaga-mcp2. Настроить
cp .env.example .env
# Заполнить BEDOLAGA_API_URL и BEDOLAGA_API_KEY3. Запустить
Streamable HTTP (рекомендуется):
# Установить зависимости
pip install -r requirements.txt
# Запустить HTTP-сервер
BEDOLAGA_API_URL=https://your-bot.example.com \
BEDOLAGA_API_KEY=your-key \
python3 http_server.pyСервер будет слушать на http://0.0.0.0:3100, MCP endpoint доступен по POST /mcp.
Stdio (legacy):
BEDOLAGA_API_URL=https://your-bot.example.com \
BEDOLAGA_API_KEY=your-key \
python3 bedolaga_server.pyЧерез Docker:
docker compose up -dDocker-образ по умолчанию запускает Streamable HTTP сервер на порту 3100.
Подключение как MCP-сервер
Streamable HTTP (новый транспорт)
Сервер доступен по HTTP на порту 3100, endpoint: /mcp.
Hermes Agent
# ~/.hermes/config.yaml
mcp_servers:
bedolaga:
transport: streamable-http
url: "http://localhost:3100/mcp"
env:
BEDOLAGA_API_URL: "https://your-bot.example.com"
BEDOLAGA_API_KEY: "your-api-key"Claude Desktop
{
"mcpServers": {
"bedolaga": {
"type": "streamableHttp",
"url": "http://localhost:3100/mcp"
}
}
}Cursor / VS Code
{
"mcpServers": {
"bedolaga": {
"transport": "streamable-http",
"url": "http://localhost:3100/mcp"
}
}
}Проверка через curl
# Инициализация (получить session ID)
curl -s -X POST http://localhost:3100/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{}},"id":1}' \
-D - | grep -i mcp-session-id
# Список инструментов (с session ID)
curl -s -X POST http://localhost:3100/mcp \
-H "Content-Type: application/json" \
-H "Mcp-Session-Id: <SESSION_ID>" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":2}'
# Вызов инструмента
curl -s -X POST http://localhost:3100/mcp \
-H "Content-Type: application/json" \
-H "Mcp-Session-Id: <SESSION_ID>" \
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"bedolaga_balance","arguments":{"telegram_id":123456789}},"id":3}'Stdio (legacy транспорт)
Hermes Agent
# ~/.hermes/config.yaml
mcp_servers:
bedolaga:
command: "python3"
args: ["/path/to/bedolaga-mcp/bedolaga_server.py"]
env:
BEDOLAGA_API_URL: "https://your-bot.example.com"
BEDOLAGA_API_KEY: "your-api-key"Claude Desktop
{
"mcpServers": {
"bedolaga": {
"command": "python3",
"args": ["/path/to/bedolaga-mcp/bedolaga_server.py"],
"env": {
"BEDOLAGA_API_URL": "https://your-bot.example.com",
"BEDOLAGA_API_KEY": "your-api-key"
}
}
}
}Cursor / VS Code
Добавить в .cursor/mcp.json или settings.json:
{
"mcpServers": {
"bedolaga": {
"command": "python3",
"args": ["/path/to/bedolaga-mcp/bedolaga_server.py"],
"env": {
"BEDOLAGA_API_URL": "https://your-bot.example.com",
"BEDOLAGA_API_KEY": "your-api-key"
}
}
}
}Управление сессиями
Streamable HTTP транспорт использует stateful-сессии по умолчанию (stateless_http=False). После инициализации сервер возвращает заголовок mcp-session-id, который клиент должен передавать во всех последующих запросах.
Если нужен stateless-режим (без отслеживания сессий), отредактируйте http_server.py и установите stateless_http=True.
Переменные окружения
Переменная | Назначение |
| URL Bedolaga Web API |
| API-ключ Bedolaga |
| Порт HTTP-сервера (по умолчанию: 3100) |
| Адрес для bind (по умолчанию: 0.0.0.0) |
API
Bedolaga Web API: X-API-Key в заголовке, endpoint /users/by-telegram-id/{telegram_id}. Подробнее: https://docs.bedolagam.ru
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mitetenov/bedolaga-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server