Skip to main content

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
Use Claude/ChatGPT when you want to:
  • Interactive financial advice through AI assistants
  • Quick loan comparisons without coding
  • Natural language financial queries

Quick Start

Installation

Basic Usage

That’s it! No API keys required - the SDK connects to our public MCP server.

Key Features

πŸ”Œ Direct MCP Connection

Connects directly to https://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

Benefits:
  • βœ… 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

Compare personal loan offers Parameters: loanAmount, purpose, creditScore, employmentStatus, monthlyIncome, state Returns: Array of loan offers with rates, terms, lender details Full reference β†’
Compare business loan offers Parameters: loanAmount, purpose, annualRevenue, industry, state, creditScore Returns: Business loan offers with approval likelihood Full reference β†’
Compare auto loan rates Parameters: loanAmount, isNew, creditScore, state Returns: Auto loan rate comparisons Full reference β†’
Compare student loan options Parameters: loanAmount, degreeType, creditScore, coSignerCreditScore, state Returns: Student loan offers by lender Full reference β†’
Compare mortgage rates Parameters: loanAmount, loanType, homePrice, downPayment, creditScore, propertyType, state Returns: Mortgage rate comparisons Full reference β†’
Compare commercial mortgages Parameters: loanAmount, loanType, homePrice, downPayment, creditScore, propertyType, state Returns: Commercial mortgage options Full reference β†’

Banking & Credit Cards

Compare checking/savings accounts Full reference β†’
Compare business banking products Full reference β†’
Compare high-yield savings Full reference β†’
Compare personal credit cards Full reference β†’
Compare business credit cards Full reference β†’

Financial Calculators

Calculate monthly loan payments Parameters: loanAmount, interestRate, loanTermInMonths Returns: Monthly payment, total interest, amortization Full reference β†’
Calculate PITI mortgage payments Parameters: propertyValue, downPayment, interestRate, loanTermInYears, propertyTaxRate, homeInsurance Returns: Complete PITI breakdown Full reference β†’
Compare vehicle lease vs buy Parameters: purchasePrice, downPayment, interestRate, loanTermInMonths, monthlyLeasePayment, etc. Returns: Total cost comparison Full reference β†’
View complete tool reference β†’

Packages

@securelend/sdk (Core)

The main SDK package for TypeScript/JavaScript. Status: βœ… Beta - Available for testing
Platform Support:
  • βœ… 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 2025

Python SDK (Planned)

Python client library. Status: πŸ”„ Planned - Q2 2025

Comparison: 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
Both connect to the same MCP server, so you get identical data and capabilities. Setup Claude Desktop β†’

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