# tenderapi-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/IDNSIDNS/tenderapi-mcp  
**GitHub Stars:** 0  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tenderapi-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **search_tenders** — Search public procurement tenders from BOAMP (France) and TED (EU).

    Returns a paginated list of tender notices matching the filters.

    Args:
        cpv: Exact CPV code (e.g. "72000000" for IT services).
        cpv_family: 2-digit CPV family prefix (e.g. "72" matches all IT-services CPVs).
        descripteur: BOAMP business descripteur(s), comma-separated (e.g. "couverture" or "etude,btp"). Case-insensitive substring match; targets MAPA notices that carry no CPV code.
        keyword: Full-text search across title and description (accent-insensitive). Words are combined with AND — every word must appear in the SAME notice, so a long space-separated list (e.g. "bathymetric hydrographic survey lidar coastal") almost always returns zero results. For a broad topic search, join synonyms with the OR operator instead, e.g. keyword=bathymétrie OR hydrographie OR lidar OR dredging. TED notices are indexed in their publication language (FR/DE/ES/IT/EN), so include each concept in the relevant languages joined by OR. Comma- or pipe-separated lists are NOT parsed as OR.
        region: French region slug, lowercase (e.g. "occitanie", "ile-de-france", "bretagne"). Pre-2016 region names and INSEE region codes ("11", "76", "84") are accepted as aliases.
        department: French department code (e.g. "75", "2A", "974").
        country: ISO 3166-1 alpha-2 country code (e.g. "FR", "DE"). Alpha-3 (e.g. "FRA") also accepted for supported countries. Defaults to FR for BOAMP.
        source: "boamp" (France) or "ted" (FR/DE/IT/ES/UK). Omit to include both.
        include_planning: When True, include TED prior-information notices (PINs) that announce upcoming procurements. Excluded by default (not yet biddable, no deadline).
        status: "open" or "closed", nothing else. "open" = submission deadline in the future, or unknown on a notice still published. Awarded contracts are not a tender status: use search_awards for those.
        procedure_type: Procurement procedure (e.g. "open", "restricted", "negotiated").
        contract_type: "works" | "supplies" | "services".
        buyer_siret: Exact SIRET of the French contracting authority (14 digits).
        buyer_keyword: Partial match on buyer name.
        budget_min: Minimum estimated budget, EUR.
        budget_max: Maximum estimated budget, EUR.
        include_null_budget: When True, keep tenders with no budget through budget_min/budget_max filters. Excluded by default (budget is sparse).
        deadline_after: ISO date (YYYY-MM-DD); submission deadline after this date.
        deadline_before: ISO date; submission deadline before this date.
        include_null_deadline: When True, keep tenders with no submission deadline through deadline_after/deadline_before filters. Excluded by default (many TED notices carry no parsed deadline).
        published_after: ISO date; published after this date.
        published_before: ISO date; published before this date.
        sort: "date" (default — newest first) or "relevance" (BM25 best-match ranking; requires keyword; title matches outweigh description matches 5:1). With "relevance" each result carries a relevance_score (higher = better match, only comparable within one query). Prefer "relevance" when the user wants the most pertinent notices for a topic rather than the most recent ones. "deadline" lists the soonest submission deadline first, notices without a deadline last; use it when the user asks what closes soon, and combine it with status="open" or deadline_after, otherwise the list starts with notices that closed years ago.
        page: 1-indexed page number.
        page_size: Results per page. Max depends on tier: 20 (free), 50 (Pro).
            Lists stop at row 1000 (page × page_size ≤ 1000): narrow the query instead of paging deeper.
        limit: Alternative to page_size, hard cap on results (server-defined max).

    Returns a dict with keys: total, page, page_size, results (list of tenders),
    and — when the server has something to say about the query itself — `hint`
    and/or `warning`.

    ALWAYS read `hint` when `total` is 0, and act on it before reporting "no
    results" to the user. It is not decoration: the server has already measured
    why the query came back empty and names the fix. Common cases: a date filter
    hides rows that exist ("without it the same query matches 23" — re-run with
    include_null_deadline=true or widened bounds), every word of a multi-word
    keyword must appear in the same notice (re-run with OR between synonyms), or
    the term is indexed in another publication language (re-run with the term in
    FR/DE/ES/IT/EN joined by OR). A 0-result answer that had a hint and did not
    follow it is a wrong answer.
    
