1C Templates MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add --transport http 1c-templates http://localhost:8023/mcp
README.md

MCP server for storing and searching BSL code templates.

MCP сервер шаблонов 1С

MCP-сервер для хранения и поиска шаблонов BSL-кода. Управление шаблонами — через веб-интерфейс, а редактор кода переведен на Monaco Editor.

Запуск

docker compose up -d

После первого запуска автоматически создаются два демо-шаблона:

  • Модуль печатной формы
  • Отчёт СКД по таблице значений

Шаблоны хранятся в папке data/templates/ на хосте (Docker volume).

Веб-интерфейс

Откройте в браузере: http://localhost:8023

  • Список шаблонов с поиском
  • Создание и редактирование шаблонов в Monaco Editor
  • Удаление шаблонов

Подключение в Cursor

Сервер использует транспорт Streamable HTTP (не SSE). В настройках Cursor → MCP укажите сервер с явным типом транспорта:

{
  "mcpServers": {
    "1c-templates": {
      "type": "streamableHttp",
      "url": "http://localhost:8023/mcp"
    }
  }
}

MCP-инструменты

Инструмент Описание
list_templates() Список всех шаблонов (id, name, description, tags)
get_template(template_id) Полный шаблон с кодом по id
search_templates(query) Поиск по подстроке в названии, описании и тегах

Пример использования в Cursor

В чате Cursor напишите:

Найди шаблон печатной формы и вставь код в текущий модуль

Cursor через MCP вызовет search_templates("печатная форма"), получит id шаблона,
затем get_template(id) — и вернёт BSL-код.

Структура проекта

.
├── Dockerfile
├── docker-compose.yml
├── requirements.txt
├── app/
│   ├── main.py        # FastAPI + FastMCP
│   ├── storage.py     # CRUD по JSON-файлам
│   ├── seeds.py       # Начальные шаблоны
│   └── html/          # Jinja2-шаблоны веб-UI
└── data/
    └── templates/     # JSON-файлы шаблонов

Добавление шаблона вручную

Создайте файл data/templates/my_template.json:

{
  "id": "my_template",
  "name": "Мой шаблон",
  "description": "Описание",
  "tags": ["тег1", "тег2"],
  "code": "// BSL код..."
}

Файл подхватывается мгновенно — перезапуск контейнера не нужен.

Tools (3)

list_templatesReturns a list of all available templates including id, name, description, and tags.
get_templateRetrieves the full template details and code by its unique identifier.
search_templatesSearches for templates by matching a query against names, descriptions, and tags.

Configuration

claude_desktop_config.json
{"mcpServers": {"1c-templates": {"type": "streamableHttp", "url": "http://localhost:8023/mcp"}}}

Try it

Find the template for a print form and insert the code into my current module.
Search for BSL templates related to 'SKD report' and show me the code.
List all available 1C code templates.
Get the full code for the template with ID 'my_template'.

Frequently Asked Questions

What are the key features of 1C Templates MCP Server?

Web-based management interface with Monaco Editor. Natural language search for BSL code templates. Automatic template discovery from local JSON files. Streamable HTTP transport support for AI assistants.

What can I use 1C Templates MCP Server for?

Standardizing boilerplate code for 1C print forms across development teams. Quickly retrieving complex SKD report structures during development. Managing a library of reusable BSL code snippets via a centralized web UI.

How do I install 1C Templates MCP Server?

Install 1C Templates MCP Server by running: docker compose up -d

What MCP clients work with 1C Templates MCP Server?

1C Templates MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep 1C Templates MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare