Hilma Mcp

io.github.AimitenPublished by GitHub account Aimitenv1.1.1Updated Oct 24, 2026

MCP server for Finnish public procurement notices (Hilma). Built by Aimiten.

Overview

AI-generated overview

Local MCP server that lets an assistant search and read Finnish public procurement notices (Hilma) from hankintailmoitukset.fi.

What you can do
  • Search procurement notices by keyword, CPV codes, notice type, procurement or procedure type, and recent days or hours
  • Read a single notice's metadata: buyer, deadline, value, CPV codes and portal link
  • List notices whose deadline falls within the next N days, optionally filtered by CPV code
  • Fetch a notice's full eForms XML with contact details (name, email, phone) and tender portal links
When to use it
Useful when you follow Finnish public tenders and want an assistant to find relevant calls, check upcoming deadlines, or pull full notice details without opening the Hilma portal in a browser.
Requirements
Runs locally as a Node.js package (Node.js 18 or newer) started via stdio, configured in a desktop client such as Claude Desktop. Needs a free Hilma AVP API subscription key supplied as HILMA_API_KEY and HILMA_READ_API_KEY (the same avp-read key works for both). Network access to the Hilma API is required.
Before you install
The server requires your own Hilma API key; keep it in the .env file or client config and never commit it. The full-notice tool returns contact names, emails and phone numbers from the notices, so treat that data accordingly. Tools are read-only lookups against the Hilma API.

Installation

In SourceWeft

  1. Open Hilma Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

hilma-mcp

MCP (Model Context Protocol) -serveri Suomen julkisille hankintailmoituksille — hankintailmoitukset.fi (Hilma).

Mahdollistaa hankintailmoitusten haun suoraan Claude-assistentista ilman erillistä selainta.

Kieliversio: Ohjeet suomeksi alla. English instructions further down.


Vaatimukset

  • Node.js versio 18 tai uudempi
  • Claude Desktop tai Claude Cowork (MCP-tuki)
  • Hilma AVP API -avain (ks. alla)

Asennus

1. Kloonaa repo

bash
git clone https://github.com/Aimiten/hilma-mcp.gitcd hilma-mcp

2. Asenna riippuvuudet ja buildaa

bash
npm installnpm run build

Tämä luo dist/index.js-tiedoston, jota Claude ajaa.

3. Luo .env-tiedosto

bash
cp .env.example .env

Avaa .env tekstieditorissa ja lisää API-avaimesi:

HILMA_API_KEY=oma-avp-read-avain-tähänHILMA_READ_API_KEY=oma-avp-read-avain-tähän

Huom: Molemmat kentät käyttävät samaa avainta — avp-read-tuote sisältää jo Read API (EForms) -rajapinnan, joten erillistä tilausta ei tarvita.

Hanki avain ilmaiseksi:

  1. Mene osoitteeseen https://hns-hilma-prod-apim.developer.azure-api.net/
  2. Rekisteröidy tai kirjaudu → Products → avp-read → Subscribe
  3. Kopioi Primary key Profile-sivulta

Huom: .env-tiedostoa ei koskaan commitoida GitHubiin — se on jo .gitignore:ssa.

4. Lisää Claude-konfiguraatioon

Avaa Claude Desktopin konfiguraatiotiedosto:

KäyttöjärjestelmäPolku
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json

Lisää tai muokkaa mcpServers-osiota:

json
{  "mcpServers": {    "hilma": {      "command": "node",      "args": ["/ABSOLUUTTINEN/POLKU/hilma-mcp/dist/index.js"]    }  }}

Tärkeää: Korvaa /ABSOLUUTTINEN/POLKU/hilma-mcp oikealla polulla omalla koneellasi. Esimerkiksi:

  • macOS: /Users/sinunnimesi/hilma-mcp/dist/index.js
  • Windows: C:\\Users\\sinunnimesi\\hilma-mcp\\dist\\index.js

4. Käynnistä Claude uudelleen

Hilma ilmestyy connectors-listaan uudelleenkäynnistyksen jälkeen.


API-avain

