mcp-skatteetaten

mcp-skatteetaten

Enables AI assistants to query Norwegian tax data, submit reports, look up population register information, and validate VAT returns through Skatteetaten APIs using Maskinporten authentication.

Category
访问服务器

README

mcp-skatteetaten

A comprehensive Model Context Protocol (MCP) server for Skatteetaten — the Norwegian Tax Administration.

Exposes 35+ tools covering all major Skatteetaten APIs so that LLM agents and AI assistants can query tax data, submit reports, look up population register information, validate VAT returns, and more — all authenticated via Maskinporten.


Covered APIs

API Description
Inntekt Employer-reported income (monthly/yearly)
Beregnet Skatt Calculated tax: trinnskatt, trygdeavgift, fellesskatt
Summert Skattegrunnlag Aggregated tax basis (income, assets, deductions)
Skattemelding Tax return retrieval and validation
Restanse Outstanding tax debts and arrears
Formuesobjekt Fast Eiendom Property ownership and classification
Formuesgrunnlag Eiendomsskatt Property value basis for property tax
Folkeregisteret Population register: lookup, search, event feed
A-Melding Wage/personnel reporting (replaces Altinn A02)
A-Melding Tilbakemelding Feedback for submitted A-meldinger
MVA-Melding VAT return validation
Skattekorttilarbeidsgiver Tax deduction cards for employers
Krav og Betalinger Claims and payment history (Fremtidens innkreving)
Tredjepartsopplysninger Third-party data reporting (banks, brokers, etc.)

Prerequisites

  1. A Norwegian organisation with an organisation number
  2. Access to Maskinporten with a registered client and private key
  3. Rights packages (rettighetspakker) granted by Skatteetaten for the APIs you need
  4. Node.js 20+

Getting Access


Installation

npm install
npm run build

Configuration

Copy .env.example to .env and fill in your credentials:

cp .env.example .env
Variable Required Description
MASKINPORTEN_CLIENT_ID Yes Your Maskinporten client ID
MASKINPORTEN_PRIVATE_KEY_PATH Yes* Path to your RSA private key PEM file
MASKINPORTEN_PRIVATE_KEY_JWK Yes* Or provide the JWK as a JSON string
SKATTEETATEN_ENV No test (default) or production
MASKINPORTEN_ISSUER No Override Maskinporten issuer URL
MASKINPORTEN_TOKEN_ENDPOINT No Override token endpoint URL
FOLKEREGISTERET_AUTH_PACKAGE No offentlig-med-hjemmel (default), offentlig-uten-hjemmel, or privat

*Either MASKINPORTEN_PRIVATE_KEY_PATH or MASKINPORTEN_PRIVATE_KEY_JWK is required.


Usage

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "skatteetaten": {
      "command": "node",
      "args": ["/path/to/mcp-skatteetaten/dist/index.js"],
      "env": {
        "MASKINPORTEN_CLIENT_ID": "your-client-id",
        "MASKINPORTEN_PRIVATE_KEY_PATH": "/path/to/private-key.pem",
        "SKATTEETATEN_ENV": "test"
      }
    }
  }
}

With Claude Code

claude mcp add skatteetaten -- node /path/to/mcp-skatteetaten/dist/index.js

Or run directly:

MASKINPORTEN_CLIENT_ID=... MASKINPORTEN_PRIVATE_KEY_PATH=... npm start

Available Tools

Income (inntekt)

Tool Description
get_inntekt Income for a person in a specific month
get_inntekt_for_year All income across 12 months for a year

Tax (skatt)

Tool Description
get_beregnet_skatt Calculated tax breakdown
get_summert_skattegrunnlag Aggregated tax basis
get_skattemelding Retrieve tax return document
validate_skattemelding Validate a tax return XML
get_restanse Outstanding tax debts

Property (eiendom)

Tool Description
get_formuesobjekt_fast_eiendom Property assets for a person
get_formuesgrunnlag_eiendomsskatt Property value for tax purposes

Population Register (folkeregisteret)

Tool Description
get_person_folkeregisteret Full person record lookup
search_personer_folkeregisteret Search by criteria
get_folkeregisteret_hendelser Change event feed
get_folkeregisteret_current_sekvens Current event feed position

Wage Reporting (amelding)

Tool Description
submit_amelding Submit monthly A-melding
get_amelding_status Check submission status
get_amelding_tilbakemelding Get feedback on submitted report
list_amelding_for_maaned List submissions for a month

VAT (mva)

Tool Description
validate_mva_melding_xml Validate VAT return XML
validate_mva_melding_json Validate VAT return JSON
get_mva_koder List valid VAT codes

Tax Deduction Cards (skattekort)

Tool Description
get_skattekort Get deduction card for an employee
order_skattekort Bulk order deduction cards
get_skattekort_ordre_status Check order status
get_skattekort_resultat Retrieve completed order results

Claims & Payments (krav-og-betalinger)

Tool Description
get_krav Outstanding claims
get_betalinger Payment history

Third-Party Reporting (tredjepartsopplysninger)

Tool Description
submit_tredjepartsopplysninger Submit third-party data
get_tredjepartsopplysninger_status Check submission status
get_tredjepartsopplysninger_oppgavetyper List valid report types

Authentication

All APIs use Maskinporten for server-to-server OAuth2 authentication with enterprise certificates.

The client automatically:

  • Creates signed JWT grants using your RSA private key
  • Exchanges them for Maskinporten access tokens
  • Caches tokens until 30 seconds before expiry
  • Fetches per-scope tokens (different scopes for different APIs)

Test environment: https://test.maskinporten.no/ Production: https://maskinporten.no/


API Documentation


Development

# Run in development mode
npm run dev

# Type check
npm run typecheck

# Build
npm run build

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选