Skip to main content
Glama

RHR MCP

MCP server that gives AI agents structured access to Public Procurement Registry data. Query procurements, awards, buyers, and winning suppliers using natural language through any MCP-compatible client.

Tech Stack

  • Runtime — Bun >= 1.4.0

  • Language — TypeScript 7

  • Database — PostgreSQL

  • Query builder — Kysely

  • Validation — Zod

  • Tooling — Oxfmt and Oxlint

Related MCP server: mcp-prozorro

Prerequisites

Download open data

Download the public datasets from:

https://riigihanked.riik.ee/rhr-web/#/open-data

Place the unzipped files directly in the data/ folder at the project root. For example, a full year looks like:

  • HT_2025_1.xml

  • HT_2025_2.xml

  • HT_2025_3.xml

  • HT_2025_4.xml

  • HT_2025_5.xml

  • HT_2025_6.xml

  • HT_2025_7.xml

  • HT_2025_8.xml

  • HT_2025_9.xml

  • HT_2025_10.xml

  • HT_2025_11.xml

  • HT_2025_12.xml

  • HLST_2025_1.xml

  • HLST_2025_2.xml

  • HLST_2025_3.xml

  • HLST_2025_4.xml

  • HLST_2025_5.xml

  • HLST_2025_6.xml

  • HLST_2025_7.xml

  • HLST_2025_8.xml

  • HLST_2025_9.xml

  • HLST_2025_10.xml

  • HLST_2025_11.xml

  • HLST_2025_12.xml

HT_*.xml files are contract notices. HLST_*.xml files are contract award notices. Add any year the same way (HT_2024_1.xml, HT_2027_1.xml, and so on) — ingest picks up every matching file in data/.

Getting Started

git clone https://github.com/margusliinev/rhr-mcp.git
cd rhr-mcp
cp .env.example .env
bun install
docker compose up -d
bun run migrate
bun run ingest
bun run dev

The MCP endpoint is available at http://localhost:3002/mcp.

Use with Cursor

With the server running, add this to your Cursor MCP config (.cursor/mcp.json):

{
    "mcpServers": {
        "RHR": {
            "url": "http://localhost:3002/mcp"
        }
    }
}

Then restart MCP / reload Cursor so the RHR server shows up.

Available tools

Tool

Description

get-organization

Get an organization by id or registry code

get-procurement

Get a procurement with buyers, lots, and award summaries

get-award

Get an award with suppliers, lot, and procurement summary

list-organization-procurements

List procurements where an organization is a buyer

list-organization-awards

List awards where an organization is a winning supplier

list-procurement-lots

List lots for a procurement, with award summaries linked by lot id

search-organizations

Search organizations by name or registry code

search-procurements

Search and filter procurements by text, status, CPV, value, and more

search-awards

Search awards by amount, date, CPV, result, and supplier

Scripts

Command

Description

bun run dev

Start development server

bun run start

Start production server

bun run migrate

Apply database migrations

bun run ingest

Load RHR data from data/ into Postgres

bun run format

Format code

bun run lint

Lint code

bun run typecheck

Typecheck

License

MIT

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides real-time, high-quality tender information from Taiwan's government e-procurement website via enhanced web scraping, enabling AI to query and analyze procurement opportunities.
    14
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides access to Ukraine's public procurement data (ProZorro) via MCP, keyless and integrated with Pipeworx gateway for AI agents.
    13
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for accessing Moldova Government Procurement (MTender) data, allowing AI agents to query tender information without an API key.
    12
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    An MCP server for U.S. public-records data, enabling AI agents to search business registrations, screen names against government watchlists, and pull federal awards.
    40
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for French (BOAMP) + EU (TED) public procurement data via TenderAPI.

  • Government tenders, awards and pre-tender pipelines from 21 official sources as MCP tools.

  • Hosted MCP server exposing US hospital procedure cost data to AI assistants

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/margusliinev/rhr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server