Skip to main content

ares-gov-cz-mcp

A read-only MCP server for ARES, the Czech register of economic entities. It lets an AI assistant look up companies by IČO, search by name and other criteria, and read the source registers behind ARES. It needs no credentials.

It targets ARES REST API version 1.4 and covers all 26 operations of that API through 8 tools. Results keep ARES's own (Czech) field names.

Install and start

Requires uv. Run it from PyPI, with no checkout (uv downloads and caches it):

uvx ares-gov-cz-mcp    # serves MCP over stdio

To run the latest unreleased code from GitHub instead (this also needs git):

uvx --from git+https://github.com/iquest/ares-mcp ares-gov-cz-mcp

To work on the code, clone it (Python 3.10+):

git clone https://github.com/iquest/ares-mcp.git && cd ares-mcp
uv sync
uv run python -m ares_mcp

Connect an MCP client

Add this to the client's MCP configuration:

{
  "mcpServers": {
    "ares": {
      "command": "uvx",
      "args": ["ares-gov-cz-mcp"]
    }
  }
}

For Claude Code: claude mcp add ares -- uvx ares-gov-cz-mcp

To pin a version, use "ares-gov-cz-mcp==0.1.0". To update, run uvx --refresh ares-gov-cz-mcp. To run a local checkout instead, use uv --directory /absolute/path/to/ares-mcp run python -m ares_mcp as the command.

Tools

All tools are read-only.

Tool What it does Example call
get_entity Basic record of one entity by IČO {"ico": "27082440"}
search_entities Search entities by name, address, legal form, ... (paged) {"filter": {"obchodniJmeno": "Seznam"}, "count": 5}
get_register_record Record of one entity in one source register {"register": "vr", "ico": "27082440"}
search_register Search one source register (paged) {"register": "vr", "filter": {"ico": ["27082440"]}}
search_code_lists Find valid codes for filters (paged) {"filter": {"kodCiselniku": "PravniForma"}}
search_addresses Resolve a partial address to standardised candidates {"filter": {"textovaAdresa": "Praha, Hlavní 1"}}
search_notification_batches List notification batches (paged) {"filter": {"datovyZdroj": "vr"}, "count": 10}
get_notification_batch Fetch one notification batch {"data_source": "vr", "batch_number": "7"}

Registers: vr, res, rzp, nrpzs, rpsh, rcns, szr, rs, ros, ceu.

  • An IČO may contain spaces or lack leading zeros: "123456" is looked up as 00123456.
  • Searches return total, start, count, items and next_start. Pass next_start as start to get the next page. next_start is null on the last page. ARES does not page the notification batch list, so the server pages it locally and total is its length.
  • count defaults to 20 and is at most 100.
  • ARES refuses any search that matches more than 1000 results. Narrow the filter.
  • search_code_lists needs at least one filter field. search_addresses sends typStandardizaceAdresy, default VYHOVUJICI_ADRESY (the other value is UPLNA_STANDARDIZACE).

Errors

A failed call returns an MCP tool error whose text contains one tag:

Tag Meaning
[not_found] ARES has no such record
[invalid_input] Bad input (IČO, register, paging) or ARES rejected the request
[registry_unavailable] Timeout, connection error, rate limit or ARES server error. Retry later
[registry_refused] ARES refused the request (HTTP 401 or 403)

The SDK puts the tool name in front of the tag. Raw ARES error payloads are never forwarded. If a typed field gets the wrong JSON type (for example start as text), the SDK rejects the call before the tool runs and the error has no tag.

Configuration

Set these environment variables in the client's server entry (all optional):

Variable Default Meaning
ARES_BASE_URL https://ares.gov.cz/ekonomicke-subjekty-v-be/rest ARES API base URL
ARES_TIMEOUT_SECONDS 10 Total timeout per request
ARES_MAX_CONCURRENCY 5 Most requests in flight at once
ARES_DEFAULT_COUNT 20 Page size when count is omitted
ARES_MAX_COUNT 100 Largest accepted count

GET requests are retried once on a connection error or HTTP 502/503. POST requests are never retried.

Develop

uv run ruff check .
uv run pytest tests/unit tests/contract      # no network
uv run pytest -m live                        # real ARES; see below

Live tests need tests/fixtures/expected-entities.json to hold at least 20 IČOs with their name and legal form, copied by hand from the public ARES website. Do not generate them from the API.

tests/fixtures/ares-openapi.json is a snapshot of the ARES OpenAPI document. A test checks that every operation in it is reachable through one of the 8 tools.

Release

Pushing a tag vX.Y.Z runs .github/workflows/release.yml. It checks that the tag, pyproject.toml and server.json carry the same version, runs ruff and the offline tests, builds, publishes to PyPI (trusted publishing), then publishes server.json to the MCP Registry (GitHub OIDC). To release, change the version in pyproject.toml and in both places in server.json, commit, then tag and push.

One-time setup:

  • On pypi.org, add a pending trusted publisher: project ares-gov-cz-mcp, owner iquest, repository ares-mcp, workflow release.yml, environment pypi.
  • In the GitHub repository settings, create an environment named pypi.
  • The <!-- mcp-name: ... --> line at the top of this file proves to the registry that the PyPI package belongs to io.github.iquest/ares-mcp. Keep it in sync with server.json.

Metadata

Release files for ares-gov-cz-mcp 0.1.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 ares-gov-cz-mcp 0.1.0
File Size Uploaded Provenance Actions
ares_gov_cz_mcp-0.1.0.tar.gz 36.9 kB With provenance Details for ares_gov_cz_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ares-gov-cz-mcp 0.1.0
File Interpreter ABI Platform Actions
ares_gov_cz_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for ares_gov_cz_mcp-0.1.0-py3-none-any.whl

Total release size: 54.4 kB

Release files / ares_gov_cz_mcp-0.1.0.tar.gz

Download URL ares_gov_cz_mcp-0.1.0.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
45f4929a0335b82cda270fbf2ee298893d7866aabfe068f2e344aac1e0e3ac37
BLAKE2b-256 checksum
How to use checksums
92cf8145a4611a0ee3b838b6c53776a57c7b6bd2ff275f6970499eb221342275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / ares_gov_cz_mcp-0.1.0-py3-none-any.whl

Download URL ares_gov_cz_mcp-0.1.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe232143710a011076d7c22b63f373934a7c4e085332c2a4261705b7a66b7f8a
BLAKE2b-256 checksum
How to use checksums
7de0aec4ba12bf8a2d2fee70b66dea7d93ed65febc8a7a23ccf0bdc3987b28e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for ares-gov-cz-mcp 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ares_gov_cz_mcp-0.1.0.tar.gz

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 Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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