hilma-mcp
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., "@hilma-mcpsearch for IT services procurement notices this month"
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.
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)
Related MCP server: hilma
Asennus
1. Kloonaa repo
git clone https://github.com/Aimiten/hilma-mcp.git
cd hilma-mcp2. Asenna riippuvuudet ja buildaa
npm install
npm run buildTämä luo dist/index.js-tiedoston, jota Claude ajaa.
3. Luo .env-tiedosto
cp .env.example .envAvaa .env tekstieditorissa ja lisää API-avaimesi:
HILMA_API_KEY=oma-avp-read-avain-tähän
HILMA_READ_API_KEY=oma-avp-read-avain-tähänHuom: 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:
Mene osoitteeseen https://hns-hilma-prod-apim.developer.azure-api.net/
Rekisteröidy tai kirjaudu → Products → avp-read → Subscribe
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 |
|
Windows |
|
Lisää tai muokkaa mcpServers-osiota:
{
"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.jsWindows:
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ä.
Rekisteröidy ilmaiseksi: https://hns-hilma-prod-apim.developer.azure-api.net/
Lisää avain
.env-tiedostoon (suositeltu):HILMA_API_KEY=oma-avaimesi-tähänTai anna se suoraan Claude-konfiguraatiossa:
{ "mcpServers": { "hilma": { "command": "node", "args": ["/polku/hilma-mcp/dist/index.js"], "env": { "HILMA_API_KEY": "oma-avaimesi-tähän" } } } }
Työkalut
Työkalu | Kuvaus | Vaatii |
| Hae ilmoituksia CPV-koodeilla, hakusanalla, päivämäärällä | HILMA_API_KEY |
| Yksittäisen ilmoituksen metatiedot noticeId:llä | HILMA_API_KEY |
| Ilmoitukset joiden deadline on N päivän sisällä | HILMA_API_KEY |
| Täysi eForms XML + yhteystiedot (BT-502/503/506) | HILMA_READ_API_KEY |
search_notices — Hankintailmoitusten haku
Parametri | Tyyppi | Kuvaus |
| string | Vapaatekstihaku. |
| string[] | CPV-koodit, esim. |
| string |
|
| string |
|
| string |
|
| number | Viimeiset N päivää |
| number | Viimeiset N tuntia |
| number | Max tuloksia (1–100, oletus 20) |
get_notice_summary — Yksittäisen ilmoituksen yhteenveto
Parametri | Tyyppi | Kuvaus |
| number | Ilmoituksen 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
Parametri | Tyyppi | Kuvaus |
| number | Hae deadlinet seuraavan N päivän sisällä |
| string[] | Rajaa CPV-koodeilla (valinnainen) |
Järjestää tulokset deadlinen mukaan nousevaan järjestykseen.
get_notice_full — Täydet tiedot eForms XML:stä
Parametri | Tyyppi | Kuvaus |
| number | Ilmoituksen 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/searchYksittäinen ilmoitus:
GET https://api.hankintailmoitukset.fi/avp/eformnotices/docs/{noticeId}Autentikointi:
Ocp-Apim-Subscription-Key-header
English
Quick install
git clone https://github.com/Aimiten/hilma-mcp.git
cd hilma-mcp
npm install && npm run build
cp .env.example .env # then add your API key to .envGet 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):
{
"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 suomalaisia pk-yrityksiä ottamaan tekoälyn (Claude, Copilot, Gemini, n8n) käytäntöön — koulutus, konsultointi ja kevyet Managed Agents -toteutukset.
🌐 Verkkosivu: aimiten.fi
📖 Claude Code -opas (suomeksi): aimiten.fi/oppaat/claude-ai
🛠️ MCP-palvelimet & integraatiot: aimiten.fi/palvelut
👤 Tekijät: Sampsa Sironen (CEO) + Ville Grönlund (Co-Founder)
This MCP server is built and maintained by Aimiten, a Finnish AI consultancy specializing in Claude, Copilot, and Gemini integrations for SMEs.
Available Tools
4 toolsget_expiring_soonA
Hae ilmoitukset joiden tarjousaika päättyy seuraavan N päivän sisällä. Järjestää deadlinen mukaan nousevaan järjestykseen. Hyödyllinen: 'mitä deadlineja on ensi viikolla', 'kiireellisimmät hankkeet'.
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Hae deadlinet seuraavan N päivän sisällä (esim. 7, 14, 30) | |
| cpv_codes | No | Rajaa CPV-koodeilla (valinnainen) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses the sorting order (ascending deadline) and the filtering logic, but it does not explicitly state that the operation is read-only, nor does it mention return format or potential edge cases. This is adequate for a simple get tool but lacks deeper behavioral disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three concise sentences: purpose, sorting behavior, and usage examples. It is front-loaded with the primary function and contains no filler or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple filtered-list tool with no output schema, the description covers the essential aspects: what it returns, how it sorts, and when to use it. It lacks explicit edge-case handling (e.g., no results) but is otherwise complete for the tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with 'days' and 'cpv_codes' already well described. The tool description does not add any extra meaning beyond what the schema provides, so it meets the baseline but does not exceed it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves notices with deadlines within N days, using the specific verb 'get' and resource 'notices'. It distinguishes from sibling tools by focusing on expiring deadlines, sorting by deadline ascending, which is not covered by summary/full/search tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides concrete example queries ('what deadlines are next week', 'most urgent projects') and states the sorting behavior, establishing clear context for use. However, it does not explicitly mention alternatives or when not to use it, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_notice_fullA
Hae ilmoituksen täydet tiedot eForms XML -muodossa, mukaan lukien yhteystiedot (BT-502 nimi, BT-503 sähköposti, BT-506 puhelin) ja tarjousportaalin linkit. VAATII erillisen avp-read-eforms-api -tilauksen ja HILMA_READ_API_KEY .env:ssä. Rekisteröi: https://hns-hilma-prod-apim.developer.azure-api.net/ → avp-read-eforms
| Name | Required | Description | Default |
|---|---|---|---|
| notice_id | Yes | Ilmoituksen noticeId (numero) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the transparency burden. It discloses the requirement for a separate avp-read-eforms-api subscription and HILMA_READ_API_KEY, which is valuable. It also specifies the output format (eForms XML). It does not mention side effects, error handling, or explicitly confirm read-only behavior, but these are reasonably inferred from a 'get' operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three sentences, each earning its place: purpose, requirement, and registration URL. It is front-loaded with the main purpose and is concise without unnecessary verbosity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter retrieval tool with no output schema, the description is fairly complete. It explains the return format (eForms XML), contents (contacts, links), and authentication requirements. It does not exhaustively list every field or error scenario, but the tool's simplicity and sibling context (summary vs full) make it sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides full coverage for the single parameter notice_id, including a description. The tool description does not add further parameter details, but none are necessary given the 100% schema coverage. Thus the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves a notice's full details in eForms XML format, including specific contact fields (BT-502, BT-503, BT-506) and portal links. This distinguishes it from sibling get_notice_summary, which likely provides a summary. The verb 'Hae' (get) and the resource 'ilmoituksen' (notice) are explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context for when to use the tool: when full eForms XML data is desired, and it notes a critical prerequisite (separate subscription and API key). However, it does not explicitly mention alternatives or when not to use it, though the context strongly implies the need for full versus summary data.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_notice_summaryA
Hae yksittäisen ilmoituksen yhteenveto noticeId:llä. Käyttää search-APIa — ei vaadi erillistä tilausta. Palauttaa kaikki metatiedot: tilaaja, deadline, arvo, CPV, portaali-URL.
| Name | Required | Description | Default |
|---|---|---|---|
| notice_id | Yes | Ilmoituksen noticeId |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden. It discloses that it uses the search API, requires no separate subscription, and returns a defined set of metadata fields. It does not explicitly state side-effect-free behavior or auth requirements, but the read-oriented language and return list give useful context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a compact two-sentence statement. It is front-loaded with the action and resource, and each sentence contributes value without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter retrieval tool, the description covers the key aspects: what it returns (all metadata fields listed) and the underlying API usage. There is no output schema, but the return description compensates. It could mention that it returns only the summary and not full content, but the tool name and sibling list imply this.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter notice_id is fully described in the schema with its type and meaning. The tool description only repeats that the summary is fetched 'by noticeId', adding no extra semantic details beyond the schema's high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool fetches a single notice summary using notice_id. The verb 'Hae' and resource 'yksittäisen ilmoituksen yhteenveto' distinguish it from sibling tools like get_notice_full and search_notices.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description indicates it is for retrieving a summary of one notice, and notes it uses the search API without requiring a separate order. However, it does not explicitly compare with alternatives like get_notice_full or specify when to choose one over the other, so guidance is only implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_noticesA
Hae hankintailmoituksia Hilmasta. Tukee vapaatekstihakua, CPV-koodisuodatusta, aikarajausta, ilmoitustyypin ja menettelytyypin valintaa. Palauttaa listauksen ilmoituksista otsikoineen, hankintayksikköineen ja määräaikoineen.
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max tulosmäärä (1–100, oletus 20) | |
| days | No | Rajaa viimeiseen N päivään | |
| skip | No | Ohita N ensimmäistä (sivutus) | |
| hours | No | Rajaa viimeiseen N tuntiin | |
| search | No | Vapaatekstihaku. Käytä "*" kaikkien hakemiseen. | |
| order_by | No | Lajittelu, esim. "expirationDate asc" | |
| cpv_codes | No | CPV-koodit, esim. ["71200000"]. OR-logiikalla. | |
| notice_type | No | Ilmoitustyyppi | |
| procedure_type | No | Menettelytyyppi | |
| procurement_type | No | Hankintalaji |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It does state the output is a list with titles, procuring unit, and deadlines, which is useful. However, it does not disclose any potential side effects (though search is likely read-only), rate limits, or limitations such as the inability to filter by user/workspace. It provides some behavioral context but leaves gaps for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences. The first sentence states the core purpose, and the second lists supported features and output. Every sentence earns its place, and the description is easily scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 10 parameters, no output schema, and no annotations, the description provides a high-level overview but lacks depth. It covers the main search capabilities and gives some output structure, but it doesn't mention pagination (top/skip), sorting, or the exact behaviors of filters (e.g., OR logic for CPV). The schema covers those details, but the description would benefit from a note on how results are ordered or a reference to sibling tools for further actions. It is adequate but not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description mentions several parameter categories (free-text, CPV, time, notice type, procedure type) that map to schema properties, but it does not add any meaning beyond what the schema already provides. It omits mention of parameters like order_by, top, skip, and procurement_type. The description adds no extra value beyond the schema's own descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description starts with a clear verb and resource: 'Hae hankintailmoituksia Hilmasta' (Search procurement notices from Hilma). It lists specific filtering capabilities (free-text, CPV, time, notice type, procedure type) and return fields (titles, procuring unit, deadlines). This clearly distinguishes it from sibling tools like get_notice_full and get_expiring_soon, which target individual notice retrieval or time-specific lists.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage as a search tool by detailing its filtering and listing behavior, but it does not explicitly state when to use it over alternatives or exclude any use cases. It neither mentions sibling tools nor provides when-not-to-use guidance. Context is clear but not explicit regarding selection among siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.1.1- First observed
get_expiring_soon - First observed
get_notice_full - First observed
get_notice_summary - First observed
search_notices
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: search_notices for discovery, get_expiring_soon for time-sensitive filtering, get_notice_summary for metadata, and get_notice_full for complete XML data. No overlap or ambiguity between tools.
All tools follow a consistent snake_case verb_noun pattern: get_notice_summary, get_notice_full, search_notices, get_expiring_soon. The naming is predictable and uniform.
With only 4 tools, the server is well-scoped for its purpose of accessing Finnish procurement notices. Each tool earns its place without unnecessary bloat or glaring omissions.
The surface covers the full read-only lifecycle: search for notices, retrieve summaries, retrieve full XML details, and find expiring deadlines. No apparent gaps for the intended use case.
Maintenance
Related MCP Connectors
Hilma MCP — Finnish government public procurement notices (keyed).
TED MCP Server: Real-time EU public tenders access. https://www.lexsocket.ai/
MCP server for French (BOAMP) + EU (TED) public procurement data via TenderAPI.
simap MCP — Swiss public procurement tenders and awards (keyless).
Related MCP Servers
- AlicenseAqualityCmaintenanceProduction-grade MCP server for Statistics Finland's StatFin database. Enables AI assistants like Claude to browse, search, and query Finnish statistical data.711MIT
- AlicenseNot gradedqualityCmaintenanceProvides access to Finnish government public procurement notices. Enables querying procurement data via natural language through the Pipeworx gateway.2 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Finnish public procurement (HILMA): search tenders, awards and procurement plans by keyword, CPV, region and buyer, and fetch full notice details.4 npmMIT
- AlicenseAqualityAmaintenanceMCP server providing read access to Swiss public procurement data via the official simap.ch API, covering all cantons and the Confederation with intraday updates. It enables searching tenders, awards, construction codes, and procurement offices through natural language queries.9MIT