Rejestr.io MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rejestr.io MCP Serverfind company by NIP 5260201132"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rejestr.io MCP Server
A Model Context Protocol (MCP) server providing access to Poland's largest business registry database - rejestr.io.
π What is this?
This MCP server enables AI assistants and applications to:
π Search companies by name, NIP (Tax ID), or KRS (Court Register)
π’ Retrieve detailed company information
π₯ Check real beneficiaries from CRBR (Central Register of Real Beneficiaries)
π Analyze connections between companies and individuals
π Access financial documents and statements
π Browse KRS (National Court Register) records
Related MCP server: KRS Poland MCP Server
π― Choose Your Setup
π€ Are you a Claude Desktop user? β Jump to Claude Desktop Setup
π¨βπ» Are you a developer/want local control? β Jump to Developer Setup
π€ For Claude Desktop Users
This section is for non-technical users who want to use this MCP server with Claude Desktop app.
Step 1: Get rejestr.io API Key
Register at rejestr.io
Purchase an API plan (various options available)
Copy your API key from the user panel
Step 2: Install Python
Download Python 3.13 or newer from python.org
During installation, check "Add Python to PATH"
Verify installation by opening terminal and typing:
python --version
Step 3: Download and Configure Server
Download this repository (green "Code" button β "Download ZIP") and extract it
Create a
.envfile in the main project folder with your API key:REJESTR_IO_API_KEY=your_api_key_here
Step 4: Configure Claude Desktop
Open Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this configuration (replace
PATH_TO_PROJECTwith full path to project folder):Windows:
{ "mcpServers": { "rejestr-io": { "command": "python", "args": ["-m", "rejestr_io_mcp"], "cwd": "C:\\Users\\YourName\\rejestr-io-mcp", "env": { "PYTHONPATH": "C:\\Users\\YourName\\rejestr-io-mcp" } } } }macOS/Linux:
{ "mcpServers": { "rejestr-io": { "command": "python3", "args": ["-m", "rejestr_io_mcp"], "cwd": "/home/your_name/rejestr-io-mcp", "env": { "PYTHONPATH": "/home/your_name/rejestr-io-mcp" } } } }Save the file and restart Claude Desktop
Step 5: Test It
Open Claude Desktop and ask:
Check my rejestr.io account balanceIf everything works correctly, Claude should return your account balance information.
π Troubleshooting (Claude Desktop)
Claude doesn't see the tools:
Verify paths in
claude_desktop_config.jsonare correctMake sure
.envfile contains valid API keyRestart Claude Desktop completely
Authorization error:
Check if API key in
.envis correctVerify your API plan is active at rejestr.io
Check account balance
Import errors:
Ensure Python is installed correctly
Check Python version:
python --version(requires 3.13+)Try reinstalling:
pip install httpx python-dotenv mcp
π¨βπ» For Developers / Local Usage
This section is for developers who want to integrate this MCP server with custom agents, applications, or use it locally.
Quick Start
# Clone the repository
git clone https://github.com/your-user/rejestr-io-mcp.git
cd rejestr-io-mcp
# Create virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# or
.venv\Scripts\Activate.ps1 # Windows PowerShell
# Install dependencies
pip install -e .
# Create .env file with your API key
echo "REJESTR_IO_API_KEY=your_api_key_here" > .envLocal Testing
# Run server in stdio mode
python -m rejestr_io_mcp
# Use MCP Inspector for interactive testing
npx @modelcontextprotocol/inspector python -m rejestr_io_mcpIntegration with Custom Agents
The server communicates via stdio using the Model Context Protocol. Example integration:
import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def run_agent():
server_params = StdioServerParameters(
command="python",
args=["-m", "rejestr_io_mcp"],
env={"REJESTR_IO_API_KEY": "your_key_here"}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# List available tools
tools = await session.list_tools()
print(f"Available tools: {[tool.name for tool in tools.tools]}")
# Call a tool
result = await session.call_tool(
"get_company_info_using_nip",
arguments={"nip": "5252408074"}
)
print(result)
asyncio.run(run_agent())Project Structure
rejestr-io-mcp/
βββ rejestr_io_mcp.py # Main MCP server implementation
βββ pyproject.toml # Project configuration & dependencies
βββ .gitignore # Git ignore file
βββ README.md # This documentationEnvironment Variables
REJESTR_IO_API_KEY(required) - Your rejestr.io API key
Dependencies
Python 3.13+
httpx >= 0.28.1 - Async HTTP client
mcp >= 1.25.0 - Model Context Protocol SDK
python-dotenv - Environment variable management
API Endpoints Used
All endpoints use https://rejestr.io/api/v2 base URL:
GET /org?nazwa={name}- Search companiesGET /org/{krs}- Get company by KRSGET /org/nip/{nip}- Get company by NIPGET /org/{krs}/crbr- Get beneficiariesGET /org/{krs}/krs-powiazania- Get company connectionsGET /osoby/{id}- Get person dataGET /osoby/{id}/krs-powiazania- Get person connectionsGET /org/{krs}/krs-rozdzialy/{chapter}- Get KRS chapterGET /org/{krs}/krs-dokumenty- List financial documentsGET /org/{krs}/krs-dokumenty/{doc_id}?format=json- Get financial statement (costs 0.50 PLN)GET /konto/stan- Check account balance
Adding to Other MCP Clients
For Cline (VSCode extension): Add to your VSCode settings:
{
"mcp.servers": {
"rejestr-io": {
"command": "python",
"args": ["-m", "rejestr_io_mcp"],
"cwd": "/path/to/rejestr-io-mcp"
}
}
}For custom applications: Use the MCP SDK to connect to the server via stdio transport.
π οΈ Available Tools
Company Search
get_company_info_using_name- Search company by nameFind information about "CD Projekt" companyget_company_info_using_nip- Get company data by NIP (Tax ID)Show company with NIP 5252408074get_company_info_using_krs- Get company data by KRS numberWhat are the details of company KRS 0000012345?
Detailed Information
get_company_krs_documentation- Get specific KRS chapterAvailable chapters:
ogolny,oddzialy,akcje,wzmianki,zobowiazania,przeksztalcenia
Show general chapter from KRS for company 0000012345get_person_data- Get person informationShow data for person ID 123456
Beneficiaries and Connections
get_beneficiary- List of real beneficiaries from CRBRWho is the beneficiary of company KRS 0000012345?get_connections_by_krs- Company connectionsShow all connections for company KRS 0000012345get_connections_by_person- Person connectionsIn which companies does person ID 123456 operate?
Financial Documents
get_financial_documents- List of financial documentsShow available financial statements for KRS 0000012345get_financial_statement_in_json- Download statement (costs 0.50 PLN)Download financial statement document ID 789 for KRS 0000012345
Account Management
get_token_amount- Check account balanceHow much credit do I have on my rejestr.io account?
π‘ Usage Examples
Company Analysis
Find "Allegro" company and show:
1. Basic information
2. Real beneficiaries
3. All connections with other companiesDue Diligence
For company KRS 0000012345 check:
- Is it in liquidation or bankruptcy
- Who is the real beneficiary
- What connections it has with other entities
- Latest financial statementsPerson Analysis
Find Jan Kowalski in company X, then show all companies
where this person holds any positionπ Important Notes
β οΈ Costs: Downloading financial statements in JSON costs 0.50 PLN per document, rest operations are cost per usage.
π Security: Never share your API key. The
.envfile should be in.gitignoreπ Limits: Check your API plan limits at rejestr.io
π Updates: Data in rejestr.io is regularly updated from official registries
π Additional Resources
π License
MIT License - feel free to use, modify, and distribute this code.
π€ Contributing
Bug reports and pull requests are welcome!
Made with β€οΈ for the Polish business data community
This server cannot be deployed
Maintenance
Related MCP Connectors
Polish company registry: 4.4M firms, KRS/REGON data, VAT white list checks, financial statements
Polish company records from the official KRS register API, with alerts on new registry entries.
MCP server for 3M+ Polish companies β KRS & CEIDG financials, ownership, and industry search.
Verify Polish companies by NIP/KRS/REGON + EU VAT (VIES). 14 MCP tools (9 no-key).
Related MCP Servers
- AlicenseAqualityCmaintenanceStructured business intelligence for AI agents. 5.5M verified entities across 34 countries, 40.3M BORME mercantile acts, EU VAT validation, GLEIF, healthcare registries. 20 tools.61MIT
- AlicenseCqualityDmaintenanceEnables querying the Polish National Court Register (KRS) to retrieve current and historical entity data.284 npm4MIT
- AlicenseAqualityCmaintenanceLook up Polish companies from any AI assistant: registry data (KRS, REGON, CEIDG), VAT white list checks before payments, and financial statements of 4.4M businesses. Read-only tools backed by official public registers.4MIT
- FlicenseAqualityCmaintenanceMCP server providing access to Polish business registers (KRS, CRBR) via the rejestr.io API, enabling search, retrieval of organizations, beneficial owners, financial documents, and more.12-