Skip to main content

Model Context Protocol (MCP) Server

The RiskInMind MCP Server exposes the complete suite of RiskInMind AI risk and lending endpoints as standard MCP tools. This enables AI assistants (such as Claude Desktop, Cursor, Pi, and Zed) to autonomously execute credit risk evaluations, generate Fannie Mae Form 1003 PDFs, run CRE loan models, inspect uploaded documents for tampering, and synthesize financial advisory memos.

Connection Details

RiskInMind provides a hosted, remote HTTP MCP endpoint as well as local stdio execution:

TypeEndpoint / CommandAuthentication
Remote HTTP (SSE / Streamable)https://mcp.riskinmind.ai/mcpx-api-key: rim_<api_key> or RISKINMIND_API_KEY
Local Stdio (Node.js)node src/stdio.js (inside riskinmind-mcp)RISKINMIND_API_KEY env var

Client Setup

1. Claude Desktop

Add the RiskInMind server configuration to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"riskinmind": {
"command": "npx",
"args": ["-y", "riskinmind-mcp"],
"env": {
"RISKINMIND_API_KEY": "rim_your_api_key_here",
"RISKINMIND_BASE_URL": "https://api.riskinmind.ai/api/v1"
}
}
}
}

Or connect directly to the remote HTTP MCP server:

{
"mcpServers": {
"riskinmind-remote": {
"url": "https://mcp.riskinmind.ai/mcp",
"headers": {
"x-api-key": "rim_your_api_key_here"
}
}
}
}

2. Cursor IDE

In your project root, create or update .cursor/mcp.json:

{
"mcpServers": {
"riskinmind": {
"url": "https://mcp.riskinmind.ai/mcp",
"headers": {
"x-api-key": "rim_your_api_key_here"
}
}
}
}

3. Pi Coding Agent Harness

Add to ~/.pi/agent/mcp.json or your project settings:

{
"mcpServers": {
"riskinmind": {
"url": "https://mcp.riskinmind.ai/mcp",
"headers": {
"x-api-key": "rim_your_api_key_here"
}
}
}
}

Available MCP Tools

The RiskInMind MCP server provides 20 specialized banking and risk tools:

Consumer Loans & Underwriting

Tool NameParametersDescription
predict_loanage, income, loanAmount, creditScore, monthlyExpenses, numberOfCreditLines, interestRate, employmentLength, debtToIncomeRatio, loanPurpose, propertyValuePredict loan approval probability, default likelihood, and risk tier
calculate_ceclportfolioBalance, historicalLossRate, macroeconomicAdjustment, weightedAverageMaturity, reversionPeriodMonthsCalculate Current Expected Credit Loss (CECL) allowance and reserves
generate_1003_applicationborrowerDetails, loanDetails, employmentDetails, assetsLiabilitiesGenerate standardized Fannie Mae / Freddie Mac Form 1003 PDF
generate_loan_reportloanId or applicantDetailsGenerate comprehensive credit evaluation and decision memo PDF
create_loanloanPayloadCreate a new loan record in the institution database
get_loanidRetrieve detailed loan application record by ID

Commercial Real Estate (CRE)

Tool NameParametersDescription
predict_cre_loanpropertyType, loanAmount, netOperatingIncome, capRate, dscr, ltv, debtYield, occupancyRateRun probabilistic CRE loan risk and underwriting model
predict_cre_loan_pdfpropertyType, propertyDetails, financialsGenerate executive CRE risk memorandum PDF

Credit Card Analytics

Tool NameParametersDescription
predict_credit_card_loanannualIncome, creditScore, existingCreditLimit, utilizationRate, delinquencyHistoryDecision credit card applications and recommended credit limits

Document Forensics & Tampering

Tool NameParametersDescription
check_document_tamperingfileBase64, fileName, mimeTypeDetect digital image/PDF manipulation, altered font layers, and metadata forgery
verify_documentdocumentIdVerify document authenticity status against institutional records

Financial Document Processing & Reports

Tool NameParametersDescription
generate_bank_statement_reportfileBase64, fileNameExtract cash flow, recurring deposits, and NSF alerts from bank statement PDFs
generate_tax_reportfileBase64, fileNameAnalyze Form 1040 / W-2 / 1099 tax returns and compute adjusted gross income
generate_credit_reportfileBase64, fileNameParse credit bureau PDF statements and summarize trade lines

Document Generation & Voice Memos

Tool NameParametersDescription
generate_documenttype ("nda" | "loan_agreement" | "offer_letter"), variablesGenerate signed legal PDFs from institutional templates
polish_voice_memorawTranscriptFormat meeting or phone call transcript into clean Markdown
generate_voice_memo_reportrawTranscript, officerName, borrowerNameGenerate official loan committee discussion memo PDF

Virtual AI Banking Agents

Tool NameParametersDescription
chat_bot_avamessage, contextPublic frontline virtual assistant for customer support
chat_bot_erinamessage, contextCompliance & regulatory policy guidance agent
chat_bot_davidmessage, contextCredit underwriting & risk assessment copilot
chat_bot_seanmessage, contextCommercial loan structuring advisor
chat_bot_markmessage, contextPortfolio executive intelligence & CECL strategist

Example AI Prompts

Once connected to your MCP client, you can run prompts such as:

Evaluate a $450,000 residential loan application for a borrower with:
- Annual Income: $145,000
- Credit Score: 720
- Monthly Expenses: $3,200
- Debt-to-Income: 32%
- Loan Purpose: Home Purchase

Use `predict_loan` to compute the risk tier, then format the recommendation.
Inspect this uploaded bank statement PDF for any digital tampering or font layer alterations using `check_document_tampering`.