SA Municipal Finance MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SA Municipal Finance MCP How healthy are Stellenbosch's finances?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SA Municipal Finance MCP
Ask your AI assistant how any South African municipality is really doing: cash, debts, audit outcomes, and whether it pays its suppliers on time.
SA Municipal Finance MCP is a Model Context Protocol server for Claude Desktop, Cursor and other MCP clients. It reads National Treasury's Municipal Money data for all 257 municipalities and turns it into Treasury's own financial health scorecard, with audit reports and monthly creditor ageing.
Built for suppliers and contractors bidding for municipal work, consultants, lenders and investors, journalists, researchers and civic organisations.
Treasury's scorecard, calculated for you. Nine indicators (cash coverage, liquidity, debtor collection, wasteful expenditure, repairs and maintenance, budget spending and more), each rated against Treasury's benchmarks.
Will they pay me? Monthly creditor returns show how long suppliers, Eskom and water boards wait to be paid.
Audit outcomes with sources. Every Auditor-General opinion by year, linked to the audit report.
No account needed for the free tools. Data is read live from National Treasury.
Tools
Tool | Tier | What it does |
| Free | Find municipalities by name, province or type and get their codes |
| Free | Contact details and Auditor-General opinions by year, with report links |
| Free | Treasury's nine indicators for one audited year, rated good / average / bad |
| Pro | The nine indicators over up to seven years, with improving/worsening flags |
| Pro | Money owed to suppliers, Eskom and water boards by age, recent trend and a low/moderate/high risk band |
| Pro | Rank up to 20 municipalities, or a whole province or category (e.g. all metros) |
| Free | Shows your tier |
Related MCP server: mcp-south-africa-tenders
Install
Requires Node.js 18.17 or newer.
Claude Desktop
Open Settings → Developer → Edit Config and add:
{
"mcpServers": {
"sa-municipal-finance": {
"command": "npx",
"args": ["-y", "sa-municipal-finance-mcp"],
"env": {
"SAMUNI_LICENSE_KEY": ""
}
}
}
}Restart Claude Desktop.
Cursor and other MCP clients
Use the same command, args and env in your client's MCP configuration (for Cursor: .cursor/mcp.json).
Example questions
"How healthy are Stellenbosch's finances? Use the Treasury scorecard."
"I've been invited to tender for Emfuleni. How long does it take to pay its suppliers?"
"Compare the cash coverage and collection rates of all eight metros."
"Show Drakenstein's audit outcomes for the last five years with links to the reports."
"Rank the local municipalities in the Western Cape by financial health."
Pro
Pro unlocks health_trend, supplier_payment_risk and compare_municipalities.
$149 a year or $15 a month (R2,499 / R249). Founding offer: code MUNIFOUNDING takes 50% off your first year, for the first 20 customers.
Buy Pro at buy.polar.sh. Your licence key appears on the confirmation page and in your Polar customer portal.
Paste it as the value of
SAMUNI_LICENSE_KEYin your MCP client config.Restart the client and ask it to run
samuni_statusto confirm.
The key is checked with Polar, our payment provider, about once every six hours. Only the key is sent, never your questions.
How the indicators are calculated
Formulas, line items and rating bands follow National Treasury's Municipal Money scorecard (MFMA Circular 71), using audited figures from the mSCOA data (2019/20 onwards). Where a municipality reported no adjusted budget, the original budget is used and the output says so. Missing figures are shown as "no data", never as zero.
The supplier payment risk band is Root 7's own heuristic, not a Treasury rating. It looks at the share of trade-creditor and bulk electricity and water debt older than 30 and 90 days in the latest monthly return. The MFMA (section 65(2)(e)) requires municipalities to pay within 30 days.
Good to know
Data quality. Figures are as submitted by municipalities and may be incomplete or revised. Monthly creditor returns are unaudited and usually a few months behind.
Not advice. Outputs are informational and are not financial, credit, legal or investment advice.
Source and attribution. Data: National Treasury, Municipal Money (municipaldata.treasury.gov.za), used under its terms of use. Indicator methodology: OpenUp / Code for South Africa (MIT). This product is not affiliated with or endorsed by National Treasury.
Privacy. The server runs on your machine and queries National Treasury directly. It does not use the personal details of municipal officials.
Support
Questions or bugs: open an issue or email hello@root7.co.za.
SA Municipal Finance MCP is built by Root 7 (Pty) Ltd, South Africa.
Available Tools
7 toolscompare_municipalitiesCompare municipalities (Pro)BRead-only
Pro: rank municipalities on Treasury's financial health indicators for their latest audited year. Give a list of up to 20 municipalities, or a province and/or category (e.g. all metros, or all local municipalities in the Western Cape).
Inputs: sort_by, category, province, municipalities.
financial_healthMunicipal financial health scorecardARead-only
National Treasury's nine financial health indicators for one municipality and one audited year: cash balance, cash coverage, current ratio, liquidity ratio, debtor collection rate, unauthorised/irregular/wasteful expenditure, repairs and maintenance, and operating and capital budget spending. Each is rated good, average or bad against Treasury benchmarks.
Inputs: municipality (required), year.
find_municipalityFind a South African municipalityARead-only
Look up South African municipalities by name, province or type and get their demarcation codes (needed by the other tools). Covers all metros, local and district municipalities.
Inputs: limit, query, category, province.
health_trendFinancial health trend (Pro)ARead-only
Pro: the nine Treasury financial health indicators side by side for up to seven audited years, with an improving/worsening flag for each.
Inputs: municipality (required), years.
municipality_profileMunicipality profile and audit outcomesARead-only
Basic details for a South African municipality plus its Auditor-General audit opinions by year, with links to the audit reports.
Inputs: municipality (required).
samuni_statusStatusARead-only
Show the server version, licence tier and which tools are available.
Inputs: no named parameters.
supplier_payment_riskSupplier payment risk (Pro)ARead-only
Pro: how long a municipality takes to pay its suppliers, from its latest monthly creditor returns. Shows money owed by creditor type (trade creditors, bulk electricity, bulk water, statutory deductions), the share older than 30 and 90 days, the recent monthly trend, and a low/moderate/high risk band. Useful before bidding for, or delivering on, a municipal contract.
Inputs: municipality (required), months.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a largely distinct role: lookup, profile, single-year indicators, multi-year trend, cross-municipality ranking, supplier payment behaviour, and server status. The main soft spot is find_municipality versus municipality_profile, both of which surface municipality details, though the descriptions (demarcation codes vs AG audit opinions) make the boundary workable.
Everything is snake_case, which keeps it readable, but the conventions are mixed: some tools use verb_noun (find_municipality, compare_municipalities) while others are bare resource nouns (municipality_profile, financial_health, health_trend, supplier_payment_risk) and one is prefixed with a server name (samuni_status). A predictable verb_noun pattern is not maintained.
Seven tools is well within a healthy range and each one maps to a distinct job in the municipal-finance workflow (find, profile, diagnose, trend, benchmark, supplier risk, status). No tool feels like padding or a duplicate entry.
The surface covers the core lifecycle: discover a municipality, view its profile and audit history, inspect financial health for one year and across years, benchmark against peers, and assess supplier payment risk. Minor gaps remain around underlying budget/expenditure line items and audit report contents, but the primary analysis paths have no dead ends.
Maintenance
Related MCP Connectors
Local government intelligence for AI agents.
Financial data, fiscal health scores, and economic indicators for 20,000+ U.S. municipalities.
Connect your AI assistant to governed tender and RFP dossiers: sources, versions, decisions.
Official cited financial data layer for AI agents (SEC EDGAR, FRED, ECB, Treasury, GLEIF).
Related MCP Servers
AlicenseAqualityDmaintenanceGives AI assistants access to SEC filings, BLS employment, Census demographics, and SBA lending data via natural language queries.60MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query South Africa government tender data from National Treasury eTenders via a keyless MCP gateway.62 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query Brazilian municipal transparency portals for payroll, expenses, contracts, bids, revenues, and legislation using natural language in Portuguese.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to search, profile, and compare 20,000+ U.S. municipalities, returning financial health scores, budget and debt figures, and economic or demographic indicators. Supports historical score trends across fiscal years and side-by-side comparisons of multiple entities.6MIT