1C OData MCP

v1.0.1
io.github.alexgrebeshok-coder/onec-odata-mcp Checked 2 days ago Published 4 months ago

Read-only MCP server for 1C:Enterprise via OData with metadata and query builder tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

odata_config

Check 1С OData configuration status and setup instructions

odata_list_entities

List all available OData entities from 1С

odata_metadata

Get entity types and entity sets from 1С metadata (cached, TTL default 1h)

ParameterTypeDescription
refreshbooleanForce refresh metadata cache

odata_explain_entity

Describe entity fields, types, keys and navigation properties from metadata

ParameterTypeDescription
entity *stringEntity name (e.g. Catalog_Контрагенты)

odata_build_query

Build validated OData query parameters from structured intent (filters, date period, sort, top). Returns params for odata_query + human explanation.

ParameterTypeDescription
entity *stringTarget entity name
datePeriodobject
expandarray
filtersarrayStructured filters: field, operator (eq/ne/gt/ge/lt/le/contains/startswith), value
orderByarray
selectarray
topnumber

odata_query

Query 1С OData entity with filter, select, top, orderBy, expand. Example: entity="Catalog_Контрагенты" filter="Description eq 'ООО Ромашка'"

ParameterTypeDescription
entity *stringEntity name (e.g. Catalog_Контрагенты)
expandstringNavigation properties ($expand)
filterstringOData $filter expression
orderBystringSort field ($orderby)
selectstringComma-separated fields ($select)
topnumberMax records ($top)

odata_count

Count records in an OData entity, optionally with filter

ParameterTypeDescription
entity *stringEntity name
filterstringOData $filter expression

odata_financial_summary

Auto-detect common 1С financial entities (счета, реализации, контрагенты, заявки) and show counts