Based Loans

Borrow USDC against Base tokens with no liquidations, or lend USDC. Quotes, risk data, unsigned txs.

사용해야 할까요

품질 및 안전성

A
설명 품질
91%
스키마 완전성
90%
이름 품질
96%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

발견 사항 (4)

  • LOWTool 'get_loan' description lacks action verbget_loan에서
  • LOWTool 'explain_collateral_types' description lacks action verbexplain_collateral_types에서
  • LOWTool 'build_claim_collateral' description lacks action verbbuild_claim_collateral에서
  • LOWTool 'build_set_auto_redeploy' description lacks action verbbuild_set_auto_redeploy에서

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~3,937토큰 (도구 정의)
~1.3 KB일반적인 응답 크기
상당한 주의 영향 (128k 컨텍스트의 3.08%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "basedloans": {
      "command": "npx",
      "args": [
        "@basedloans/mcp"
      ]
    }
  }
}

실행 가능한 패키지

npm@basedloans/mcp0.1.3stdio

원격 엔드포인트

https://mcp.based.loans/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (19)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢get_protocol_info

Live protocol parameters: loan fee, the three loan terms with their durations and buyback costs, minimum loan and deposit sizes, per-token lending limit bounds, and whether the protocol is paused.

입력 스키마

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_markets(only_with_funds)

Every token currently accepted as collateral, with price, max loan-to-value, USDC available to borrow against it, active loans, and how it is priced. Set only_with_funds to see only tokens lenders are currently backing.

입력 스키마

