underwriting-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@underwriting-mcpUnderwrite 123 Main St, 12-unit multifamily"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Underwriting MCP Server
A headless Model Context Protocol connector that lets you underwrite commercial and multifamily deals inside a Claude chat. Claude runs the conversation; this server does the arithmetic that must be exact (NOI, valuation, debt sizing, DSCR, returns) and serves your firm's underwriting methodology so every conversation underwrites the same way.
There is no web UI. The interface is Claude with this connector attached.
This server does deterministic math + methodology only. It does not open, fill, or recalculate
Commercial_Template.xlsx— that's the Skills pipeline's job in code-execution. The two share the same underwriting constants so they never disagree.
Stack
Next.js (App Router) +
mcp-handler— wraps the route as an MCP endpoint over stateless Streamable HTTP (no SSE, no Redis; free-tier friendly).TypeScript + Zod for tool input contracts.
Deploy target: Vercel (Hobby/free tier).
Related MCP server: NDI-MCP-Server
What it exposes
Tools (lib/calc/)
Group | Tools |
Common (§4.1) |
|
Commercial (§4.2) |
|
Multifamily (§4.3) |
|
Resources (lib/methodology/)
underwriting-conventions, scenario-definitions, commercial-field-map, multifamily-field-map,
template-version — served over underwriting://… URIs.
Prompts (lib/prompts/)
underwrite_retail_commercial, underwrite_multifamily — guided openers that collect the right
inputs, call the tools in order, and present the four-scenario grid.
Conventions (enforced)
Four scenarios always: List / Target / Probable / Conservative. Per-scenario levers are cap rate, LTV, exit cap rate; everything else is shared.
Rates are fractions —
0.055= 5.5%. The server rejects rate-like inputs> 1.0to catch the classic5-vs-0.05bug.Stabilization year selector (2/3/4, default 4); any stabilized result states which year it used.
Every denominator (cap rate, equity, loan, GPR) is guarded — clear error instead of
Infinity/NaN.Multifamily defaults (overridable): mgmt fee 3% of EGI, replacement reserves $250/unit/yr, rent trend 3%/yr.
Develop
npm install
npm test # hand-checked deal per asset class (node:test via tsx)
npm run typecheck # tsc --noEmit
npm run dev # http://localhost:3000/api/mcpDeploy (free tier)
npm test— confirm every formula matches its hand-checked deal.Push to GitHub.
Vercel → New Project → import repo → Deploy (Node auto-detected).
Your endpoint is
https://<project>.vercel.app/api/mcp.(Optional) set
MCP_API_KEYin Vercel env to requireAuthorization: Bearer <key>.
Add the connector in Claude
Requires a Pro, Max, Team, or Enterprise plan (custom connectors over remote MCP).
Settings → Connectors → Add custom connector.
Paste the
…/api/mcpURL; complete auth if you set a key.Start a chat, confirm the tools/prompts appear, run the two walkthroughs.
Layout
app/api/mcp/route.ts # mcp-handler entry: registers tools, resources, prompts + shared-key auth
lib/calc/finance.ts # §5 primitives (debt, DSCR, value, exit)
lib/calc/common.ts # §4.1 common tools incl. run_scenarios
lib/calc/commercial.ts # §4.2 retail/office/net-lease
lib/calc/multifamily.ts# §4.3 multifamily
lib/validate.ts # fraction-vs-percent + zero-denominator guards
lib/methodology/ # §6 resources (source of truth, one file each)
lib/prompts/ # §7 guided flows
test/ # one hand-checked deal per asset classRoadmap
Phase 4 — hardening: OAuth via
withMcpAuth, rate limiting, multi-year levered cash flow / IRR (ARGUS-style) if desired.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Real estate deal analysis from chat: rental underwriting, buy-box matching, deal library, docs.
Connect Amazon Seller Central to Claude or ChatGPT via MCP. Orders, inventory, pricing, fees, FBA.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe RealVest MCP (Model Context Protocol) server enables AI assistants like Claude to use all 31 of our professional calculators and access our educational resources directly in your conversations. From basic affordability to advanced portfolio analysis, Monte Carlo simulations, and tax optimization14 npm7MIT
- AlicenseAqualityCmaintenanceBuilt an MCP server that connects Claude Desktop, Cursor, or any MCP client to Northeast Deal Intel's CRE database. 8 tools: • search_deals — filter 14K+ active listings by state, type, score, cap rate • search_comps — 100K+ closed transactions for comp benchmarking • score_deal — submit any property for AI scoring against real comp data • find_1031_candidates — exchange-ready deal filter (price8MIT
- AlicenseAqualityAmaintenanceMCP server for NYC real estate due diligence. Lets Claude query 22+ NYC public-record databases — DOB/HPD/ECB violations, ACRIS deeds, DOF sales, 311 complaints, FDNY incidents, NYPD complaints, marshal evictions, PLUTO, rent stabilization — in plain English.187MIT
- AlicenseNot gradedqualityDmaintenanceProvides live commercial real estate data (rates, demographics) and analysis tools (DCF, rent roll parsing, lease abstraction, IC memo generation) within Claude Desktop.1MIT