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.3.0

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.3.0
File Size Uploaded
schema_mcp_core-0.3.0.tar.gz 51.1 kB Details

Built distribution (wheel)

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

Total release size: 96.1 kB

Release files / schema_mcp_core-0.3.0.tar.gz

Download URL schema_mcp_core-0.3.0.tar.gz
Size 51.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8aca10ded9a801c79c7772a70e064e176e2121d0552c65ecfc3af8baad5d46a4
BLAKE2b-256 checksum
How to use checksums
8189b64723bf45226cf9fb05d715488e586a2bb3b2752eff2ecb800bf1090fe1
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 14, 2026.

Transparency log

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

Download URL schema_mcp_core-0.3.0-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5694c3c297713714b7110d13124a9598ab8fb1f7d4696886d2d9ff8c72e88259
BLAKE2b-256 checksum
How to use checksums
34823b43495e5d9813d408b76ce97d5ff254939b7039d63612da1f63baae58f9
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

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