- **get_tender** — Fetch the full record of a single tender by its ID.

    Use this after `search_tenders` to get the complete details (description,
    documents, contact info, raw fields) of a specific notice.
    
- **search_awards** — Search award notices: who won which public contract, for how much.

    Requires the Pro tier. A free key gets the exact match count with the rows
    locked (see below); if the user wants the rows, `upgrade_tier` opens checkout.

    Args:
        cpv: Exact CPV code.
        cpv_family: 2-digit CPV family prefix.
        descripteur: BOAMP business descripteur(s), comma-separated; substring match for notices without a CPV code.
        region: French region slug (INSEE region codes like "11" accepted).
        department: French department code.
        country: ISO 3166-1 alpha-2 country code (e.g. "FR", "DE"); alpha-3 also accepted for supported countries.
        source: "boamp" or "ted".
        outcome: Filter by award result: "awarded" | "cancelled" (comma-separated list accepted, e.g. "awarded,cancelled").
        winner_name: Partial match on winning company name.
        winner_siret: Exact winner SIRET (14 digits — one establishment).
        winner_siren: Winner SIREN (9 digits — company level; matches every establishment of the company). Prefer this to aggregate a whole group.
        buyer_siret: Exact buyer SIRET.
        buyer_keyword: Partial match on buyer name.
        keyword: Full-text search across the award notice text (accent-insensitive). Words are combined with AND — every word must appear in the same notice. Join synonyms with the OR operator for a broad search, e.g. keyword=dragage OR dredging OR draguage. Comma- or pipe-separated lists are NOT parsed as OR.
        amount_min: Minimum contract amount, EUR.
        amount_max: Maximum contract amount, EUR.
        awarded_after: ISO date; award date after this.
        awarded_before: ISO date; award date before this.
        has_parent_tender: Filter by linkage to the originating tender (AO). True = only awards linked to their tender; False = only standalone awards (negotiated/direct procedures with no published prior notice). Omit for all.
        published_after: ISO date.
        published_before: ISO date.
        sort: "date" (default — newest first) or "relevance" (BM25 best-match ranking; requires keyword; winner-name matches rank highest, then buyer name, then descripteur — ideal when searching awards by company name). With "relevance" each result carries a relevance_score (higher = better match, only comparable within one query).
        page / page_size / limit: Pagination.

    Returns a dict with keys: total, page, page_size, results (list of awards),
    plus `hint` / `warning` when the server can explain the query, and
    `locked` / `upgrade` on tiers without award access.

    ALWAYS read `hint` when `total` is 0 — see search_tenders for what it does
    and why acting on it matters.

    `locked: true` means award ROWS require the Pro tier; `total`
    is still the exact, unfiltered match count. Report it faithfully: say the
    rows are gated and give the count, do not present it as "no results found".
    Note that `locked` with `total: 0` means the query itself matched nothing —
    the tier is not the obstacle there, so fix the query first (via `hint`)
    before suggesting an upgrade. Use `upgrade_tier` only if the user asks.
    
- **get_award** — Fetch the full record of a single award notice by its ID.

    Requires the Pro tier.
    
- **winner_intel** — Aggregated winner statistics: top companies by contract count and total amount.

    Requires Pro tier. Use for competitive intelligence: "which companies win
    IT contracts in Occitanie in 2025?" or "what has SIRET 12345678901234 won
    across all sectors?".

    Args:
        cpv: CPV code filter.
        cpv_family: 2-digit CPV family prefix filter.
        region: Region slug (INSEE region codes like "11" accepted).
        country: ISO 3166-1 alpha-2 country code (e.g. "FR", "DE"); alpha-3 also accepted for supported countries.
        year: Integer year filter (e.g. 2025).
        winner_siret: Pin to a single establishment (14-digit SIRET).
        winner_siren: Pin to a whole company (9-digit SIREN — aggregates all its establishments).
        limit: Top N results (default 10, max 50).
    
