# qune-tech/ocds-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/qune-tech/ocds-mcp  
**GitHub Stars:** 5  
**npm Downloads (last month):** 30  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/qune-tech-ocds-mcp

## Description
German public procurement data (OCDS) — semantic search, tender matching with company profiles, and structured filtering.

## Tools
Capabilities this server exposes over MCP:

- **match_tenders** — Semantic match: find tenders similar to a profile's stored description vector. The vector is embedded locally and sent to the API (the profile text never leaves the machine). Optional `filters` (same taxonomy as search_text) apply server-side. Returns SearchResult rows. `k` defaults to 10, max 100.
- **linked_notices** — List the notices that make up one procurement: given an OCID, return the linked set of {ocid, notice_id} refs (the procurement's notice lineage — PIN/CN/CAN siblings sharing the procurement key). Ids only; fetch each notice's XML via get_release with the returned notice_id. A length-1 set means a single isolated notice with no lifecycle to walk (the sub-threshold case).
- **update_company_profile** — Update a company profile. Only provided fields change. If the description changes, the profile is re-embedded locally.
- **list_company_profiles** — List all company profiles (summary without description), ordered by creation date.
- **get_index_info** — Health + version check of the API plus local profile counts and the embedding-contract comparison. Reports the API status/version, the client's embedding model/contract/dimension, the server's advertised contract (when present), and whether they match. Call this first to check connectivity.
- **delete_company_profile** — Delete a company profile and its embedding by UUID.
- **create_company_profile** — Create a company profile for tender matching. Stores name, description, CPV codes, categories, and location in a local SQLite database. The description is embedded locally (passage prefix); neither the text nor the embedding is sent until a match_tenders call sends the vector. Returns the profile UUID and embedding status. German description recommended.
- **search_text** — Semantic full-text search over the German procurement corpus. The query is embedded locally with multilingual-e5-small and only the 384-float vector is sent to the API (the query text never leaves the machine). Returns the top `k` SearchResult rows grouped by OCID, each carrying ocid, score, title, buyer_name, procurement_method, main_procurement_category, value_amount/currency/currency_eur_amount, deadline (RFC3339), award_date, cpv_codes, phase, documents_url, data_source, country. Optional `filters`: phase (planning/open/closed/awarded/unsuccessful), cpv_starts_with (2..8 digit CPV prefix), country (ISO-2), value_min/value_max (EUR), deadline_after/deadline_before (RFC3339), main_procurement_category (goods/works/services), buyer_name, procurement_method (eForms codes, match-any), data_source.
- **get_company_profile** — Get a company profile by its UUID. Returns name, description, CPV codes, categories, location, and embedding status.
- **list_releases** — Filter-only browse over the German procurement corpus (no semantic query — only filter values cross the wire). Same filter taxonomy as search_text. Paginate with `limit` (max 200, default 20) and `offset`. Returns SearchResult rows ordered by deadline DESC.
- **get_release** — Fetch the raw eForms XML envelope for a single OCID (5 fields: ocid, notice_id, data_source, country, raw_xml). Optional `notice_id` selects a specific notice of the OCID (EU siblings share one OCID); absent fetches the latest notice. Pair with linked_notices to walk a procurement's lifecycle (PIN->CN->CAN). Parse the XML yourself for detailed eForms fields — the envelope is intentionally thin.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ocds-mcp": {
    "command": "npx",
    "args": ["-y","@qune-tech/vergabe-mcp"],
    "env": {
      "VERGABE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `VERGABE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What qune-tech/ocds-mcp MCP server does

The qune-tech/ocds-mcp MCP server exposes German public procurement search and profile-management operations through MCP. It connects to the Vergabe Dashboard API and returns structured tender results containing fields such as OCID, title, buyer, procurement method, category, value, deadline, award date, CPV codes, phase, document URL, data source, and country.

Semantic search is available through `search_text`. The client embeds the German-language query locally and sends the resulting vector to the API. `list_releases` provides a non-semantic browse path based only on filters such as procurement phase, CPV prefix, country, value range, deadline, category, buyer, procurement method, and data source. Results can be paginated with `limit` and `offset`.

Company-oriented workflows use local profiles. A profile can contain a name, description, CPV codes, categories, and location. `match_tenders` compares a profile embedding with tenders and returns similar results, while the remaining profile tools create, update, inspect, list, and delete profiles.

## How it works

The MCP process runs locally and communicates with an AI client over stdio. Profiles are stored in a local SQLite database, and text embeddings are generated with the multilingual-e5-small ONNX model at 384 dimensions. Search text uses a query prefix; profile descriptions use a passage prefix. The source query and profile description remain on the machine during these operations.

The API receives embedding vectors, requested OCIDs, filter values, and the API key. This limits transmission of the original text, but vectors and usage-related values can still indicate areas of commercial interest. The first embedding operation downloads approximately 118 MB of model files from huggingface.co; later runs use the local cache.

The qune-tech/ocds-mcp MCP server also supports procurement lifecycle inspection. `linked_notices` returns notice references associated with an OCID, and `get_release` retrieves a thin raw eForms XML envelope. An optional notice ID selects a particular sibling notice; otherwise, the latest notice is returned.

## Setup and configuration

Install with `npx @qune-tech/vergabe-mcp` or use a release binary for Linux, macOS Apple Silicon, or Windows. The project can also be built from source with Cargo.

Pass the key with `--api-key` or the `VERGABE_API_KEY` environment variable. Optional command-line settings select the local profiles database, data directory, and API URL. Defaults are `profiles.db`, `data`, and `https://vergabe-dashboard.qune.de`. The model requires roughly 120 MB of disk space and an internet connection is needed for the API.

For offline or air-gapped model setup, place `model.onnx` and `tokenizer.json` in the documented cache directory before running the server.

## Tools and capabilities

The qune-tech/ocds-mcp MCP server provides these capabilities:

- Search procurement records semantically or browse them with structured filters.
- Match tenders against locally maintained company profile embeddings.
- Create, update, retrieve, list, and delete company profiles.
- Check API health, versions, embedding dimensions, and contract compatibility with `get_index_info`.
- Follow a procurement's notice references with `linked_notices`.
- Fetch an OCID's raw eForms XML envelope with `get_release`.

## Limitations and notes

`get_release` returns an intentionally small XML envelope rather than a fully parsed set of eForms fields; clients must parse the XML when they need detailed notice data. Semantic search and matching send vectors, not source text, but the API still sees the selected filters and OCIDs. The embedding model is downloaded on first use unless it is pre-populated in the cache.

`match_tenders` returns up to 100 results and defaults to 10. `list_releases` allows up to 200 records per page. Search and matching depend on embedding-contract compatibility, which can be checked with `get_index_info`. The local software is MIT-licensed, while API access requires the documented key and plan.

_Full upstream README: https://allmcps.com/mcp/qune-tech-ocds-mcp/readme_

