{
  "openapi": "3.1.0",
  "info": {
    "title": "UK Business Calendar MCP",
    "description": "UK working days, bank holidays, HMRC and Companies House deadlines.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with an X-PAYMENT header (x402 v1, scheme exact, USDC on Base). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://uk-business-calendar-mcp.donniertf.workers.dev/mcp. Manifest: https://uk-business-calendar-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.1.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://uk-business-calendar-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with an X-PAYMENT header (x402, USDC on Base). The MCP transport is at /mcp. UK working days, bank holidays, HMRC and Companies House deadlines."
  },
  "servers": [
    {
      "url": "https://uk-business-calendar-mcp.donniertf.workers.dev",
      "description": "UK Business Calendar MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/next_bank_holidays": {
      "post": {
        "summary": "FREE. Next 3 UK bank holidays for a nation, plus whether today is a working day.",
        "description": "FREE. Next 3 UK bank holidays for a nation, plus whether today is a working day.",
        "operationId": "post_x402_next_bank_holidays",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "FREE. Next 3 UK bank holidays for a nation, plus whether today is a working day. (query or 402 probe)",
        "description": "FREE. Next 3 UK bank holidays for a nation, plus whether today is a working day. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_next_bank_holidays",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/working_days": {
      "post": {
        "summary": "PRO. Count UK working days between two dates (excludes weekends + bank holidays for the nation).",
        "description": "PRO. Count UK working days between two dates (excludes weekends + bank holidays for the nation).",
        "operationId": "post_x402_working_days",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Count UK working days between two dates (excludes weekends + bank holidays for the nation). (query or 402 probe)",
        "description": "PRO. Count UK working days between two dates (excludes weekends + bank holidays for the nation). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_working_days",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/due_date": {
      "post": {
        "summary": "PRO. Invoice/contract due date: add N working days or N calendar days (rolled to next working day) to a date. Includes Late Payment Act 30-day default.",
        "description": "PRO. Invoice/contract due date: add N working days or N calendar days (rolled to next working day) to a date. Includes Late Payment Act 30-day default.",
        "operationId": "post_x402_due_date",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Invoice/contract due date: add N working days or N calendar days (rolled to next working day) to a date. Includes Late Payment Act 30-day default. (query or 402 probe)",
        "description": "PRO. Invoice/contract due date: add N working days or N calendar days (rolled to next working day) to a date. Includes Late Payment Act 30-day default. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_due_date",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/tax_deadlines": {
      "post": {
        "summary": "PRO. Upcoming HMRC and Companies House deadlines for the next N months; add company_year_end for Corporation Tax, CT600 and accounts dates.",
        "description": "PRO. Upcoming HMRC and Companies House deadlines for the next N months; add company_year_end for Corporation Tax, CT600 and accounts dates.",
        "operationId": "post_x402_tax_deadlines",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "months": {
                    "type": "number"
                  },
                  "company_year_end": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Upcoming HMRC and Companies House deadlines for the next N months; add company_year_end for Corporation Tax, CT600 and accounts dates. (query or 402 probe)",
        "description": "PRO. Upcoming HMRC and Companies House deadlines for the next N months; add company_year_end for Corporation Tax, CT600 and accounts dates. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_tax_deadlines",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "months",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "company_year_end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "YYYY-MM-DD"
            }
          }
        ]
      }
    },
    "/x402/month_planner": {
      "post": {
        "summary": "PRO. For a month: working days count, bank holidays, payday suggestions (last working day / 25th rolled back) and deadlines.",
        "description": "PRO. For a month: working days count, bank holidays, payday suggestions (last working day / 25th rolled back) and deadlines.",
        "operationId": "post_x402_month_planner",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. For a month: working days count, bank holidays, payday suggestions (last working day / 25th rolled back) and deadlines. (query or 402 probe)",
        "description": "PRO. For a month: working days count, bank holidays, payday suggestions (last working day / 25th rolled back) and deadlines. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_month_planner",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/news_quick": {
      "post": {
        "summary": "FREE. Quick news & facts lookup for a topic: top Wikipedia matches (with summary) and top Hacker News stories from the last 30 days. No key.",
        "description": "FREE. Quick news & facts lookup for a topic: top Wikipedia matches (with summary) and top Hacker News stories from the last 30 days. No key.",
        "operationId": "post_x402_news_quick",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "FREE. Quick news & facts lookup for a topic: top Wikipedia matches (with summary) and top Hacker News stories from the last 30 days. No key. (query or 402 probe)",
        "description": "FREE. Quick news & facts lookup for a topic: top Wikipedia matches (with summary) and top Hacker News stories from the last 30 days. No key. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_news_quick",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/news_search": {
      "post": {
        "summary": "PRO ($0.01). Search worldwide online news (GDELT DOC 2.0, 65+ languages) for a topic: latest articles with headline, URL, outlet domain, time seen and source country. Options: days (1-90, default 7), uk_only, lang (e.g. english), max (≤50).",
        "description": "PRO ($0.01). Search worldwide online news (GDELT DOC 2.0, 65+ languages) for a topic: latest articles with headline, URL, outlet domain, time seen and source country. Options: days (1-90, default 7), uk_only, lang (e.g. english), max (≤50).",
        "operationId": "post_x402_news_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO ($0.01). Search worldwide online news (GDELT DOC 2.0, 65+ languages) for a topic: latest articles with headline, URL, outlet domain, time seen and source country. Options: days (1-90, default 7), uk_only, lang (e.g. english), max (≤50). (query or 402 probe)",
        "description": "PRO ($0.01). Search worldwide online news (GDELT DOC 2.0, 65+ languages) for a topic: latest articles with headline, URL, outlet domain, time seen and source country. Options: days (1-90, default 7), uk_only, lang (e.g. english), max (≤50). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_news_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/tech_news_search": {
      "post": {
        "summary": "PRO ($0.01). Search Hacker News stories (via Algolia) for a company, product or topic: title, link, points, comments. Options: days (default 30), min_points, sort ('relevance' or 'recent'), max (≤30).",
        "description": "PRO ($0.01). Search Hacker News stories (via Algolia) for a company, product or topic: title, link, points, comments. Options: days (default 30), min_points, sort ('relevance' or 'recent'), max (≤30).",
        "operationId": "post_x402_tech_news_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO ($0.01). Search Hacker News stories (via Algolia) for a company, product or topic: title, link, points, comments. Options: days (default 30), min_points, sort ('relevance' or 'recent'), max (≤30). (query or 402 probe)",
        "description": "PRO ($0.01). Search Hacker News stories (via Algolia) for a company, product or topic: title, link, points, comments. Options: days (default 30), min_points, sort ('relevance' or 'recent'), max (≤30). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_tech_news_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/facts_search": {
      "post": {
        "summary": "PRO ($0.01). Wikipedia search for background facts: up to 10 matching articles with snippets, and summaries for the top 3.",
        "description": "PRO ($0.01). Wikipedia search for background facts: up to 10 matching articles with snippets, and summaries for the top 3.",
        "operationId": "post_x402_facts_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO ($0.01). Wikipedia search for background facts: up to 10 matching articles with snippets, and summaries for the top 3. (query or 402 probe)",
        "description": "PRO ($0.01). Wikipedia search for background facts: up to 10 matching articles with snippets, and summaries for the top 3. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_facts_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/news_briefing": {
      "post": {
        "summary": "PRO ($0.01). One-call briefing on a company or topic: latest GDELT news (optionally UK outlets only), Hacker News discussion and Wikipedia background.",
        "description": "PRO ($0.01). One-call briefing on a company or topic: latest GDELT news (optionally UK outlets only), Hacker News discussion and Wikipedia background.",
        "operationId": "post_x402_news_briefing",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO ($0.01). One-call briefing on a company or topic: latest GDELT news (optionally UK outlets only), Hacker News discussion and Wikipedia background. (query or 402 probe)",
        "description": "PRO ($0.01). One-call briefing on a company or topic: latest GDELT news (optionally UK outlets only), Hacker News discussion and Wikipedia background. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_news_briefing",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    }
  }
}