marginfi

marginfi is a decentralized borrowing and lending protocol built on the Solana blockchain by mrgn labs. Users lend supported Solana tokens to earn yield and borrow against supplied collateral, with account-health, e-mode, liquid staking token (LST), and leveraged looping (mrgnloop) products layered on top of the core mrgnlend market. marginfi exposes no hosted REST API — developers integrate on-chain through the marginfi-v2 Solana program using the official TypeScript SDK (marginfi-client-v2, mrgn-common) and the Rust (CLI) SDK, with an early-alpha Python SDK (marginpy) and a Rust CPI interface crate also published. It was surfaced through the API Evangelist network as a portfolio company of Multicoin Capital and Pantera Capital.

marginfi is profiled on the APIs.io network. Tagged areas include Company, Crypto Web3, DeFi, Solana, and Lending.

marginfi’s developer surface includes documentation, API reference, getting-started guide, signup flow, CLI, and 7 more developer resources.

19.6/100 emerging Agent 0/100 human only Full breakdown ↓
scored 2026-07-21 · rubric v0.4
0 APIs 0 Features
CompanyCrypto Web3DeFiSolanaLendingBorrowingBlockchainSDK

API Rating

API Evangelist API Evangelist Rating How this is scored →
scored 2026-07-21 · rubric v0.4
Composite quality — 19.6/100 · emerging
Contract Quality 0.0 / 25
Developer Ergonomics 9.6 / 20
Commercial Clarity 2.6 / 20
Operational Transparency 0.7 / 13
Governance 0.0 / 12
Discoverability 6.8 / 10
Agent readiness — 0/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 15
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 0 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/marginfi: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

Resources

Get Started 3

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 4

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Company 1

The organization behind the API

Source (apis.yml)

apis.yml Raw ↑
aid: marginfi
name: marginfi
description: marginfi is a decentralized borrowing and lending protocol built on the Solana blockchain by mrgn labs. Users
  lend supported Solana tokens to earn yield and borrow against supplied collateral, with account-health, e-mode, liquid staking
  token (LST), and leveraged looping (mrgnloop) products layered on top of the core mrgnlend market. marginfi exposes no hosted
  REST API — developers integrate on-chain through the marginfi-v2 Solana program using the official TypeScript SDK (marginfi-client-v2,
  mrgn-common) and the Rust (CLI) SDK, with an early-alpha Python SDK (marginpy) and a Rust CPI interface crate also published.
  It was surfaced through the API Evangelist network as a portfolio company of Multicoin Capital and Pantera Capital.
url: https://raw.githubusercontent.com/api-evangelist/marginfi/refs/heads/main/apis.yml
image: https://docs.marginfi.com/opengraph-image.jpg
x-type: company
x-source: vc-portfolio
x-backed-by:
- multicoin-capital
- pantera-capital
x-tier: stub
x-tier-reason: portfolio-lead
specificationVersion: '0.20'
created: '2026-07-17'
modified: '2026-07-20'
tags:
- Company
- Crypto Web3
- DeFi
- Solana
- Lending
- Borrowing
- Blockchain
- SDK
apis: []
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com
- FN: APIs.json
  email: info@apis.io
common:
- type: Website
  url: https://marginfi.com
- type: DeveloperPortal
  url: https://docs.marginfi.com
- type: Documentation
  url: https://docs.marginfi.com
- type: APIReference
  url: https://docs.marginfi.com/ts-sdk
- type: GettingStarted
  url: https://docs.marginfi.com/introduction
- type: GitHubOrganization
  url: https://github.com/mrgnlabs
- type: SignUp
  url: https://app.marginfi.com
- type: Packages
  url: packages/marginfi-packages.yml
- type: SDKs
  url: packages/marginfi-packages.yml
- type: CLI
  url: cli/marginfi-cli.yml
- type: LLMsTxt
  url: llms/marginfi-llms.txt
- type: DomainSecurity
  url: security/marginfi-domain-security.yml
x-enrichment:
  date: '2026-07-20'
  status: enriched
  artifacts_added: 4
  pass: local-v1