# SA Municipal Finance MCP

> SA Municipal Finance MCP is a freemium MCP server for finance and payments. MCP server giving AI assistants South African municipal finance data and Treasury health. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $15 a month
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/kramdayal-create/sa-municipal-finance-mcp
- **MCP Registry name:** io.github.kramdayal-create/sa-municipal-finance-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [public data](https://ai-powered.com/categories/public-data)
- **Listing updated:** 2026-11-27

## About

Municipal finances in South Africa are published as large datasets that are hard to read quickly. This server lets an MCP client such as Claude Desktop or Cursor query National Treasury's Municipal Money data for all 257 municipalities and return the nine-indicator financial health scorecard, audit opinions with report links, and monthly creditor ageing.

The server runs locally via npm over stdio and queries National Treasury directly. Several tools are free and need no account; a Pro licence key unlocks trend analysis, supplier payment risk bands, and multi-municipality comparisons.

It suits suppliers and contractors judging whether a municipality pays on time, lenders and analysts reviewing municipal credit, and researchers or journalists working with public audit data.

## Features

- **Treasury scorecard calculation:** Computes nine financial health indicators for an audited year and rates each as good, average or bad.
- **Supplier payment ageing:** Shows how long debts to suppliers, Eskom and water boards have been outstanding in monthly returns.
- **Audit outcome history:** Lists Auditor-General opinions by year for a municipality with links to the audit reports.
- **Customer debt and collection:** Reports money owed to a municipality, its age and the collection rate.
- **Municipality comparison:** Ranks up to 20 municipalities, or a whole province or category, on financial indicators.

## Good for

- Checking whether a municipality is likely to pay a supplier or contractor on time before bidding
- Reviewing audit outcomes across several years for a municipality
- Comparing financial health of municipalities in a province or metro group
- Researching municipal infrastructure budgets and how much was spent
- Assessing municipal credit risk for lending or investment analysis

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add sa-municipal-finance-mcp --env SAMUNI_LICENSE_KEY='<SAMUNI_LICENSE_KEY>' -- npx -y sa-municipal-finance-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add sa-municipal-finance-mcp --env SAMUNI_LICENSE_KEY='<SAMUNI_LICENSE_KEY>' -- npx -y sa-municipal-finance-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.sa-municipal-finance-mcp]
command = "npx"
args = ["-y", "sa-municipal-finance-mcp"]
env = { SAMUNI_LICENSE_KEY = "<SAMUNI_LICENSE_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SAMUNI_LICENSE_KEY='<SAMUNI_LICENSE_KEY>' sa-municipal-finance-mcp npx -- -y sa-municipal-finance-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sa-municipal-finance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sa-municipal-finance-mcp"
      ],
      "env": {
        "SAMUNI_LICENSE_KEY": "<SAMUNI_LICENSE_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 9 tools read data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `find_municipality` (name suggests: reads): Find municipalities by name, province or type and get their codes
- `municipality_profile`: Contact details and Auditor-General opinions by year, with report links
- `financial_health`: Treasury's nine indicators for one audited year, rated good / average / bad
- `infrastructure_spending`: Latest capital budget and share of the last audited budget spent
- `customer_debt`: Money owed to the municipality, its age and the collection rate
- `health_trend`: The nine indicators over up to seven years with improving or worsening flags
- `supplier_payment_risk`: Money owed to suppliers, Eskom and water boards by age with a low, moderate or high risk band
- `compare_municipalities`: Ranks up to 20 municipalities or a whole province or category
- `samuni_status` (name suggests: reads): Shows the user's tier

## FAQ

### Which data does SA Municipal Finance MCP use?

It reads National Treasury's Municipal Money data, using audited figures from the mSCOA data from 2019/20 onwards.

### Do I need a licence to use SA Municipal Finance MCP?

Several tools are free and need no account. Pro unlocks health trends, supplier payment risk, comparisons and full breakdowns.

### What does Pro cost?

Pro is $149 a year or $15 a month, with a founding offer of 50% off the first year for the first 20 customers.

### What does the payment risk band not cover?

Treasury returns show how old a debt is but not why, so disputes, court orders, payment plans and claims are not visible to the tool.

### How do I add SA Municipal Finance MCP to Claude Code?

Run this command in your terminal: claude mcp add sa-municipal-finance-mcp --env SAMUNI_LICENSE_KEY='<SAMUNI_LICENSE_KEY>' -- npx -y sa-municipal-finance-mcp

### What are the best alternatives to SA Municipal Finance MCP?

The closest alternatives to SA Municipal Finance MCP are MuniSpot Municipal Data, Sgdata MCP, Finance Intelligence MCP, Cerebro MCP and Mkopo MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MuniSpot Municipal Data](https://ai-powered.com/mcp/munispot-municipal-data): MuniSpot Municipal Data is a freemium MCP server for finance and payments.
- [Sgdata MCP](https://ai-powered.com/mcp/sgdata-mcp): Sgdata MCP is an open-source MCP server for public data.
- [Finance Intelligence MCP](https://ai-powered.com/mcp/finance-intelligence-mcp): Finance Intelligence MCP is an open-source MCP server for finance and payments.
- [Cerebro MCP](https://ai-powered.com/mcp/cerebro-mcp): Cerebro MCP is a freemium MCP server for public data.
- [Mkopo MCP](https://ai-powered.com/mcp/mkopo-mcp): Mkopo MCP is an open-source MCP server for finance and payments.
- [Swiss Efv MCP](https://ai-powered.com/mcp/swiss-efv-mcp): Swiss Efv MCP is an open-source MCP server for public data.
- [FinanceQuery](https://ai-powered.com/mcp/financequery): FinanceQuery is an open-source MCP server for finance and payments.
- [Olvik Labs B2B & Financial Intelligence MCP](https://ai-powered.com/mcp/olvik-labs-b2b-and-financial-intelligence-mcp): Olvik Labs B2B & Financial Intelligence MCP is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/sa-municipal-finance-mcp
