# mcp-egrul [Health: Active]

**Category:** ⚖️ Legal  
**Repository:** https://github.com/atomno-mcp/mcp-egrul  
**GitHub Stars:** 3  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-egrul

## Description
EGRUL/EGRIP company registry lookup for Russian legal entities and entrepreneurs.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-egrul": {
    "command": "uvx",
    "args": ["atomno-mcp-egrul"],
    "env": {
      "MCP_EGRUL_DB": "",
      "MCP_EGRUL_USER_AGENT": "",
      "MCP_EGRUL_HTTP_TIMEOUT": "",
      "MCP_EGRUL_DUMPS_DIR": "",
      "MCP_EGRUL_LOG_LEVEL": "",
      "TZ": "",
      "ATOMNO_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `MCP_EGRUL_DB`, `MCP_EGRUL_USER_AGENT`, `MCP_EGRUL_HTTP_TIMEOUT`, `MCP_EGRUL_DUMPS_DIR`, `MCP_EGRUL_LOG_LEVEL`, `TZ`, `ATOMNO_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-egrul does

The mcp-egrul MCP server gives AI assistants access to Russian EGRUL and EGRIP registry records for legal entities and individual entrepreneurs. Its local mode queries a SQLite database populated from Federal Tax Service open-data dumps. A hosted mode is also available through `api.atomno-mcp.ru` when `ATOMNO_API_KEY` is set.

The available operations cover identification, discovery, and selected company details. Searches can use an INN, OGRN, or company name. Separate queries return founders, the current director, or a complete company card. A bulk operation checks up to 100 INNs in one request.

## Tools and capabilities

The mcp-egrul MCP server exposes these registry tools:

- `search_by_inn` accepts a 10-digit legal-entity INN or a 12-digit individual-entrepreneur INN.
- `search_by_ogrn` accepts a 13-digit OGRN or 15-digit OGRNIP.
- `search_by_name` performs fuzzy name search with optional result limits and active-status filtering.
- `get_full_card` returns the full record using an INN or OGRN.
- `get_founders` returns founders and their ownership shares.
- `get_director` returns the current director.
- `bulk_cards` checks a list of up to 100 INNs.

A `ping` diagnostic is included to check whether the server is responding. Payload structures are represented by Pydantic models including `CompanyCard`, `IECard`, `SearchResult`, and `BulkResult`.

## How it works

By default, the command starts an MCP server over stdio using JSON-RPC, which suits desktop and coding clients. Local deployments query `mcp_egrul_data.sqlite`. The database is built by importing daily XML ZIP archives downloaded from the EGRUL and EGRIP open-data pages of the Russian Federal Tax Service.

For Docker deployments, the initial full import is run separately for each registry. Later imports can be incremental, based on newer dated dump directories. A scheduler checks for new data at 03:00 Europe/Moscow time. The server does not download the source archives automatically; operators must obtain them after accepting the applicable Federal Tax Service license.

With `ATOMNO_API_KEY`, the seven registry tools are routed to the hosted Pro API instead of local SQLite. The hosted service is described as providing current data, a bulk endpoint, and additional Pro functionality. Hosted failures produce typed errors rather than silently falling back to an older local database.

## Setup and configuration

For a straightforward installation, run `uvx atomno-mcp-egrul`, or install the package with `pipx` or `pip` and start `atomno-mcp-egrul`. Development installation requires Python 3.11 or newer. Cursor and Claude Desktop configurations can launch the server with `uvx`.

Relevant environment variables include `MCP_EGRUL_DB`, `MCP_EGRUL_DUMPS_DIR`, `MCP_EGRUL_HTTP_TIMEOUT`, `MCP_EGRUL_USER_AGENT`, `MCP_EGRUL_LOG_LEVEL`, `TZ`, and `ATOMNO_API_KEY`. The SQLite path defaults to `./mcp_egrul_data.sqlite`, while the dump directory defaults to `./dumps`.

## Limitations and notes

Local results depend on the most recently imported dump and can therefore lag current registry data. Full dumps are approximately 15 GB and the initial import typically takes 30–60 minutes. Hosted Pro access requires an API key for its paid features; the documented free tier allows 30 requests per day per IP without registration. Client-side INN and OGRN checksum validation occurs before hosted requests.

_Full upstream README: https://allmcps.com/mcp/mcp-egrul/readme_

