Back to Directory/Developer Tools

io.github.gabrielmahia/county-mcp

MCP server for Kenyan county-government services and coordination

Developer ToolsPythonv0.1.4

county-mcp

Why This Exists

Kenya's 2010 Constitution devolved substantial budget and service delivery to 47 counties, but county-level demographics, budgets, ward structures and contacts are published inconsistently across 47 different sites. Devolution only works if citizens can actually see what their county controls.

Install

pip install county-mcp

Tools (6)

  • county_information —
    args: county, region
  • county_budget_guide — Return budget allocation, development fund, and financial accountability data for a Kenya county.
    args: county
  • county_services_guide — List and describe devolved government services available at county level in Kenya.
    args: service
  • cdf_guide —
    args: no arguments
  • ward_information — Return ward and constituency breakdown for a Kenya county.
    args: county
  • county_contact_directory — Return official contact information for Kenya county government offices.
    args: county

Example

from county_mcp.server import county_information

result = county_information(county='Kiambu')
# demographics, budget allocation, services, contacts

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "county-mcp": {
      "command": "python",
      "args": ["-m", "county_mcp.server"]
    }
  }
}

Data & Disclaimers

County figures are reference data compiled from public sources. Budgets change each fiscal year — verify against the Controller of Budget (cob.go.ke) and the county's own publications.

Every tool response carries a source field. Responses labelled DEMO are illustrative reference data, not a live feed — verify against the authority named in the response before acting on it.

Part of the East Africa Coordination Stack

This MCP server is one of 32 tools in the Kenya coordination infrastructure. It connects to africa-coord-bus — the coordination event bus that routes signals between domains automatically.

When this server detects a threshold condition, the bus notifies:

  • bima-mcp — parametric insurance evaluation
  • kilimo-mcp — agricultural advisory
  • afya-mcp — health surveillance activation
  • county-mcp — county office alert
pip install africa-coord-bus

All servers: pypi.org/user/gmahia

IP & Collaboration

MIT licensed. Feedback via GitHub Issues only — pull requests are not accepted. Demo data is labeled DEMO and is not suitable for operational decisions. Full policy: docs/architecture/IP_POLICY.md. Security reports: see SECURITY.md.

Part of the East Africa coordination stack

Model-agnostic by design: closed APIs, open-weight models, and small distilled models are all first-class citizens.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx county-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-gabrielmahia-county-mcp": {
      "command": "uvx",
      "args": [
        "county-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

county-mcppypi

Compatible MCP Clients

io.github.gabrielmahia/county-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More