Skip to main content
Glama

RHR MCP

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

Prerequisites

  • Bun >= 1.4.0

  • PostgreSQL (via Docker Compose below, or Postgres.app / any local Postgres)

Related MCP server: Taiwan Tender MCP

Getting Started

1. Clone and install

git clone https://github.com/margusliinev/rhr-mcp.git
cd rhr-mcp
cp .env.example .env
bun install

The default DATABASE_URL in .env.example is:

postgresql://postgres:postgres@127.0.0.1:5432/postgres

2. Start PostgreSQL

Option A — Docker Compose (matches the default DATABASE_URL):

docker compose up -d

Option B — Postgres.app / other local Postgres

Create a database reachable with the same DATABASE_URL, or update .env to match your setup.

3. Download open data

Download the public datasets from:

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

Unzip them into the data/ folder at the project root.

4. Migrate and ingest

bun run migrate
bun run ingest

Ingest loads the XML files into Postgres. It can take a while depending on disk and machine. Re-running ingest on a database that already has data will fail on unique constraints.

5. Start the server

bun run dev

The MCP endpoint is available at http://localhost:3000/mcp (or whatever PORT you set in .env).

Use with Cursor

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

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

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

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

Tech Stack

  • Runtime — Bun >= 1.4.0

  • Language — TypeScript 7

  • Database — PostgreSQL

  • Query builder — Kysely

  • Validation — Zod

  • Tooling — Oxfmt and Oxlint

License

MIT

F
license - not found
-
quality - not tested
C
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
    -
    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
    -
    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

View all related MCP servers

Related MCP Connectors

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

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

  • UK public procurement data for AI agents: tenders, contracts, buyer and supplier profiles.

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