Documentation
Last updated 1 December 2026
Mirai Insights Data gives AI assistants and developers clean, cited South African public-sector data: municipal finances and audit outcomes from National Treasury's Municipal Money, government tenders and contract awards from eTenders, and interest and exchange rates from the South African Reserve Bank. Every result carries an attribution block with the source, a link and the retrieval date.
Connection details
| What | Value |
|---|---|
| MCP server (Streamable HTTP) | https://mcp.mirai-insights.com/mcp |
| Authentication | None for the open tier. API access: header X-API-Key: <key> or Authorization: Bearer <key> |
| REST base | https://mcp.mirai-insights.com/v1 |
| Get a key | Self-serve sign-up: key issued instantly with R50 starter credit, or POST /v1/signup |
| Status | mcp.mirai-insights.com/health |
To add it to Claude, ChatGPT, Cursor or VS Code, follow the steps on Get started or see Support.
Open-tier tools (no sign-in)
| Tool | What it does |
|---|---|
muni_find | Find a municipality by name or demarcation code (e.g. "Cape Town", "CPT", "WC023"). |
muni_audit_outcomes | Auditor-General audit opinions for a municipality, newest first, with report links. |
muni_uifw_expenditure | Unauthorised, irregular, fruitless and wasteful expenditure for the latest financial year. |
muni_financial_position | Balance sheet headline (cash, assets, liabilities, net assets) and current ratio. |
muni_data_coverage | Which financial years and months National Treasury has published so far. |
tenders_search | Search eTenders by keyword, buyer and release date over windows of up to 7 days. |
tenders_closing_soon | Open tenders closing in the next N days, soonest first. |
tenders_get_release | One tender or contracting process by its OCDS id, contact details removed. |
sarb_key_rates | Repo, prime, JIBAR, ZARONIA, T-bill, R2030 yield, CPI and USD/ZAR with as-of dates. |
sarb_market_rates | All current SARB market rates, optionally by section. |
sarb_exchange_rates | Latest SARB daily rand exchange rates. |
briefs_list | Mirai's published data release briefs, newest first. |
brief_get | The full text of one release brief. |
API-access tools (API key and prepaid ZAR wallet)
These are available over REST and over MCP with an API key. They aren't part of the ChatGPT and Claude directory listings.
| Tool | What it does | Per call |
|---|---|---|
awards_search | Contract awards by buyer, supplier and value across recent processes. | R2.00 |
sarb_series_history | History of a SARB series (repo, prime, JIBAR, CPI, USD/ZAR or a SARB code). | R1.00 |
sarb_rate_changes | Every change in a rate since a date, with basis-point moves. | R1.00 |
joined_municipality_profile | One-call municipal profile across audit, expenditure, balance sheet, tenders and prime. | R5.00 |
snapshot_history | Stored versions of a source dataset, including values the publisher has since overwritten. | R1.00 |
Wider queries on open-tier tools (a tender window over 7 days, or more than one year of municipal expenditure) are charged at R1.00. Failed upstream calls are refunded automatically. Deeds and property data is available to verified businesses only, by arrangement. Get an API key instantly on the Get started page.
Self-serve API (no human approval)
| Call | What it does |
|---|---|
POST /v1/signup | JSON {"email", "purpose", "accept_terms": true, "promo_code"?}. Returns the API key once, with R50 starter credit. One key per email address; sign-ups per network are rate-limited; disposable email domains are refused. |
GET /v1/billing/balance | Wallet balance in rand (header X-API-Key). |
GET /v1/billing/statement | Ledger of credits, charges and refunds. |
POST /v1/billing/topup | JSON {"amount_zar": 100} (R50 to R20,000). Returns signed PayFast checkout fields; post them to the returned action URL. |
GET /v1/billing/topup/{ref} | Status of one top-up and the balance after it. |
POST /v1/billing/redeem | JSON {"code": "..."}: adds a promo code's credit to your wallet. |
curl -X POST https://mcp.mirai-insights.com/v1/signup -H "Content-Type: application/json" \
-d '{"email":"you@company.co.za","purpose":"tender alerts","accept_terms":true}'
Usage licence: results may be used to answer questions, including by AI agents, but not to train, fine-tune or evaluate AI models or to build training datasets. Text and data mining rights are reserved (EU DSM Art. 4(3)); every response carries TDM-Reservation: 1 and a meta.usage_licence notice. See the terms.
An invalid or revoked key never blocks open-tier tools: those calls are served anonymously. Priced tools need a valid key with credit.
Example prompts
- "What audit opinion did the City of Cape Town get for its latest financial year?"
- "How much irregular and wasteful expenditure did Stellenbosch report most recently?"
- "Show me government tenders for solar installations published this week."
- "Which tenders from the Department of Health close in the next 5 days?"
- "What are the repo and prime rates today, and what's the rand doing against the dollar?"
- "Is Buffalo City's balance sheet healthy? Give me its current ratio and cash position."
- "How up to date is National Treasury's municipal data?"
REST examples
curl https://api.mirai-insights.com/v1/tools
curl "https://api.mirai-insights.com/v1/tools/muni_audit_outcomes?municipality=Cape%20Town"
curl -X POST https://api.mirai-insights.com/v1/tools/tenders_closing_soon \
-H "content-type: application/json" -d '{"days": 5, "query": "solar"}'
curl -X POST https://api.mirai-insights.com/v1/tools/sarb_rate_changes \
-H "X-API-Key: $MIRAI_KEY" -H "content-type: application/json" -d '{"series": "repo", "since": "2024-01-01"}'
Every response has the shape {"tool", "data", "meta", "attribution", "billing"}. Errors return a JSON {"error": "..."} with an HTTP status: 400 bad input, 401 key needed, 402 insufficient credit, 429 limit reached, 502 source unavailable.
Sources and licences
- National Treasury Municipal Money: terms of use. Data reported by municipalities.
- National Treasury eTenders OCDS: publication policy, PDDL 1.0. Officials' contact details removed.
- South African Reserve Bank: reproduced with acknowledgement of the SARB as the source.
Not endorsed by the publishers. Not financial advice. See the terms of use and privacy policy.