- **search_renewals** — French public contracts reaching their declared end date: likely to be put
    back out to tender. Source: DECP (data.gouv.fr), refreshed weekly. Sorted by
    end date, soonest first. Each row names the current holder(s) when known.

    Requires Pro tier (the free tier sees the match count only). Use for "which
    cleaning contracts in the Var end in the next year?" or "when does this
    town's insurance contract come up again?".

    The end date is DECLARED (notification date + declared duration): depending
    on the buyer it may or may not include renewal options. Say so when quoting it.

    Args:
        department: Department code(s) of the place of execution, e.g. "83" or "83,06".
        cpv: 8-digit CPV code(s), exact match, comma-separated.
        cpv_family: 2-digit CPV family code(s), e.g. "45" (works), "90" (cleaning, waste).
        buyer_siret: SIRET (14 digits) of the public buyer.
        buyer_keyword: Partial buyer name, 3 characters minimum.
        min_months: End date at least this many months from today (default 3).
        max_months: End date at most this many months from today (default 18, max 36).
        page: Page number (1-based).
        page_size: Results per page (max 50 on Pro).
    
- **me** — Return the authenticated key's tier, quota, and available features.

    Useful for the agent to check quota before launching many calls or to pick
    a tier-appropriate strategy. Response includes `tier`, `quota_day_limit`,
    `quota_remaining_today`, `requests_today`, `requests_month`, `features`.
    
- **list_profiles** — List the matching profiles owned by the authenticated key.

    A profile = a saved filter + a delivery channel. New tenders matching the
    profile's criteria are delivered automatically: an EMAIL digest
    (channel="email"), an Adaptive Card to Microsoft TEAMS (channel="teams"),
    or a per-tender push to a WEBHOOK (channel="webhook").

    Free key: 1 profile, email only, sent to the account address every MONDAY
    with the week's new notices. Pro: up to 10 profiles, delivered every morning,
    email, Teams or webhook.
    
