# Payment Risk MCP: Who Pays Late (`digital_influx/payment-risk-mcp`) Actor

MCP server for Claude, ChatGPT, Gemini and Cursor: how long companies and public bodies take to pay suppliers, from official data. UK payment practices reports, French public bodies' payment times and Canada's federal payments to construction contractors.

- **URL**: https://apify.com/digital_influx/payment-risk-mcp.md
- **Developed by:** [Bruno Petrelli](https://apify.com/digital_influx) (community)
- **Categories:** MCP servers, Business, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Payment Risk MCP: Who Pays Late

**An MCP server that tells your AI agent how long a company or a public body takes to pay its suppliers**, from official government data. Connect it to Claude, ChatGPT, Gemini, Cursor or any MCP client and ask: "How fast does Tesco pay its suppliers, and is it getting slower?", "Which public bodies in Paris take more than 60 days to pay?", "When did Canada last pay Pomerleau for federal construction work?"

Three tools, three official sources, no login and no API key:

| Tool | What it answers | Source |
|---|---|---|
| `uk_payment_practices` | How fast a large UK company pays: average days to pay, share of invoices paid late and after 60 days, payment terms and the change since its previous report. Also the slowest payers and the ones getting slower. | UK government payment practices register, every report since 2017 (Open Government Licence v3.0) |
| `france_public_payment_times` | How many days a French commune, department, region or other local public body takes to pay, the days over the 30-day legal limit and the trend from 2023 to 2025. | Ministry of Economy, "Délais de paiement des collectivités territoriales" (Licence Ouverte 2.0) |
| `canada_construction_payments` | Each payment Canada's federal government made to a prime contractor of a construction contract over $100,000: date, contract, days from invoice to payment and the Prompt Payment Act dates for subcontractors. | Public Services and Procurement Canada (Open Government Licence – Canada) |

### Who uses it

- **Sales and account teams:** check a prospect's payment record before quoting.
- **Credit control, invoice finance and factoring:** see who pays in 60, 90 or 120 days, and who is getting slower.
- **Public-sector suppliers:** know how long a French public body takes to pay before you bid.
- **Construction subcontractors in Canada:** see when your prime contractor was paid, and by when it has to pay you.

### Connect

- **Apify's MCP server:** add `https://mcp.apify.com?tools=digital_influx/payment-risk-mcp` to your MCP client.
- **Directly:** the Actor's Standby URL, path `/mcp` (Streamable HTTP), with your Apify token.

Each tool's arguments are the inputs of the Actor it runs (companies, sortBy, minAverageDaysToPay, trend... for the UK; departments, entityTypes, names, sirets, year... for France; vendors, contracts, projects, paidWithinDays, minDaysToPay... for Canada), plus `limit` (default 20, at most 100).

### Standard runs

The Actor also runs without an agent: pick a tool and give its arguments as JSON. The result is saved as one row of the dataset, so it works from the API, schedules and integrations.

```json
{
  "tool": "canada_construction_payments",
  "arguments": { "vendors": ["Pomerleau"], "limit": 5 }
}
```

### Price

This Actor charges nothing itself. Each tool runs one Actor of the same author in your Apify account, and that run bills its records:

| Tool | Actor it runs | Price |
|---|---|---|
| `uk_payment_practices` | UK Late Payers: Payment Practices Reports | USD 0.012 per report |
| `france_public_payment_times` | France Public Sector Late Payers: Payment Times | USD 0.01 per public body |
| `canada_construction_payments` | Canada Federal Construction Payments: Who Got Paid | USD 0.008 per payment |

A search that finds nothing is free. Standby time is billed by Apify as usual.

### Things to know

- **Speed:** the Canadian tool answers in a few seconds and the French one in 10 to 60 seconds (the French API is slow). The UK register is one 105 MB file: the first UK call of the day can take up to 3 minutes; the Actor keeps a copy in your account for 12 hours, so the next calls take seconds.
- **Coverage:** only large UK companies and LLPs must report; French data is per budget of each local public body, by year; the Canadian file holds PSPC construction contracts over $100,000 only.
- **The figures are what each payer reported or what the government published.** Nobody audits the UK reports; values that look wrong are kept and flagged by the Actor that reads them.
- Every tool call in Standby is also saved as a row of the run's dataset, so you keep a record of what the agent asked and got.

### Attribution

Contains public sector information licensed under the Open Government Licence v3.0 (UK payment practices reporting service, Department for Business and Trade); data from the French Ministry of Economy under the Licence Ouverte 2.0, read through data.gouv.fr; and information licensed under the Open Government Licence – Canada (Public Services and Procurement Canada). Not endorsed by any of these governments.

# Actor input Schema

## `tool` (type: `string`):

The tool to call in a standard run. Each one reads official data on how long payers take to pay: large UK companies (payment practices register), French local public bodies (Ministry of Economy) and Canada's federal payments to construction contractors.

## `arguments` (type: `object`):

The tool's arguments as JSON, e.g. uk_payment_practices: {"companies": \["Tesco"], "limit": 10}; france_public_payment_times: {"departments": \["75"], "limit": 20}; canada_construction_payments: {"vendors": \["Pomerleau"], "limit": 5}.

## Actor input object example

```json
{
  "tool": "canada_construction_payments",
  "arguments": {
    "vendors": [
      "Pomerleau"
    ],
    "limit": 5
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tool": "canada_construction_payments",
    "arguments": {
        "vendors": [
            "Pomerleau"
        ],
        "limit": 5
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital_influx/payment-risk-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tool": "canada_construction_payments",
    "arguments": {
        "vendors": ["Pomerleau"],
        "limit": 5,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("digital_influx/payment-risk-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tool": "canada_construction_payments",
  "arguments": {
    "vendors": [
      "Pomerleau"
    ],
    "limit": 5
  }
}' |
apify call digital_influx/payment-risk-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digital_influx/payment-risk-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xJLWYpghRqNhvtnuS/builds/erlbRAVrChx58D6bk/openapi.json
