About 1c MCP Toolkit
1c MCP Toolkit is an MCP server published by ROCTUP in the Developer Tools category: mCP и REST API сервер для получения метаданных и данных из базы 1С. Conduid read 13 tools from its source: close_1c_session, execute_code, execute_query, find_references_to_object, get_access_rights, get_bsl_syntax_help and 7 more. No package is published for it, so it installs from a source checkout.
The repository has 391 stars and 91 forks, is licensed GPL-3.0, and its last commit was on 1 Nov 2026. The latest release is v1.10.0 (1 Nov 2026): MCP теперь может работать на сервере 1С без открытого клиента — с запуском вручную или по расписанию, через встроенный HTTP-сервер или Python-прокси. It follows v1.9.0 (8 Oct 2026), and the 5 most recent releases go back to v1.7.0 (29 Apr 2026). It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Tests present, Dependencies pinned and Scoped permissions. Its topics include 1c and devtools.
Install
git clone https://github.com/ROCTUP/1c-mcp-toolkitTools (13)
close_1c_sessionClose the current 1C session — the session that executes 1C tool calls — and return a launcher script command to start a new one.execute_codeExecute arbitrary code in 1C language.| Parameter | Type | Description |
|---|---|---|
| code * | string | The 1C code to execute. Use 'Результат = ...' to return a value. |
| execution_context | string | Optional['server'|'client'], default='server'. |
execute_queryExecute a query in 1C query language and return the results.| Parameter | Type | Description |
|---|---|---|
| include_schema | boolean | Include column type schema in response (default: False) |
| limit | integer | Maximum number of rows to return (default: 100, max: 1000) |
| params | object | Optional dictionary of query parameters (e.g., {"Param1": "value1"}). Parameter values can be: - Simple values (string, number, boolean, date) - Object references in format: {"_objectRef": true, "УникальныйИдентификатор": "uuid-string", "ТипОбъекта": "СправочникСсылка.Контрагенты"} Object references are automatically converted to actual 1C references before query execution. |
| query * | string | The query text in 1C query language (e.g., "ВЫБРАТЬ * ИЗ Справочник.Номенклатура") |
find_references_to_objectFind references to a given object across specified metadata collections.| Parameter | Type | Description |
|---|---|---|
| limit_hits | integer | Maximum total number of hits (default: 200, max: 10000). |
| limit_per_meta | integer | Maximum hits per metadata object (default: 20, max: 1000). |
| meta_filter | object | Optional metadata filter dict with fields: - names: list of exact metadata object names (e.g., ["Документ.РеализацияТоваровУслуг"]) - name_mask: search mask for name/synonym (case-insensitive) If names is provided, name_mask is ignored. |
| search_scope * | array | List of search scopes to check. Valid values: "documents", "catalogs", "information_registers", "accumulation_registers", "accounting_registers", "calculation_registers". |
| target_object_description * | object | Object description from execute_query results with fields: - _objectRef: must be true - УникальныйИдентификатор: UUID string - ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты") - Представление: string representation (optional) |
| timeout_budget_sec | integer | Time budget in seconds for the search (default: 30, min: 5, max: 300). |
get_access_rightsGet role permissions for a metadata object and optionally effective rights for a user.| Parameter | Type | Description |
|---|---|---|
| metadata_object * | string | Full metadata object name (e.g., "Справочник.Контрагенты", "Документ.РеализацияТоваровУслуг") |
| rights_filter | array | Optional list of rights to show in result (default: all applicable rights for type) |
| roles_filter | array | Optional list of roles to show (default: all roles with rights) |
| user_name | string | Optional user name for effective rights calculation (case-insensitive search) |
get_bsl_syntax_helpGet syntax reference for 1C BSL language.| Parameter | Type | Description |
|---|---|---|
| content_page | integer | Page number of content to return (1-based, default 1) |
| keywords * | array | List of search keywords, or a single candidate path / link from content for exact lookup |
| limit | integer | Maximum number of candidates to return (1–300, default 100) |
| match | string | "all" (default) — all keywords must match; "any" — any keyword matches |
| offset | integer | Number of candidates to skip for pagination (default 0) |
get_event_logGet event log entries from 1C database with filtering options and cursor pagination.| Parameter | Type | Description |
|---|---|---|
| application | array | List of application types to filter by. Valid values: "ThinClient", "WebClient", "ThickClient", "BackgroundJob", "Designer", "COMConnection", "Server", "WebService", "HTTPService", "ODataInterface", "MobileAppClient", "MobileAppServer", "MobileAppBackgroundJob", "MobileClient", "MobileStandaloneServer", "FileVariantBackgroundJob", "FileVariantServerSide", "WebSocket", "FileVariantWebSocket", "1CV8C", "1CV8". |
| comment_contains | string | Substring to search in comment (case-insensitive). |
| computer | string | Computer name to filter by. |
| data | string | Reference to data object (navigation link) - for backward compatibility. Priority: object_description > link > data. Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..." |
| end_date | string | End date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS). If not provided, no end date filter is applied. |
| events | array | List of event types to filter by (e.g., "_$Data$_.New", "_$Session$_.Start"). If not provided, all event types are returned. |
| levels | array | List of importance levels to filter by. Valid values: "Information", "Warning", "Error", "Note". If not provided, all levels are returned. |
| limit | integer | Maximum number of records to return (default: 100, max: 1000). |
| link | string | Navigation link in format e1cib/data/Type.Name?ref=HexGUID. Priority: object_description > link > data. Example: "e1cib/data/Документ.РеализацияТоваровУслуг?ref=..." |
| metadata_type | array | List of metadata object types to filter by. Example: ["Документ.РеализацияТоваровУслуг", "Справочник.Номенклатура"]. |
| object_description | object | Object description from execute_query results. Priority: object_description > link > data. Example: {"_objectRef": true, "УникальныйИдентификатор": "...", "ТипОбъекта": "..."} |
| same_second_offset | integer | Skip N records with the same second as start_date (for pagination). For pagination: use next_same_second_offset from previous response. Requires start_date to be specified. |
| session | array | List of session numbers to filter by. |
| start_date | string | Start date in ISO 8601 format (YYYY-MM-DDTHH:MM:SS). If not provided, no start date filter is applied. For pagination: use last_date from previous response. |
| transaction_status | string | Transaction status to filter by. Valid values: "Committed", "RolledBack", "NotApplicable", "Unfinished". |
| user | array | List of user names to filter by. |
get_link_of_objectGenerate a 1C navigation link from an object description.| Parameter | Type | Description |
|---|---|---|
| object_description * | object | Object description from execute_query results with fields: - _objectRef: must be true - УникальныйИдентификатор: UUID string - ТипОбъекта: object type (e.g., "СправочникСсылка.Контрагенты") - Представление: string representation (optional) |
get_metadataGet metadata information about 1C database objects.| Parameter | Type | Description |
|---|---|---|
| attribute_mask | string | Search mask for attribute name/synonym (case-insensitive substring). Returns list contract: data=[{ПолноеИмя, Синоним},...]. ПолноеИмя can be used directly as filter (round-trip). INCOMPATIBLE with sections (returns error). |
| extension_name | string | Extension name (None=main config, ""=list extensions, "Name"=extension objects). Whitespace-only values are rejected. |
| filter | string | Full name of object (e.g., "Справочник.Номенклатура") or full path to collection element (e.g., "Справочник.Контрагенты.Реквизит.ИНН", "РегистрНакопления.Остатки.Измерение.Номенклатура", "Документ.Реализация.ТабличнаяЧасть.Товары.Реквизит.Номенклатура") |
| limit | integer | Maximum number of objects in list (default: 100, max: 1000) |
| meta_type | any | Object type filter for list (string or list). Use "*" to list across all root types. |
| name_mask | string | Search mask for name/synonym (case-insensitive substring search) |
| offset | integer | Offset for pagination in list mode (default: 0) |
| sections | array | Detail sections to include (works only with filter). Supported: properties, forms, commands, layouts, predefined, movements, characteristics (movements is only available for Документ objects) |
| types_limit | any | Page size for the full list of allowed types of ONE addressed typed field (default 100, max 200). Forbidden for structure requests; incompatible with attribute_mask/meta_type/name_mask/extension_name="". limit/offset do NOT paginate types. |
| types_offset | any | Offset in the types list of one addressed typed field (default 0). Continue with types.next_offset while types.has_more=true; types_offset=shown_types_count returns the remaining types of a shortened field. |
get_object_by_linkGet 1C object data by navigation link.| Parameter | Type | Description |
|---|---|---|
| link * | string | Navigation link. Standard objects: e1cib/data/Type.Name?ref=HexGUID (32 hex chars). External data sources: e1cib/data/ВнешнийИсточникДанных.Source.Таблица.TableName - Object tables: ?ref=Value (e.g., "...Таблица.Заказы?ref=117953") - Non-object tables: ?FieldName=Value (e.g., "...Таблица.OrderItems?ID=5&Type=A") |
get_screenshotCaptures the main 1C window, including open dropdowns, menus and dialogs.| Parameter | Type | Description |
|---|---|---|
| form_name | string | Optional. Full 1C form name (e.g. "Справочник.Контрагенты.Форма.ФормаЭлемента"). If provided, opens the form (or activates it if already open), waits ~1.5 s for it to render, activates the form, waits ~0.7 s more and only then captures the window. The form is closed afterwards only if this request opened it; an already open form remains open. Opening a form dismisses any layer that was open, so omit it when the point of the screenshot is to see an open list or menu. If omitted, captures the current 1C main window immediately. Mutually exclusive with link. |
| highlight_rects | any | Optional. List of rectangles to draw on the screenshot as numbered blue frames (3 px). Each item: {x, y, width, height} in original client-area pixels, origin (0, 0) at the top-left corner of the captured image (same coordinate space as grid labels). Rectangles are labeled 1, 2, 3… in array order. Labels appear outside above the top-right corner (inside if there is not enough space above). Rectangles must not overlap — returns an error specifying which ones do. Omit or pass None to draw no rectangles. |
| link | string | Optional. Navigation link of an existing 1C object (e1cib/data/<Type>.<Name>?ref=<32 hex>), e.g. returned by get_link_of_object. Finds an already open form of this object or opens it via a single navigation, then follows the same wait/activate/capture sequence as form_name. The form is closed afterwards only if this request opened it. If several forms of the same object are open, returns an ambiguity error. External data source links are not supported. Mutually exclusive with form_name. |
| page_name | string | Optional. Internal name of a form page (tab) element to show before capture (e.g. "ДополнительныеСведения") — not the visible tab title. Parent page groups are switched as needed for nested pages. Requires form_name or link. After capture, pages changed by this request are restored in an already open form unless the user switched them meanwhile. |
| region | any | Optional. Crop to a sub-region before scaling. Provide x, y (≥0), width, height (≥1) in original client-area pixels. Omit or pass None for full window. Returns an error if the region extends outside the window bounds. |
| scale_percent | integer | Output image scale (10–200, default 100). Values above 100 produce a larger image with more detail (e.g. 200 = 2× size). Values below 100 produce a smaller image (e.g. 50 = half size). Grid coordinate labels always show original window pixel coordinates regardless of scale. |
| show_grid | boolean | If true, draws a grid on the screenshot (up to 10×10, dynamic density based on image size — small regions get fewer lines or none): red lines, yellow coordinate labels (px) on black background at each axis, red dots at intersections. Coordinate origin (0, 0) is at the top-left corner of the captured image. Grid line coordinates are also returned as text (grid_coords). |
restart_1c_sessionRestart the current 1C session — the session that executes 1C tool calls.submit_for_deanonymizationSubmit the final user-facing response for de-anonymization display.| Parameter | Type | Description |
|---|---|---|
| text * | string |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.5K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 25 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTP and HTTP with SSEonec_mcp_toolkit_proxy/server.py:77, onec_mcp_toolkit_proxy/channel_sse_transport.py:35
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- None in the repository
Pattern matches on the source text of 25 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.5K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README