mcp-egrul is an MCP server for AI agents to query Russian company registration information, with data sourced from the open data of the Unified State Register of Legal Entities (ЕГРЮЛ) and the Unified State Register of Individual Entrepreneurs (ЕГРИП) published by the Federal Tax Service of Russia (ФНС). The project can be self-hosted or connected to any MCP client such as Cursor, Claude Desktop, Claude Code, Cline, etc.
Purpose: to enable AI assistants to query registration information of Russian companies and individual entrepreneurs (such as company cards and individual entrepreneur cards), support searching by ИНН (taxpayer identification number) or name, and support batch queries.
Main capabilities:
- Provides seven MCP tools visible to AI assistants, plus a diagnostic ping tool for checking whether the server is alive.
- The complete payload specification is in the Pydantic models in src/mcp_egrul/schemas.py: CompanyCard, IECard, SearchResult, BulkResult.
- The default transport is stdio (JSON-RPC standard input/output), suitable for connecting to Cursor / Claude Desktop / Claude Code.
- Supports Docker self-hosting; after import, it can respond to queries through a local ФНС data snapshot in about 10 minutes.
- Provides the scheduled task daemon atomno-mcp-egrul-scheduler, which can automatically fetch the latest export data every day at 03:00 Moscow European Time; if there is no new data, the task ends with nothing_to_import and does not produce redundant records.
- Provides the manual import CLI: atomno-mcp-egrul-import, and defines exit codes.
- Supports Pro / hosted mode: when the user sets ATOMNO_API_KEY, the seven tools automatically proxy to the hosted Pro API (api.atomno-mcp.ru), and local SQLite is not used in this case. Hosted Pro provides same-day latest data (directly scraped from egrul.nalog.ru and server-side Dadata fallback), an unlimited-rate batch endpoint (POST /companies/bulk), AI summary cards, change history, search by responsible person name, and other Pro-exclusive tools (provided with the hosted server in Phase 2).
- Pricing: Pro alone is $10/month, or $15/month when bundled with mcp-fns-check (bundle key). Free tier: 30 requests per IP per day, no registration required.
- Behavior and error handling: no silent fallback. If the hosted API is unavailable, the client throws a typed exception instead of silently returning stale local snapshot data. ИНН/ОГРН validation is performed on the client side (validating check digits before the HTTP request, saving round trips for invalid identifiers).
Usage:
- Install via PyPI (recommended for users): install atomno-mcp-egrul using uvx or pip.
- Development mode: requires Python 3.11+ and uv (optional).
- Claude Desktop configuration: configure in claude_desktop_config.json.
- Cursor configuration: configure in the project .cursor/mcp.json or the global ~/.cursor/mcp.json.
- If not using uv, you can replace "command": "uvx", "args": ["atomno-mcp-egrul"] with "command": "atomno-mcp-egrul" (requires pip install atomno-mcp-egrul or pipx install atomno-mcp-egrul).
- Docker self-hosting: provides a quick start, and the /data volume in the container has the corresponding structure.
- Import ФНС data: ЕГРЮЛ open data https://www.nalog.gov.ru/opendata/7707329152-egrul/ , ЕГРИП open data https://www.nalog.gov.ru/opendata/7707329152-egrip/ Format: daily XML archives (ZIP), full snapshot approximately 15 GB. Legally, it must be downloaded after accepting the license on the ФНС website; the server does not download the archives on its own.
- Configuration is via environment variables; see .env.example for an example.
Use cases:
- Querying registration information for Russian companies and individual entrepreneurs in AI assistants (Cursor, Claude, etc.).
- Scenarios requiring self-hosting and data localization.
- Scenarios requiring batch queries of company information.
- Scenarios requiring use together with mcp-fns-check (a risk-check layer based on ЕГРЮЛ).
Limitations:
- The open-source version is based on a local SQLite snapshot, so the data has a daily delay (the daily delay of open data snapshots).
- The server does not automatically download ФНС data archives; the user must download and import them manually.
- The hosted Pro infrastructure is still under active development.
- The service is an aggregator and convenient interface for public ФНС data, is not affiliated with ФНС, and is used at your own risk; the response information cannot replace a full legal or financial assessment.
- All sources are public data; legal entities are not subject to 152-ФЗ (Personal Data Law); the names of individual executives and founders are published by ФНС in public registers, and redistribution is lawful.
- No write operations are performed on any external API.
- Keys are passed only via environment variables; the repository contains only a valueless .env.example.
- License: MIT, with the LICENSE file located in the root directory.
Project status: v0.1.2 — the open version (self-hosted via SQLite) is fully ready, and the hosted Pro client part (HostedClient HTTP client for api.atomno-mcp.ru) has been provided. Published to PyPI and listed in Glama and Smithery. Coverage 100.00% (345 tests, ruff clean, fastmcp 3.2.4, enforced via --cov-fail-under=100).