Photo by Ilya Orehov on Unsplash, modified with AI
Build AI-powered applications with Estonia's world-leading digital infrastructure
Note
This is a community-driven open source project and is not affiliated with, endorsed by, or connected to the Estonian government or any official Estonian institutions.
Picture this: A country where 99% of government services are online. Where you can establish a company in 18 minutes. Where blockchain secures healthcare records, and every citizen has a digital identity that works seamlessly across all services. This isn't science fictionβthis is Estonia today.
Since the early 1990s, Estonia has transformed itself into one of the world's most digitally advanced societies. Starting fresh with modern infrastructure and forward-thinking policies, the country built its services digital-first from the ground up. Today, Estonia stands as a model for digital governance:
- 3 minutes to file taxes online (with 98% of citizens doing so) 1
- 2% of GDP saved annually through digital governance 2
- 120,000+ e-Residents from 170+ countries running EU companies remotely 3
- 99.9% of banking transactions happen online 4
- X-Road data exchange platform processes 900+ million transactions yearly 5
Estonia AI Kit connects your AI applications directly to Estonian government services, open data, and digital infrastructure. It includes MCP servers for AI integration, CLI tools for direct terminal access, and skills for AI coding agents (like Claude Code) to interact with authenticated services.
Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect with external data sources and tools. Estonia AI Kit implements MCP servers for various Estonian services, making them accessible to AI models like Claude, GPT, and others.
This toolkit covers government services (tax, business registry, legal data, statistics) and private sector services (banking). Some require personal authentication via Smart-ID/ID-card.
| Package | Description | Type | Auth | Status |
|---|---|---|---|---|
@estonia-ai-kit/rik-mcp-server |
Estonian Business Register (RIK) | MCP Server | None | πΆ WIP |
@estonia-ai-kit/open-data-mcp-server |
Statistics Estonia / Open Data Portal | MCP Server | None | πΆ WIP |
cli/emta |
Tax & Customs Board (EMTA) - TSD declarations | CLI / Skill | Smart-ID | β Working |
rag/riigiteataja |
Estonian Legal Document RAG pipeline | RAG | None | πΆ WIP |
@estonia-ai-kit/shared |
Shared utilities and types | Library | - | β Ready |
| Package | Description | Type | Auth | Status |
|---|---|---|---|---|
cli/lhv |
LHV Bank - accounts, transactions, payments | CLI / Skill | Smart-ID | β Working |
Important
CLI tools that require authentication (Smart-ID, ID-card) authenticate as you and access your data. Sessions expire after ~30 minutes.
# Install the EMTA CLI
go install github.com/stefanoamorelli/estonia-ai-kit/cli/emta@latest
# Install the LHV CLI
go install github.com/stefanoamorelli/estonia-ai-kit/cli/lhv@latestEMTA (Tax & Customs):
emta-cli login # Login via Smart-ID QR code
emta-cli tsd list # List your TSD declarations
emta-cli tsd show <declaration-id> # Show declaration detailsLHV Bank:
lhv auth --interactive # Authenticate via Smart-ID
lhv get-accounts # List accounts
lhv get-transactions # View transactions
lhv pay --help # SEPA payment options# Install dependencies
bun install
# Build all packages
bun run buildAdd to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"estonia-rik": {
"command": "node",
"args": ["/path/to/estonia-ai-kit/mcp/rik/dist/index.js"]
},
"estonia-open-data": {
"command": "node",
"args": ["/path/to/estonia-ai-kit/mcp/open-data/dist/index.js"]
}
}
}This repository includes a Claude Code plugin marketplace with ready-to-use skills for AI-assisted workflows.
# Add the marketplace (one-time setup)
/plugin marketplace add stefanoamorelli/estonia-ai-kit
# Install a plugin (e.g., LHV Bank or EMTA)
/plugin install lhv@estonia-ai-kit
/plugin install emta@estonia-ai-kitEach plugin bundles a skill file that teaches Claude Code how to use the corresponding CLI tool. The CLI binary must be installed separately (see Quick Start above).
estonia-ai-kit/
βββ cli/ # CLI tools / skills (authenticated services)
β βββ emta/ # EMTA Tax & Customs CLI (Go)
β βββ lhv/ # LHV Bank CLI (Go)
βββ mcp/ # MCP servers
β βββ rik/ # Business Register
β βββ open-data/ # Statistics Estonia
βββ plugins/ # Claude Code plugin marketplace
β βββ emta/ # EMTA plugin + skill
β βββ lhv/ # LHV plugin + skill
βββ packages/ # Shared TypeScript libraries
β βββ shared/ # Common utilities
β βββ riigiteataja-api-client/
βββ rag/ # RAG pipelines
β βββ riigiteataja/ # Legal documents
βββ tests/ # E2E tests
| Component | Technology | Purpose |
|---|---|---|
| MCP Servers | TypeScript, @modelcontextprotocol/sdk | AI assistant integration |
| CLI Tools / Skills | Go, Cobra | Terminal access and AI agent skills |
| API Clients | Axios, native fetch, net/http | HTTP/REST communication |
| Data Processing | CSV parsing, HTML parsing, JSON | Handle various data formats |
| Monorepo | Nx workspace | Consistent tooling and code sharing |
- Node.js 20+ and Bun 1.0+ β for MCP servers and TS packages
- Go 1.21+ β for CLI tools
git clone https://github.com/stefanoamorelli/estonia-ai-kit.git
cd estonia-ai-kit
# TypeScript packages
bun install
bun run build
# Go CLI tools
cd cli/emta && go build -o emta-cli .
cd cli/lhv && make install# TypeScript packages
bun run test
npx nx test rik-mcp-server
npx nx test open-data-mcp-server
npx nx test shared- ποΈ e-Business Register - Official business registry portal
- πΌ EMTA (Tax & Customs) - Estonian Tax and Customs Board
- π Open Data Portal - Estonian government open data
- π X-Road - Estonian data exchange platform
- πͺπͺ e-Estonia - Digital society overview
- π RIK Developer Portal - Business registry API documentation
PRs and issues welcome.
Fork β Branch β Commit β Push β PR
This open-source project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). This means:
- β You can use, modify, and distribute this software
- β If you modify and distribute it, you must release your changes under AGPL-3.0
- β If you run a modified version on a server, you must provide the source code to users
- π See the LICENSE file for full details
For commercial licensing options or other licensing inquiries, please contact stefano@amorelli.tech.
Copyright Β© 2025 Stefano Amorelli
Released under the GNU Affero General Public License v3.0
amorelli.tech β’ stefano@amorelli.tech
Made with β€οΈ in Tallinn for Estonia's digital future πͺπͺ
Enjoy! π
