Skip to content
Agentmart
Submit a tool

Magpie MCP

Agent-native lending on Solana via x402: borrow against tokens, arm in-vault TP/SL, repay.

Connector by magpiecapital · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 7
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/magpiecapital-magpie-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Agent-native lending on Solana via x402: borrow against tokens, arm in-vault TP/SL, repay.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
9 read · 11 write · 0 delete · 9 not yet classified
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Node.js package

Tools by what they do 29

Read from the source code; the running server may list different tools.

Read 9 · Look things up without changing anything.

  • magpie_credit_score
  • magpie_get_intent
  • magpie_list_exits
  • magpie_loan
  • magpie_loan_by_pda
  • magpie_lp_state
  • magpie_pool_state
  • magpie_pools
  • magpie_simulate_borrow

Write 11 · Create, change, send or run things.

  • magpie_build_borrow
  • magpie_build_deposit
  • magpie_build_extend
  • magpie_build_liquidate
  • magpie_build_partial_repay
  • magpie_build_repay
  • magpie_build_topup
  • magpie_build_withdraw
  • magpie_cancel_exit
  • magpie_create_intent
  • magpie_modify_exit

Not yet classified 9 · We could not tell from the name and description.

  • magpie_arm_exit
  • magpie_collateral_eligible
  • magpie_credit_leaderboard
  • magpie_liquidatable
  • magpie_protocol_pulse
  • magpie_recent_activity
  • magpie_tiers
  • magpie_token_risk
  • magpie_wallet_loans

Files it touches

  • Any path the agent passes to its tools

Tools (29)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • magpie_arm_exit

    Arm a self-owned in-vault exit (take-profit / stop-loss / trailing) on YOUR OWN active V4 loan. When the trigger fires, the collateral is auto-sold IN-VAULT: SOL (or USDC) accumulates inside the loan's per-loan proceeds vault and the loan stays Active — the proceeds only leave to your wallet via your own borrower-signed repay. Pick exactly one trigger: target (e.g. '2x' TP / '0.7x' SL), price_usd, mc_usd (e.g. '5M','1.2B'), or trailing_bps (SL only). direction defaults to 'above' (TP); use 'below' for a stop-loss. The envelope is signed with the configured payer keypair, and the x402 payment p…

  • magpie_build_borrow

    Build an UNSIGNED borrow transaction. Server runs the full anti-exploit gate eval (ban registry, TWAP, pool floor, cross-source price, RWA-only guard, etc.) and returns a partial-signed tx. Agent signs locally and submits to magpie.capital/api/v1/cosign-borrow. Set has_exit_arming=true to route the loan into the V4 in-vault exit pool so you can later arm self-owned TP/SL exits on it (via magpie_arm_exit); leave false for a plain memecoin (V1) borrow. Paid: 0.005 SOL.

  • magpie_build_deposit

    Build an UNSIGNED LP-deposit transaction (wraps SOL → wSOL → deposits into the main LendingPool → closes wSOL ATA). Agent signs and submits. Paid: 0.002 SOL.

  • magpie_build_extend

    Build an UNSIGNED extend tx for one of YOUR OWN active loans — pushes the due date out so the loan doesn't hit Magpie's TIME-based liquidation. Magpie liquidates on the clock, not on price, so extend / top-up / partial-repay before the deadline is the agent's primary survival lever. The x402 payer MUST equal borrower_wallet (you only manage your own loans). Agent signs locally and submits. Paid: 0.002 SOL.

  • magpie_build_liquidate

    Build an unsigned liquidate-loan tx for a past-due active loan. The keeper (your wallet) receives keeper_reward_bps share of the seized collateral as bounty; the rest goes to the lender authority for pool recovery. Permissionless — any wallet can liquidate. Server pre-validates the loan exists, is active, and is past due. Paid: 0.003 SOL. Workflow: poll magpie_liquidatable to find candidates, then call this on the loan_pda.

  • magpie_build_partial_repay

    Build an UNSIGNED partial-repay tx for one of YOUR OWN active loans — pay down part of the debt (in lamports) without closing the loan, cutting liquidation risk and freeing headroom. The x402 payer MUST equal borrower_wallet. Agent signs locally and submits. Paid: 0.002 SOL.

  • magpie_build_repay

    Build an unsigned repay tx for an existing loan. Paid: 0.002 SOL.

  • magpie_build_topup

    Build an UNSIGNED top-up tx that adds more collateral to one of YOUR OWN active loans — improves the loan's health/LTV. The x402 payer MUST equal borrower_wallet. Agent signs locally and submits. Paid: 0.002 SOL.

  • magpie_build_withdraw

    Build an unsigned LP-withdraw tx for the requested shares. Server pre-validates the on-chain position and refuses chunks larger than max_safe_shares. Paid: 0.002 SOL.

  • magpie_cancel_exit

    Cancel an armed in-vault exit order on your own V4 loan. The loan stays Active and unaffected; only the pending auto-sell is removed. Signed with the configured payer keypair (payer==signer). FREE.

  • magpie_collateral_eligible

    Catalog of every token currently approved as Magpie collateral. Mint, symbol, decimals, category. First-touch endpoint for new agent integrations. Free, 1h cache.

  • magpie_create_intent

    Post a CONDITIONAL borrow intent. Bot watches the trigger condition (price_above / price_below / time_after / pool_liq_above) and builds the unsigned tx when matched. Single payment covers entire intent lifecycle. Paid: 0.01 SOL. Optional webhook_url — server POSTs an HMAC-SHA256-signed payload on match instead of forcing you to poll. The webhook_secret is returned ONCE in the response; persist it to verify signatures on receive.

  • magpie_credit_leaderboard

    Top wallets ranked by Magpie credit score (anonymized to Xxxx…Yyyy). Free, 60s cache.

  • magpie_credit_score

    Magpie credit score (300-850) + tier benefits for a wallet. Paid: 0.001 SOL per lookup.

  • magpie_get_intent

    Poll the status of a conditional borrow intent. When status='matched', the response includes partial_signed_tx_b64 ready to sign + submit. Paid: 0.0005 SOL per poll.