- **get_profile** — Fetch a single matching profile by its integer ID.
- **create_profile** — Create a matching profile. New tenders matching the filters are delivered
    automatically as an EMAIL digest (channel="email"), an Adaptive Card to
    Microsoft TEAMS (channel="teams"), or pushed to a WEBHOOK (channel="webhook").

    Free key: pass channel="email" (Teams and webhook return 403). One profile,
    delivered every Monday to the account address (email_to is ignored).
    Pro: up to 10 profiles, delivered every morning, any channel.

    At least one filter (keywords, cpv_codes, regions, departments, siret,
    descripteur_keywords, or a budget range) should be set, otherwise the
    profile matches everything.

    Args:
        name: Human-readable label.
        channel: "email" (email digest: weekly on free, daily on Pro), "teams" (Adaptive Card to a Teams
            workflow URL), or "webhook" (per-tender HTTP push). Defaults to "webhook" if omitted.
        webhook_url: Destination URL for channel="webhook" (JSON POST) or channel="teams"
            (paste the Teams workflow's incoming POST URL).
        email_to: Recipient address for the digest (channel="email", Pro only;
            a free key always delivers to its account address).
        siret: Restrict to a specific buyer.
        keywords: List of substrings matched against title/description.
        cpv_codes: List of exact CPV codes.
        regions: List of French region slugs.
        departments: List of French department codes.
        descripteur_keywords: List of BOAMP business descripteurs (max 20); requires match_descripteur=True. Targets MAPA notices that carry no CPV code.
        budget_min / budget_max: Budget window in EUR.
        match_cpv_family: If true, `cpv_codes` are treated as 2-digit family
            prefixes (e.g. "72" matches every CPV starting with 72).
        match_descripteur: If true, enable matching on `descripteur_keywords` (default false).
        active: Whether the profile is active (default true). Set false to pause webhook deliveries without deleting it.
    
- **update_profile** — Replace a profile's filters and webhook. Only non-None fields are sent;
    fields left as None keep their current value on the server.

    `descripteur_keywords` (with `match_descripteur=True`) matches MAPA notices
    that carry no CPV code. `active=False` pauses webhook deliveries without
    deleting the profile.
    
- **delete_profile** — Delete a matching profile. Stops all future webhook deliveries for it.
- **upgrade_tier** — Start a Stripe Checkout session to upgrade the authenticated key to a
    higher tier. Only "pro" is sold (15 €/month); "starter" was retired on 2026-10-14.

    IMPORTANT: this does NOT charge anything by itself. It returns a
    `checkout_url` that the agent MUST present to the human user. Payment
    requires the user's card on Stripe's hosted page. Once paid, the key is
    automatically upgraded.

    Use this when a tool call fails with 402/403 because the feature is gated
    (`search_awards`, `get_award` and `winner_intel` need Pro), or when the user
    wants their watch delivered every morning instead of every Monday.

    Args:
        tier: "pro" (default, the only tier on sale).
        success_url: Where Stripe redirects after successful payment.
        cancel_url: Where Stripe redirects if the user cancels.

    Returns: {"checkout_url": "...", "session_id": "..."}
    
- **billing_portal** — Return a Stripe Customer Portal URL for the authenticated key.

    The user can manage their subscription, update payment method, download
    invoices, or cancel. Present this URL to the human user; the agent
    cannot interact with the portal directly.
    

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

```json
"mcpServers": {
  "tenderapi-mcp": {
    "command": "uvx",
    "args": ["tenderapi-mcp"],
    "env": {
      "TENDERAPI_KEY": "",
      "TENDERAPI_BASE_URL": ""
    }
  }
}
```

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

## Documentation

## What tenderapi-mcp does

TenderAPI exposes public procurement data from France's BOAMP and the European TED publication system through MCP. Coverage begins in March 2015 for BOAMP and includes TED notices from France, Germany, Italy, Spain, and the UK from 2015 onward. TED data uses legacy XML records through the end of 2023 and eForms afterward; the datasets are refreshed daily.

The main search path is `search_tenders`, which supports filters for CPV codes and families, keywords, regions, departments, countries, buyers, budgets, procedures, contract types, publication dates, and submission deadlines. Results can be ordered by date, relevance, or closing deadline. `get_tender` retrieves the complete record for a selected notice, including descriptions, documents, contacts, and raw fields.

Authenticated keys add award searches, contract-winner analysis, renewal searches, and saved matching profiles. Award tools identify winning companies and amounts; `winner_intel` aggregates results by company, sector, region, or year. `search_renewals` uses DECP data to identify contracts approaching their declared end dates.

## How it works

The hosted endpoint at `https://tenderapi.fr/mcp` uses streamable HTTP and provides anonymous access to tender search and retrieval. It allows up to 30 tool calls per day per IP and does not require installation or an account.

The local package communicates with TenderAPI's REST API over MCP's stdio transport. A free API key provides tender tools and one email alert profile. Pro access adds awards, winner intelligence, renewal searches, and up to 10 profiles with daily email, Microsoft Teams, or webhook delivery. Free profiles send a weekly email to the account address.

Search responses include pagination fields and may include `hint` or `warning` values. When a query returns zero results, the hint can identify issues such as overly strict dates, missing publication-language variants, or an AND-style multi-word keyword search. Planning notices are excluded unless `include_planning` is enabled. Deadline filters also exclude notices without parsed deadlines unless null deadlines are included.

## Setup and configuration

For the hosted option, add the endpoint as a streamable-HTTP MCP server in a compatible client. For local use, install Python 3.10 or newer and the package:

```bash
pip install tenderapi-mcp
```

Create a free key at `https://tenderapi.fr/`, then configure the installed `tenderapi-mcp` executable with `TENDERAPI_KEY`. A source checkout can instead be installed with `pip install -e .`. Claude Desktop stores its configuration in `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `%APPDATA%/Claude/claude_desktop_config.json` on Windows, and `~/.config/Claude/claude_desktop_config.json` on Linux.

The API base URL defaults to `https://tenderapi.fr` and can be changed with `TENDERAPI_BASE_URL`. The server is built against the MCP 1.x API and depends on the `mcp.server.fastmcp` interface.

## Tools and capabilities

- Search and retrieve BOAMP and TED tender notices.
- Search award notices and retrieve individual awards with Pro access.
- Aggregate winning-company counts and contract amounts with `winner_intel`.
- Find contracts approaching their declared end dates through DECP data.
- Inspect API-key tier, quota, and enabled features with `me`.
- Create, update, list, retrieve, and delete tender alert profiles.
- Generate Stripe checkout and billing-portal links.

The service limits paginated result lists at row 1,000. Free and Pro keys have different daily and per-minute request limits, and some result pages or tools require Pro access. A free key can still receive an exact award match count when award rows are locked, while the hosted keyless mode is limited to tender operations.

_Full upstream README: https://allmcps.com/mcp/tenderapi-mcp/readme_

