SDK Overview
The SecureLend SDK provides a type-safe TypeScript/JavaScript wrapper for connecting to the SecureLend MCP server programmatically. Use the SDK when you want to:- Integrate SecureLend into your own applications
- Build custom financial comparison tools
- Automate loan research and analysis
- Create financial dashboards and reporting
- Interactive financial advice through AI assistants
- Quick loan comparisons without coding
- Natural language financial queries
Quick Start
Installation
Basic Usage
Key Features
π Direct MCP Connection
Connects directly tohttps://mcp.securelend.ai/mcp - the same server used by Claude and ChatGPT.
π Full TypeScript Support
Complete type definitions for all requests and responses:π Zero Configuration
No API keys, no authentication, no setup. Just install and start using:π― 20 Financial Tools
Access all SecureLend tools programmatically:6 Loan Comparison Tools
Personal loans, business loans, auto loans, student loans, mortgages
5 Banking & Credit Tools
Banking accounts, savings accounts, credit cards
3 Financial Calculators
Loan payments, mortgage PITI, lease vs purchase
6 Application Tools
Submit applications, track status, upload documents
Architecture
- β Always up-to-date (live server connection)
- β No API keys to manage
- β No rate limits for comparison tools
- β Type-safe development experience
Use Cases
Financial Comparison Platforms
Build your own loan comparison website or app:Internal Tools & Dashboards
Create financial analysis tools for your team:Financial Automation
Automate loan research and monitoring:Embedded Financial Services
Add financial comparison to your existing product:Available Methods
Loan Comparison
comparePersonalLoans()
comparePersonalLoans()
Compare personal loan offers Parameters: loanAmount, purpose,
creditScore, employmentStatus, monthlyIncome, state Returns: Array of
loan offers with rates, terms, lender details Full reference
β
compareBusinessLoans()
compareBusinessLoans()
Compare business loan offers Parameters: loanAmount, purpose,
annualRevenue, industry, state, creditScore Returns: Business loan
offers with approval likelihood Full reference
β
compareCarLoans()
compareCarLoans()
Compare auto loan rates Parameters: loanAmount, isNew, creditScore,
state Returns: Auto loan rate comparisons Full reference
β
compareStudentLoans()
compareStudentLoans()
Compare student loan options Parameters: loanAmount, degreeType,
creditScore, coSignerCreditScore, state Returns: Student loan offers by
lender Full reference β
comparePersonalMortgages()
comparePersonalMortgages()
Compare mortgage rates Parameters: loanAmount, loanType, homePrice,
downPayment, creditScore, propertyType, state Returns: Mortgage rate
comparisons Full reference β
compareBusinessMortgages()
compareBusinessMortgages()
Compare commercial mortgages Parameters: loanAmount, loanType,
homePrice, downPayment, creditScore, propertyType, state Returns:
Commercial mortgage options Full reference
β
Banking & Credit Cards
comparePersonalBanking()
comparePersonalBanking()
Compare checking/savings accounts Full reference
β
compareBusinessBanking()
compareBusinessBanking()
Compare business banking products Full reference
β
compareSavingsAccounts()
compareSavingsAccounts()
Compare high-yield savings Full reference
β
comparePersonalCreditCards()
comparePersonalCreditCards()
Compare personal credit cards Full reference
β
compareBusinessCreditCards()
compareBusinessCreditCards()
Compare business credit cards Full reference
β
Financial Calculators
calculateLoanPayment()
calculateLoanPayment()
Calculate monthly loan payments Parameters: loanAmount, interestRate,
loanTermInMonths Returns: Monthly payment, total interest, amortization
Full reference β
calculateMortgagePayment()
calculateMortgagePayment()
Calculate PITI mortgage payments Parameters: propertyValue, downPayment,
interestRate, loanTermInYears, propertyTaxRate, homeInsurance Returns:
Complete PITI breakdown Full reference
β
compareLeaseVsPurchase()
compareLeaseVsPurchase()
Compare vehicle lease vs buy Parameters: purchasePrice, downPayment,
interestRate, loanTermInMonths, monthlyLeasePayment, etc. Returns: Total
cost comparison Full reference β
Packages
@securelend/sdk (Core)
The main SDK package for TypeScript/JavaScript. Status: β Beta - Available for testing- β Node.js 16+
- β Modern browsers
- β Edge runtime (Vercel, Cloudflare Workers)
- β React Server Components
@securelend/react (Coming Soon)
React hooks and components. Status: π In Development - Q1 2025Python SDK (Planned)
Python client library. Status: π Planned - Q2 2025Comparison: SDK vs AI Integration
Use the SDK when you:
- β Need programmatic access
- β Want to build custom applications
- β Need to process multiple queries
- β Want to integrate with existing systems
- β Need automated workflows
Use Claude/ChatGPT when you:
- β Want interactive conversations
- β Need natural language queries
- β Want quick one-off comparisons
- β Prefer guided assistance
- β Donβt want to write code
Next Steps
JavaScript Guide
Complete TypeScript/JavaScript reference
Code Examples
Practical examples and patterns
Tool Reference
All 20 tools documented
GitHub Repository
View source code and contribute
Support
- GitHub Issues: SecureLend/sdk
- Email: developers@securelend.ai
- Documentation: This site (docs.securelend.ai)
- Status: status.securelend.ai