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
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.
About
Reviews
Write a reviewNo 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_scoremagpie_get_intentmagpie_list_exitsmagpie_loanmagpie_loan_by_pdamagpie_lp_statemagpie_pool_statemagpie_poolsmagpie_simulate_borrow
Write 11 · Create, change, send or run things.
magpie_build_borrowmagpie_build_depositmagpie_build_extendmagpie_build_liquidatemagpie_build_partial_repaymagpie_build_repaymagpie_build_topupmagpie_build_withdrawmagpie_cancel_exitmagpie_create_intentmagpie_modify_exit
Not yet classified 9 · We could not tell from the name and description.
magpie_arm_exitmagpie_collateral_eligiblemagpie_credit_leaderboardmagpie_liquidatablemagpie_protocol_pulsemagpie_recent_activitymagpie_tiersmagpie_token_riskmagpie_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_exitArm 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_borrowBuild 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_depositBuild 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_extendBuild 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_liquidateBuild 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_repayBuild 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_repayBuild an unsigned repay tx for an existing loan. Paid: 0.002 SOL.
magpie_build_topupBuild 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_withdrawBuild 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_exitCancel 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_eligibleCatalog of every token currently approved as Magpie collateral. Mint, symbol, decimals, category. First-touch endpoint for new agent integrations. Free, 1h cache.
magpie_create_intentPost 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_leaderboardTop wallets ranked by Magpie credit score (anonymized to Xxxx…Yyyy). Free, 60s cache.
magpie_credit_scoreMagpie credit score (300-850) + tier benefits for a wallet. Paid: 0.001 SOL per lookup.
magpie_get_intentPoll 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_liquidatableActive 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_exitsList 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_loanFetch a single Magpie loan by its u64 ID. Free.
magpie_loan_by_pdaFetch 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_stateRead 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_exitModify 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_stateGet live on-chain Magpie LendingPool state — totalDeposits, totalBorrowed, totalShares, utilization, fees earned. Free, 15s cache.
magpie_poolsList the Magpie lending pools (program versions and their pool context) — V1 memecoin and V4 in-vault-exit lanes. FREE.
magpie_protocol_pulse24h 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_activityAnonymized 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_borrowPreview a loan WITHOUT submitting. Pure math from caller-supplied prices + the public tier constants. Use tier='all' to compare all three tiers. Free.
magpie_tiersMagpie loan tier constants — three fixed tiers (Express / Quick / Standard) with their LTV, duration, and fee parameters. Free, 1h cache.
magpie_token_riskPer-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_loansAll 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
- Packages
- npm @magpieloans/magpie-mcp
- License
- MIT
- Repository
- github.com/magpiecapital/magpie-x402
- Website
- x402.magpie.capital
- 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)