Show 14 more tools
  • magpie_liquidatable

    Active loans at or past their on-chain due timestamp — the canonical liquidation-bot data feed. Sorted most-past-due-first. Use within_seconds for pre-positioning. Free, 8s cache.

  • magpie_list_exits

    List the armed in-vault exit orders for a wallet — each order's loan, direction, trigger, distance-to-trigger, and status. Use to audit what's armed before modifying or cancelling. FREE.

  • magpie_loan

    Fetch a single Magpie loan by its u64 ID. Free.

  • magpie_loan_by_pda

    Fetch a single Magpie loan by its on-chain loan PDA (account address). Returns the loan's program version, status, collateral, due timestamp, and (for V4) proceeds-vault context. FREE.

  • magpie_lp_state

    Read a wallet's LP position in the main LendingPool — shares, deposited lamports, current value, yield earned, share-of-pool, plus pool context. Free, 10s cache.

  • magpie_modify_exit

    Modify an existing armed in-vault exit order on your own V4 loan — change its trigger or execution params without cancelling and re-arming. Signed with the configured payer keypair (payer==signer). FREE.

  • magpie_pool_state

    Get live on-chain Magpie LendingPool state — totalDeposits, totalBorrowed, totalShares, utilization, fees earned. Free, 15s cache.

  • magpie_pools

    List the Magpie lending pools (program versions and their pool context) — V1 memecoin and V4 in-vault-exit lanes. FREE.

  • magpie_protocol_pulse

    24h protocol aggregates: active loans, active borrowers, borrows in last 1h + 24h, borrow volume in SOL, repays, liquidations. Pure aggregates, no per-wallet data. Free, 30s cache.

  • magpie_recent_activity

    Anonymized recent borrow/repay/liquidate events across the protocol. Wallets reduced to Xxxx…Yyyy. Useful as 'is this protocol active right now' signal. Free, 15s cache.

  • magpie_simulate_borrow

    Preview a loan WITHOUT submitting. Pure math from caller-supplied prices + the public tier constants. Use tier='all' to compare all three tiers. Free.

  • magpie_tiers

    Magpie loan tier constants — three fixed tiers (Express / Quick / Standard) with their LTV, duration, and fee parameters. Free, 1h cache.

  • magpie_token_risk

    Per-token risk profile from Magpie's internal risk engine — risk score (0-100), dimension breakdown (volatility, liquidity, concentration, volume, rug_pull), market data, max allowed LTV the program will enforce, operator flags. Useful pre-borrow collateral check. Paid: 0.001 SOL per lookup.

  • magpie_wallet_loans

    All loans owned by a wallet. Optional ?status filter. Free, 8s cache.

Signals

Stars
7
Forks
7
Open issues
9
Weekly downloads
25
Last commit (this folder)
Jun 30, 2026 (4 months ago)
Last release
Jun 24, 2026 (4 months ago)
Last package publish
Jun 24, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.magpiecapital/magpie-mcp
Version
0.1.1
Auth
No auth
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from magpiecapital

Cite this page

Magpie MCP. Agent Mart. https://agentmart.dev/connectors/magpiecapital-magpie-mcp (last updated 2026-10-24)