Loan & Risk Assessment MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
loan-risk-mcp
demo project only. no production credit risk logic
Loan & Risk Assessment MCP Server
A small Model Context Protocol (MCP) server built for a Digital Banking Assistant Copilot Studio agent. It exposes three tools the agent can call when it needs real computation instead of guessing:
Tool | Purpose |
| Debt-to-Income ratio + eligibility band |
| Monthly payment + total interest for a loan |
| Explainable, rules-based risk score with reasons |
Disclaimer: This is a portfolio/demo project. The risk logic is a transparent toy rule set, not a real credit model. Any production use would require fair-lending, compliance, and model-risk review.
Architecture
User ── chats with ──▶ Copilot Studio Agent ("Digital Banking Assistant")
│
│ calls tool over MCP (Streamable HTTP)
▼
Loan & Risk Assessment MCP Server (this repo)
│
▼
Plain-language result returned into the conversationThe MCP server is a tool the agent reaches for mid-conversation — it's part of the same Digital Banking Assistant project, not a separate demo.
Related MCP server: fed-aura-risk-mcp
Project structure
loan-risk-mcp/
├── server.py # The MCP server + 3 tools
├── test_tools.py # Direct unit tests of the tool logic
├── requirements.txt # Pinned dependency versions
└── README.mdSetup
python3 -m venv venv
source venv/bin/activate # venv\Scripts\activate on Windows
pip install -r requirements.txtTesting the logic
Run the tool functions directly (no MCP transport involved) to confirm the math is right before wiring anything up:
python test_tools.pyRunning the server
Local / stdio (for local MCP clients, e.g. Claude Desktop, MCP Inspector):
python server.pyHTTP (required for a cloud client like Copilot Studio to reach it):
python server.py --http --port 8000You can sanity-check the HTTP server with the official MCP Inspector:
npx @modelcontextprotocol/inspector
# then point it at http://localhost:8000/mcpExample call and response
Request: calculate_dti(monthly_income=5000, monthly_debts=1000)
{
"dti_ratio_percent": 20.0,
"band": "good",
"explanation": "DTI of 20.0% is at or below the common 35% affordability threshold. Generally considered healthy."
}Notes
This demonstrates pro-code (Python MCP server) + low-code (Copilot Studio topics) working together — the direction the platform is actively moving toward with connected agents and MCP.
The risk tool is deliberately rules-based and explainable rather than a black-box ML score, which mirrors how banks actually need AI outputs to be auditable.
Call out clearly in interviews that this is a demo: real underwriting logic requires far more rigor, data, and compliance sign-off.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI agents to financial institution origination, analytics, and compliance workflows.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Broker-only credit/lending discovery shim for AI agents
Bank financials, central-bank rates, enforcement actions and fair-lending data as agent tools.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to assess credit default risk, run what-if scenarios, and evaluate portfolios through natural language, backed by an explainable XGBoost model.-
- FlicenseAqualityCmaintenanceEnables mortgage risk assessment and underwriting by calculating DTI, LTV, credit risk, income stability, and asset sufficiency, and by aggregating these factors into a loan recommendation with conditions and compensating factors.6-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to retrieve verbatim U.S. mortgage regulations with citations and effective dates, verify quotes, and run guided compliance playbooks without sending user documents to the server.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to profile Colombian housing credit scenarios using deterministic financial calculations, simulate monthly payments or maximum loan amounts, and generate voluntary handoff links to an official processing service without creating or sending applications.Apache 2.0