Skip to main content

schema-mcp-core

Основа для MCP-серверов над российскими деловыми API. Сам по себе ничего не подключает: сервер приносит каталог методов (endpoints.yaml) и тонкий server.py, всё остальное берёт отсюда.

Так устроены hh-mcp-ru, diadoc-mcp-ru, sbis-mcp-ru, chestny-znak-mcp-ru и vk-mcp-ru.

Что внутри

модуль зачем
registry каталог методов из YAML: поиск словами, описание, пагинация
safety класс доступа read / write / destructive
client асинхронный HTTP: авторизация, повтор на 429, пагинация, белый список доменов
credentials ключи на несколько кабинетов, файл вне репозитория с правами 600
tools готовый набор инструментов MCP: поиск, описание, вызов, кабинеты
doctor отчёт «взлетит ли эта установка», список сервисов задаёт вызывающий
paginate выкачать все страницы одним вызовом, только для чтения
entities, workflows карта сущностей и готовые сценарии, если сервер их приносит

Зачем отдельный пакет

Ядро это 2 200 строк, а сервер поверх него 66. Пять серверов, живущих отдельными репозиториями, иначе несли бы пять копий одного кода, и правка безопасности в одном месте оставляла бы четыре непочиненных.

Минимальный сервер

from mcp.server.fastmcp import FastMCP
from schema_mcp_core.client import MarketplaceClient, ServiceConfig
from schema_mcp_core.registry import Catalog
from schema_mcp_core.tools import register_generic_tools

catalog = Catalog.from_yaml(Path(__file__).parent / "endpoints.yaml")
config = ServiceConfig(service="hh", base_url="https://api.hh.ru", ...)
mcp = FastMCP("hh-mcp-ru")
register_generic_tools(mcp, prefix="hh", catalog=catalog, client_factory=...)

Живой пример с авторизацией и кабинетами лежит в любом из пяти серверов выше.

Что ядро НЕ делает

Не ходит в сеть само, не хранит ключи в репозитории, не пишет в сервис без подтверждения: методы класса write и destructive требуют явного согласия на стороне вызова.

Установка

pip install schema-mcp-core

Кто это сделал

Илья Утов, лаборатория AI Frontier. На этом ядре собраны business-mcp-ru и пять его серверов: hh.ru, VK, Диадок, СБИС, Честный знак.

Остальные проекты одним списком, разобранные по назначению: ilyautov.github.io.

MIT.

Metadata

Release files for schema-mcp-core 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for schema-mcp-core 0.2.1
File Size Uploaded
schema_mcp_core-0.2.1.tar.gz 47.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for schema-mcp-core 0.2.1
File Interpreter ABI Platform
schema_mcp_core-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 89.8 kB

Release files / schema_mcp_core-0.2.1.tar.gz

Download URL schema_mcp_core-0.2.1.tar.gz
Size 47.4 kB
Tags Source
SHA-256 checksum
How to use checksums
110f8a87758ce81fa04415d75838c70b43ae71a7fae5f031aba1051231fb7e2d
BLAKE2b-256 checksum
How to use checksums
8aff39dfdfbb8d81b5ea0db087090c9752e98fa7e90eb3053b0922809401a862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / schema_mcp_core-0.2.1-py3-none-any.whl

Download URL schema_mcp_core-0.2.1-py3-none-any.whl
Size 42.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10918e4c566c2a56e00bf2c6a98203486d03c4a7750f46c0637926e6d87e2980
BLAKE2b-256 checksum
How to use checksums
941c1416b22f36e7ca554e2c2691922fa2d23e2cd15ddc5c7f35561b5d2cbc3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page