{
  "type": "object",
  "properties": {
    "only_with_funds": {
      "type": "boolean",
      "description": "Only tokens with USDC available to borrow right now"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_market(asset)

Price, max loan-to-value, USDC available to borrow, active loans and pricing type for one token.

입력 스키마

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
    }
  },
  "required": [
    "asset"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_risk_report(asset, skip_depth)

Live risk data for lending against (or borrowing with) a token: how many price sources it has and whether they cross-check each other, how far back its pool price history goes, how much trading it would take to move its pool price 2x and 10x, USDC available to borrow against it, its active loan limit, and plain-language explanations of every flag. Use this before setting a lending limit on a token.

입력 스키마

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
    },
    "skip_depth": {
      "type": "boolean",
      "description": "Skip the pool depth calculation (faster)"
    }
  },
  "required": [
    "asset"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢quote_borrow(asset, collateral_amount, loan_amount_usdc, term)

Exact loan quote using the same math the contract runs: USDC you receive after the fee, buyback cost, due date, and how much collateral is used. It replays the lender queue, so the funded amount matches what the loan would really get, and warns (with a suggested amount) when a loan would be funded short.

입력 스키마

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
    },
    "collateral_amount": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "Collateral to offer, in token units, e.g. 0.5"
    },
    "loan_amount_usdc": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "Loan amount before the fee. Omit to borrow the most the collateral allows."
    },
    "term": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "short",
            "medium",
            "long"
          ]
        },
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 2
        }
      ],
      "description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
    }
  },
  "required": [
    "asset",
    "collateral_amount",
    "term"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_loan(loan_id)

Status, collateral, buyback cost and remaining amount, due date and lenders for one loan.

입력 스키마

{
  "type": "object",
  "properties": {
    "loan_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d+$"
        },
        {
          "type": "integer",
          "minimum": 0
        }
      ],
      "description": "Loan ID"
    }
  },
  "required": [
    "loan_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_borrower_loans(borrower)

Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.

입력 스키마

{
  "type": "object",
  "properties": {
    "borrower": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Borrower wallet address on Base"
    }
  },
  "required": [
    "borrower"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_lender_position(lender)

A lender's deposit, USDC in active loans, USDC available to withdraw, per-token limits, and every loan they funded with any repaid USDC or defaulted collateral they can claim.

입력 스키마

{
  "type": "object",
  "properties": {
    "lender": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Lender wallet address on Base"
    }
  },
  "required": [
    "lender"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢request_token_listing(token)

Check whether a token is accepted as collateral. If it is not, returns a pre-filled link to the Based Loans request form for the user to open and submit. Nothing is submitted automatically.

입력 스키마

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Token contract address on Base"
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢explain_collateral_types

How Based Loans prices different kinds of collateral (regular tokens, two-hop priced tokens, staked and share tokens, escrowed tokens), with examples, and what each means for borrowers and lenders.

입력 스키마

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_borrow(asset, collateral_amount, loan_amount_usdc, term, borrower, ...)

Returns the unsigned transactions to open a loan: an approval (only if needed) then openLoan. Includes the quote and warnings. The user's wallet must sign and send each step in order.

입력 스키마

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
    },
    "collateral_amount": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "Collateral to offer, in token units, e.g. 0.5. It is a maximum: only what the loan needs is taken"
    },
    "loan_amount_usdc": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "Loan amount before the fee, in USDC. Omit to borrow the most the collateral allows"
    },
    "term": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "short",
            "medium",
            "long"
          ]
        },
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 2
        }
      ],
      "description": "Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info."
    },
    "borrower": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Wallet that will sign; used to skip unneeded approvals and check balances"
    },
    "max_shortfall_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "description": "Max gap between requested and funded amount in basis points. Omit for the protocol default."
    }
  },
  "required": [
    "asset",
    "collateral_amount",
    "term",
    "borrower"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_buyback(loan_id, payment_usdc, borrower)

Returns the unsigned transactions to pay back a loan and get collateral back: a USDC approval (only if needed) then buyback. Omit payment_usdc to pay the full remaining amount.

입력 스키마

{
  "type": "object",
  "properties": {
    "loan_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d+$"
        },
        {
          "type": "integer",
          "minimum": 0
        }
      ],
      "description": "Loan ID"
    },
    "payment_usdc": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "USDC to pay. Omit to pay everything left and get all collateral back"
    },
    "borrower": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Borrower wallet that will sign; must be the wallet that opened the loan"
    }
  },
  "required": [
    "loan_id",
    "borrower"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_deposit(amount_usdc, lender, limits)

Returns the unsigned transactions to deposit USDC for lending, optionally setting per-token lending limits in the same transaction (needed before a first deposit can be lent). Check get_risk_report for each token first.

입력 스키마

{
  "type": "object",
  "properties": {
    "amount_usdc": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "USDC to deposit, e.g. 500"
    },
    "lender": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Lender wallet that will sign; used to skip unneeded approvals and check balances"
    },
    "limits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "asset": {
            "type": "string",
            "minLength": 1,
            "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
          },
          "limit_usdc": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "Max USDC to lend against this token; 0 removes it"
          }
        },
        "required": [
          "asset",
          "limit_usdc"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "Per-token lending limits to set in the same transaction. A first deposit needs at least one to be lent"
    }
  },
  "required": [
    "amount_usdc",
    "lender"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_set_limits(limits, lender)

Returns the unsigned transaction to add, change or remove per-token lending limits. A limit cannot be set below what is already in active loans for that token.

입력 스키마

{
  "type": "object",
  "properties": {
    "limits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "asset": {
            "type": "string",
            "minLength": 1,
            "description": "Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB"
          },
          "limit_usdc": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "Max USDC to lend against this token; 0 removes it"
          }
        },
        "required": [
          "asset",
          "limit_usdc"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "Tokens and the max USDC to lend against each"
    },
    "lender": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Lender wallet that will sign"
    }
  },
  "required": [
    "limits",
    "lender"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_withdraw(amount_usdc, lender, as_musdc)

Returns the unsigned transaction to withdraw USDC that is not in active loans. Use "max" for everything available. as_musdc receives vault shares and skips the 0.25% withdrawal fee.

입력 스키마

{
  "type": "object",
  "properties": {
    "amount_usdc": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d+(\\.\\d+)?$"
        },
        {
          "type": "string",
          "const": "max"
        }
      ],
      "description": "USDC to withdraw, or \"max\" for everything not in active loans"
    },
    "lender": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Lender wallet that will sign"
    },
    "as_musdc": {
      "type": "boolean",
      "description": "Receive mUSDC vault shares instead of USDC, skipping the 0.25% withdrawal fee"
    }
  },
  "required": [
    "amount_usdc",
    "lender"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_claim_proceeds(loan_ids, mode)

Returns the unsigned transaction to claim repaid USDC from loans you funded (mode withdraw) or put it straight back into lending (mode redeploy). Get loan IDs from get_lender_position.

입력 스키마

{
  "type": "object",
  "properties": {
    "loan_ids": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string",
            "pattern": "^\\d+$"
          },
          {
            "type": "integer",
            "minimum": 0
          }
        ],
        "description": "Loan ID"
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "IDs of loans you funded, from get_lender_position (1 to 50)"
    },
    "mode": {
      "type": "string",
      "enum": [
        "withdraw",
        "redeploy"
      ],
      "description": "withdraw sends the USDC to your wallet (default); redeploy puts it back into lending"
    }
  },
  "required": [
    "loan_ids"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_claim_collateral(loan_ids)

Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.

입력 스키마

{
  "type": "object",
  "properties": {
    "loan_ids": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string",
            "pattern": "^\\d+$"
          },
          {
            "type": "integer",
            "minimum": 0
          }
        ],
        "description": "Loan ID"
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "IDs of past-due loans you funded, from get_lender_position (1 to 50)"
    }
  },
  "required": [
    "loan_ids"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢build_set_auto_redeploy(enabled)

Returns the unsigned transaction to turn automatic re-lending of repaid principal on or off.

입력 스키마

{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "true to re-lend repaid principal automatically, false to keep it available to withdraw"
    }
  },
  "required": [
    "enabled"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢simulate_transaction(to, data, value, from)

Dry-runs one prepared transaction from a wallet against the latest block and explains the failure in plain language if it would revert. Steps that depend on an earlier approval only pass after that approval is mined.

입력 스키마

{
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "The step's to address, as returned by a build_ tool"
    },
    "data": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]*$",
      "description": "The step's calldata, as returned by a build_ tool"
    },
    "value": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Native value in wei. Always 0 for Based Loans calls"
    },
    "from": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Wallet that would send the transaction"
    }
  },
  "required": [
    "to",
    "data",
    "from"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 19개