MCP server and Telegram bot for BAS OData
mcp_claude_1c
A stdio MCP server over BAS OData with an entity whitelist, a FastAPI layer, a Telegram bot backed by Claude or Groq, and Grafana and Loki monitoring
- 0 ★ on the repository
- Last commit
Extended access
Why this level
- The create MCP tool writes new documents into the BAS database for configured entities
- The Telegram token and LLM provider keys are stored in .env
Install
- Works in
Manual install
docker compose upBrings up FastAPI, the Telegram bot and the monitoring stack; the MCP server itself is not exposed over HTTP directly. Fill .env first.
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- The create MCP tool writes new documents into the BAS database for configured entities
- The Telegram token and LLM provider keys are stored in .env
This is third-party code. Review the repository files before installing.
What it does
The project gives an agent access to a BAS database (a 1C:Enterprise-family accounting platform used in Ukraine and the CIS) over OData. On startup, the MCP server fetches $metadata from a FastAPI service, filters entities through BAS_ENTITY_WHITELIST, and dynamically generates query and create tools with operations that depend on the entity type: catalogs support search, documents only list and get by id. A separate Telegram bot built with aiogram uses the same tools and talks to a model chosen through a factory, either Claude or Groq. Service logs go to Loki through Promtail and are visible in Grafana.
Who it is for. For developers integrating an agent with a BAS database over OData who want a ready Telegram interface on top of it.
Good fit when
- Your OData database runs on the BAS platform with entities like Document_АктВыполненныхРабот
- You want to restrict the agent to a whitelist of entities instead of the whole database
- You need a Telegram bot with access to the same MCP tools as the agent
Not a fit when
- Your database is not BAS and does not serve OData $metadata in a compatible format
- You need to work fully without external LLMs: both LLM_PROVIDER options, Claude and Groq, need a cloud API key
- The repository's README is empty, so setup requires reading the source directly
Example request
Through the Telegram bot, find last month's act of completed works for a specific counterparty in BASMCP
- Transport
- stdio
- Authentication
- not required
Environment variables
FASTAPI_URLrequired- Address of the FastAPI service the MCP server queries for metadata and data
BAS_ENTITY_WHITELIST- Comma-separated list of BAS entities with wildcard support; empty means all entities
LLM_PROVIDERrequired- claude or groq, determines which cloud API key the bot needs
TELEGRAM_BOT_TOKENrequired, secret- Telegram bot token from BotFather, needed only to run the bot
Limitations
The repository README is empty; all install and environment variable details here come from reading the source and docker-compose.yml. Some code comments are in Ukrainian. It needs an ANTHROPIC_API_KEY or GROQ_API_KEY depending on LLM_PROVIDER, both foreign cloud providers. The create operation in the MCP server is hardcoded to two entities in the source; changing that requires editing the code.
How to disable. Stop the stack with docker compose down; for the Telegram bot alone, stop the bot service.
FAQ
Is this an MCP server specifically for the Russian 1C?
No, based on the code and entity names this targets BAS, a 1C:Enterprise-family platform used in Ukraine and the CIS. The repository name mentions 1c, but the database itself is not the Russian product.
Can it run without Claude or Groq?
Based on the llm/factory.py source, only those two providers are supported, both cloud and foreign.
Discussion
No questions or reviews yet.
Related
MCP servers1C OData MCP server
1C OData MCP Server
A small Python MCP server that wraps standard 1C Управление предприятием OData read operations into three tools
A Python MCP server for BAF, a Ukrainian counterpart to 1C:Enterprise: configuration metadata, queries and full-text BSL code search
1C OData skills and bot
1c oData bot
OData and metadata-search skills for AI agents, plus a Telegram and email bot that answers plain-language questions about 1C data
1C OData MCP with a JSON cache
MCP сервер для работы с OData 1C
A Python MCP server over 1C OData: reads and changes catalogs and documents, saving everything to JSON files for local analysis without repeat queries
1C metadata MCP proxy (adapted fork)
1C_MCP_SERVER_OWN
A Python proxy between an MCP client and a 1C HTTP service: reads metadata, object structure and predefined data, with optional OAuth2
AI Finansist: MCP server for 1C
mcp_1c (AI Финансист)
An MCP server, a 1C OData client and a local language model bundled with a Gradio chat for questions about 1C data and uploaded PDFs
README in short
The repository's README is empty, so the project's purpose is reconstructed from the code layout: docker-compose.yml brings up a FastAPI service, an MCP server, a Telegram bot and a Loki, Promtail and Grafana monitoring stack; pyproject.toml lists aiogram, anthropic, groq, mcp and fastapi as dependencies; docstrings in mcp_server/server.py and llm/factory.py describe the tool-generation logic and LLM provider choice.