npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@estonia-ai-kit/emta-mcp-server

v1.2.0

Published

MCP server for Estonian Tax and Customs Board (EMTA) API via X-Road

Readme

@estonia-ai-kit/emta-mcp-server

Estonian Tax & Customs Board MCP Server

Secure X-Road integration with Estonia's Tax and Customs Board (EMTA) for VAT verification, tax debt checks, and customs data.

[!NOTE] Part of the Estonia AI Kit monorepo - The Digital Nation's AI Toolkit

[!IMPORTANT] This package is a proof of concept demonstrating potential EMTA integration. Currently uses mock data to showcase the MCP server structure and capabilities.

What's needed for real functionality:

  • Valid X-Road member registration
  • PKI certificates from SK ID Solutions
  • Subsystem agreement with EMTA
  • X-Road authentication implementation

All current responses are simulated and include a note: "X-Road service requires authentication. This is simulated data."

This is a development POC - not ready for production use.

X-Road Architecture

| Component | Protocol | Security | Latency | | ----------------- | -------------- | --------------------- | --------- | | X-Road Gateway | SOAP/HTTPS | mTLS + TSL | < 100ms | | Message Transport | REST/SOAP | End-to-end encryption | < 50ms | | Service Discovery | WSDL | PKI certificates | Cached | | Audit Trail | Immutable logs | Cryptographic proof | Real-time |

Quick Start

# Install
bun add @estonia-ai-kit/emta-mcp-server

# Configure X-Road certificates
export XROAD_MEMBER_CLASS="COM"
export XROAD_MEMBER_CODE="12345678"
export XROAD_SUBSYSTEM="AIKIT"

# Add to Claude Desktop config
{
  "mcpServers": {
    "estonia-emta": {
      "command": "bunx",
      "args": ["@estonia-ai-kit/emta-mcp-server"],
      "env": {
        "XROAD_MEMBER_CLASS": "COM",
        "XROAD_MEMBER_CODE": "12345678"
      }
    }
  }
}

Available Services

interface EMTAServices {
  // VAT Operations
  verifyVAT(vatNumber: string): VATStatus;
  getVATRates(): VATRateTable;
  checkVATGroup(groupId: string): VATGroupInfo;

  // Tax Debt
  checkTaxDebt(registryCode: string): TaxDebtStatus;
  getTaxDebtDetails(registryCode: string): DetailedDebt[];

  // Customs
  getCustomsTariff(commodityCode: string): TariffInfo;
  checkEORIStatus(eoriNumber: string): EORIValidation;

  // Declarations
  getDeclarationStatus(declarationId: string): DeclarationInfo;
}

X-Road Request Flow

Client -> MCP_Server: Request
MCP_Server -> Security_Server: SOAP + mTLS
Security_Server -> X_Road: Encrypted message
X_Road -> EMTA_Service: Routed request
EMTA_Service --> Client: Response (< 500ms)

Performance & Limits

  • Throughput: 100 req/min per subsystem
  • Response time: < 500ms (p99)
  • Message size: Max 10MB
  • Certificate validity: Check quarterly
  • Audit retention: 7 years

Security Requirements

  • Valid X-Road member registration
  • PKI certificates from SK ID Solutions
  • Subsystem agreement with EMTA
  • Compliance with Estonian Data Protection Act

📦 Part of Estonia AI Kit

This package is part of the Estonia AI Kit monorepo. For complete documentation, contributing guidelines, and additional tools, visit the main repository.

⚖️ License

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 [email protected].