Serveri vaatii oman API-avaimen — sitä ei ole bundlattu koodiin tietoturvasyistä.

  1. Rekisteröidy ilmaiseksi: https://hns-hilma-prod-apim.developer.azure-api.net/
  2. Lisää avain .env-tiedostoon (suositeltu):
    HILMA_API_KEY=oma-avaimesi-tähän
  3. Tai anna se suoraan Claude-konfiguraatiossa:
    json
    {  "mcpServers": {    "hilma": {      "command": "node",      "args": ["/polku/hilma-mcp/dist/index.js"],      "env": {        "HILMA_API_KEY": "oma-avaimesi-tähän"      }    }  }}

Työkalut

TyökaluKuvausVaatii
search_noticesHae ilmoituksia CPV-koodeilla, hakusanalla, päivämäärälläHILMA_API_KEY
get_notice_summaryYksittäisen ilmoituksen metatiedot noticeId:lläHILMA_API_KEY
get_expiring_soonIlmoitukset joiden deadline on N päivän sisälläHILMA_API_KEY
get_notice_fullTäysi eForms XML + yhteystiedot (BT-502/503/506)HILMA_READ_API_KEY

search_notices — Hankintailmoitusten haku

ParametriTyyppiKuvaus
searchstringVapaatekstihaku. "*" = kaikki.
cpv_codesstring[]CPV-koodit, esim. ["71200000", "72000000"]. OR-logiikka.
notice_typestringContractNotices / ContractAwardNotices / PlanNotices
procurement_typestringservices / works / supplies
procedure_typestringopen / restricted / negotiated
daysnumberViimeiset N päivää
hoursnumberViimeiset N tuntia
topnumberMax tuloksia (1–100, oletus 20)

get_notice_summary — Yksittäisen ilmoituksen yhteenveto

ParametriTyyppiKuvaus
notice_idnumberIlmoituksen numeerinen ID

Käyttää search-APIa — ei vaadi erillistä tilausta. Palauttaa kaikki metatiedot: tilaaja, deadline, arvo, CPV, portaali-URL.

get_expiring_soon — Lähestyvät deadlinet

ParametriTyyppiKuvaus
daysnumberHae deadlinet seuraavan N päivän sisällä
cpv_codesstring[]Rajaa CPV-koodeilla (valinnainen)

Järjestää tulokset deadlinen mukaan nousevaan järjestykseen.

get_notice_full — Täydet tiedot eForms XML:stä

ParametriTyyppiKuvaus
notice_idnumberIlmoituksen numeerinen ID

Vaatii HILMA_READ_API_KEY (sama avain kuin HILMA_API_KEY — sisältyy avp-read-tilaukseen). Palauttaa:

  • Yhteystiedot: BT-502 (nimi), BT-503 (sähköposti), BT-506 (puhelin)
  • Tarjousportaalin URL:t
  • Koko eForms XML -raakadata

API-viite

Perustuu viralliseen Hilma API -dokumentaatioon.

  • Hakuendpoint: POST https://api.hankintailmoitukset.fi/avp/eformnotices/docs/search
  • Yksittäinen ilmoitus: GET https://api.hankintailmoitukset.fi/avp/eformnotices/docs/{noticeId}
  • Autentikointi: Ocp-Apim-Subscription-Key -header

English

Quick install

bash
git clone https://github.com/Aimiten/hilma-mcp.gitcd hilma-mcpnpm install && npm run buildcp .env.example .env   # then add your API key to .env

Get a free API key at: https://hns-hilma-prod-apim.developer.azure-api.net/

Add to Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{  "mcpServers": {    "hilma": {      "command": "node",      "args": ["/absolute/path/to/hilma-mcp/dist/index.js"]    }  }}

Restart Claude. The Hilma connector will appear in the connectors list.


Lisenssi / License

MIT — ks. LICENSE.


Aimiten

Tämä MCP-serveri on toteutettu osana Aimitenin AI-konsultointia. Aimiten Oy auttaa keskisuuria ja suuria yrityksiä ja organisaatioita ottamaan tekoälyn (Claude, Copilot, Gemini, n8n) käyttöön: koulutus, konsultointi ja käyttöönotot.

This MCP server is built and maintained by Aimiten, a Finnish AI consultancy for mid-sized and large companies and organizations, specializing in Claude, Copilot and Gemini.

Source: README.md at commit ea660e9

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts