🌍 BarazaCredit — Autonomous Multi-Stakeholder Micro-Credit Protocol
Where communal trust becomes bankable capital without bureaucratic bottlenecks.
🚀 Live Demo & Code Links
- Live Web App: https://barazacredit.vercel.app
- Public GitHub Repository: https://github.com/ondinookello96/barazacredit
- Demo Video: https://www.youtube.com/watch?v=yyrxY3XQlbg
🌟 1. Why Our Use Case is a Strong Fit for WebMCP
Across Sub-Saharan Africa, over 80% of employment and 90% of new jobs live in the informal sector according to the International Labour Organization (ILO) and World Bank Informal Economy Database. Market traders (Mama Mboga, wholesale produce vendors, boda boda operators) turn over billions of shillings weekly through mobile money (Safaricom M-PESA Financial Reports). Yet, they face a staggering $330 Billion MSME credit deficit documented by the IFC / World Bank SME Finance Forum:
- The Collateral Trap (Dead Capital): Mainstream banks demand land title deeds or vehicle logbooks—assets that informal micro-entrepreneurs do not possess (De Soto's Mystery of Capital).
- The "Cold Algorithm" Failure: First-generation digital credit apps scraped phone contacts and used predatory 100%–300% APRs with rigid 14-day bullet traps, blacklisting over 3 million micro-borrowers on Credit Reference Bureaus (CRB) as detailed in the Central Bank of Kenya (CBK) & FSD Kenya FinAccess National Survey.
- The Bureaucracy Bottleneck: When banks attempt relationship underwriting, it costs $25–$35 in manual loan officer overhead to process a $150 inventory loan that a trader needs at 5:30 AM before market trucks depart (CGAP / World Bank Microfinance Cost Studies).
WebMCP is the missing link. Informal credit is fundamentally a multi-stakeholder coordination problem across messy, unstandardized contexts. WebMCP turns the web browser into a Shared Collaborative Canvas where client-side agents directly inspect informal daybook records, configure social collateral webs, and calculate fluid repayment sweeps in real time—without exposing raw personal data to central corporate surveillance.
💡 2. How It Creates a Better User Experience
Traditional microfinance forces borrowers into rigid, high-stress joint-liability groups or leaves them at the mercy of automated digital apps that harass their family contacts upon default.
BarazaCredit replaces this with an empathetic, agent-mediated human experience:
- Bilingual Soko Mode (🇰🇪 Kiswahili / Sheng / 🇬🇧 English): Traders interact in their authentic market dialect (Mali ya Kauli, Utu/Ubuntu, Lipa Polepole) instead of intimidating institutional banking jargon.
- Frictionless Fluid Guardrails (Zero-Penalty Daily Sweeps): Repayments are calibrated as a 5.5% daily micro-sweep on incoming M-Pesa Till receipts. If severe rain hits the market and daily sales are KES 0, the sweep is KES 0—zero late fees, zero compound interest, and zero blacklisting (Empirically backed by MIT J-PAL Flexible Microcredit Research).
- Direct-to-Supplier Settlement (-2.0% APR Discount): With one toggle, capital settles directly into verified wholesale supplier escrow (e.g. Njoroge Farm Produce for seed potato crates), eliminating loan diversion risk while lowering borrower APR.
- Two-Sided Architecture: Informal traders use the mobile-optimized Soko Canvas, while commercial banks and SACCOs access the Institutional Underwriting & Liquidity Desk to review verified dossiers and monitor real-time micro-sweep recovery telemetry.
🤝 3. What People and Agents Can Do Together That Was Impossible Before
Before WebMCP, bridging an informal street vendor to an institutional bank's liquidity pool required expensive physical site visits, manual paper guarantor forms, and branch queues.
With BarazaCredit and WebMCP, human actors and autonomous agents collaborate in a coordinated Pride:
- The Merchant & InflowScout: InflowScout parses messy, informal voice transcripts and SMS logs, instantly extracting verified daily turnover (KES 6,850/day) and margin metrics.
- Community Anchors & TrustElder: TrustElder coordinates a 3-pillar social collateral circle (Wholesale Supplier + Market Chairperson + Chama Savings Official) who vouch via 1-tap reputation badges without risking their own cash, grounded in Marcel Fafchamps' field research on informal African credit networks.
- Underwriters & GuardrailArchitect: GuardrailArchitect simulates dynamic debt capacity at $0.02 marginal compute cost, removing the $30 origination barrier.
- Sovereign Human Sign-off (Tsavo River Depth Check): Guided by strict agent safety firewalls, no AI agent can autonomously bind a human to debt. The
BarazaScribeagent presents plain-language terms on the River Depth Modal, requiring tactile sign-off ("Nimekubali") from the merchant.
🛠️ 4. How We Implemented WebMCP
BarazaCredit implements the W3C WebMCP draft specification directly on document.modelContext.registerTool with polyfill fallback for ChatGPT in-app browser and Google Chrome (with #enable-webmcp-testing enabled):
ingest_informal_records: Parses raw M-Pesa text dumps and Sheng voice-note transcripts into structured ledger metrics.configure_trust_circle: Dynamically binds and verifies community stakeholder vouchers.set_frictionless_guardrails: Calibrates revenue-linked daily micro-sweeps and direct supplier settlement rails.compile_underwriting_verdict: Synthesizes cash velocity and social collateral into an institutional lending proposal while triggering the Tsavo River Depth human pause point.log_merchant_context: Captures qualitative market conditions and cultural trade idioms.
A live WebMCP DevTools Inspector docked at the bottom of the interface lets judges audit every tool registration, invocation, and payload in real time.
🚫 AI Red Lines: 5 Non-Negotiable Human Escalations
To ensure compliance with the Kenya Data Protection Act 2019 Section 29/30 (ODPC) and global ethical agent frameworks, BarazaCredit enforces five hard boundaries that AI agents are forbidden from executing:
- Contract Binding & Disbursement Authorization (Borrower Sovereignty).
- Character & Relational Attestation (Community Vouchers).
- Adverse Action & Blacklisting (Human Underwriting Desk).
- Force Majeure & Market Disaster Moratoriums (Market Elders Council).
- Statutory Data Erasure (Data Protection Officer).
📜 Academic & Empirical Grounding (Deep Links)
- FSD Kenya & Central Bank of Kenya (CBK): FinAccess Survey 2021 — Data on Kenyan MSME financial inclusion, digital app default dynamics, and informal household liquidity.
- World Bank & IFC SME Finance Forum Database — The empirical \$330B unmet formal credit gap across Sub-Saharan Africa.
- ILO: Women and Men in the Informal Economy (Statistical Picture) — Documentation of 80%+ employment share in informal African commerce.
- Marcel Fafchamps (Stanford Department of Economics) — Research on social collateral, relational contracting, and informal credit enforcement in African agricultural markets.
- Abhijit Banerjee & Esther Duflo (MIT J-PAL) — Randomized controlled trials demonstrating how flexible, revenue-linked debt repayment structures prevent defaults and expand borrower welfare.
- Office of the Data Protection Commissioner (ODPC Kenya) — Statutory guidelines on automated decision-making and data consent under the Kenya Data Protection Act 2019.
Built With
- chrome
- openai
- react
- tailwindcss
- typescript
- vercel
- vite
- webmcp
Log in or sign up for Devpost to join the conversation.