{"name":"io.github.magpiecapital/magpie-mcp","slug":"magpiecapital-magpie-mcp","title":null,"description":"Agent-native lending on Solana via x402: borrow against tokens, arm in-vault TP/SL, repay.","url":"https://mcp.market/server/magpiecapital-magpie-mcp","rating":null,"grade":"B","score":82,"certified":false,"status":"active","category":"ai","tags":["ai"],"presence":{"score":34,"stars":7,"forks":6,"downloads_week":35,"last_push_at":"2026-09-14T14:08:18.000Z","license":"MIT"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/magpiecapital/magpie-x402","website":"https://x402.magpie.capital","version":"0.1.1","remotes":[],"packages":[{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@magpieloans/magpie-mcp","version":"0.1.1","transport":{"type":"stdio"}}],"tools":[{"name":"magpie_arm_exit","description":"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,","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_build_borrow","description":"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_ar","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_build_deposit","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_build_liquidate","description":"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","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_build_repay","description":"Build an unsigned repay tx for an existing loan. Paid: 0.002 SOL.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_build_withdraw","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_cancel_exit","description":"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.","write_action":true,"price_micros":0,"input_schema":null},{"name":"magpie_collateral_eligible","description":"Catalog of every token currently approved as Magpie collateral. Mint, symbol, decimals, category. First-touch endpoint for new agent integrations. Free, 1h cache.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_create_intent","description":"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","write_action":true,"price_micros":0,"input_schema":null},{"name":"magpie_credit_leaderboard","description":"Top wallets ranked by Magpie credit score (anonymized to Xxxx…Yyyy). Free, 60s cache.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_credit_score","description":"Magpie credit score (300-850) + tier benefits for a wallet. Paid: 0.001 SOL per lookup.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_get_intent","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_liquidatable","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_list_exits","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_loan","description":"Fetch a single Magpie loan by its u64 ID. Free.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_loan_by_pda","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_lp_state","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_modify_exit","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_pool_state","description":"Get live on-chain Magpie LendingPool state — totalDeposits, totalBorrowed, totalShares, utilization, fees earned. Free, 15s cache.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_pools","description":"List the Magpie lending pools (program versions and their pool context) — V1 memecoin and V4 in-vault-exit lanes. FREE.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_protocol_pulse","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_recent_activity","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_simulate_borrow","description":"Preview a loan WITHOUT submitting. Pure math from caller-supplied prices + the public tier constants. Use tier='all' to compare all three tiers. Free.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_tiers","description":"Magpie loan tier constants — three fixed tiers (Express / Quick / Standard) with their LTV, duration, and fee parameters. Free, 1h cache.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_token_risk","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"magpie_wallet_loans","description":"All loans owned by a wallet. Optional ?status filter. Free, 8s cache.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":82,"grade":"B","scanned_at":"2026-09-26T16:36:01.345Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-26T16:36:01.312Z","components":{"code":{"score":20,"max":25,"notes":["4 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":12,"max":15,"notes":["local package, no credentials required"]},"maintenance":{"score":15,"max":15,"notes":["last push 12 days ago"]},"identity":{"score":6,"max":10,"notes":["registry namespace matches repository owner"]}},"findings":[{"id":"exec.eval","severity":"medium","component":"code","title":"eval / new Function used","evidence":"dist/index.js: … Server runs the full anti-exploit gate eval (ban registry, TWAP, pool floor, cross-so…"}],"inputs":{"packages":[{"registryType":"npm","identifier":"@magpieloans/magpie-mcp","version":"0.1.1","found":true,"license":"MIT","hasInstallScripts":false,"dependencyCount":2,"publishedAt":"2026-06-24T14:37:14.357Z","repositoryUrl":"git+https://github.com/magpiecapital/magpie-x402.git","weeklyDownloads":35}],"repo":{"found":true,"owner":"magpiecapital","repo":"magpie-x402","archived":false,"pushedAt":"2026-09-14T14:08:18Z","stars":7,"forks":6,"openIssues":36,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/277051663?v=4","ownerCreatedAt":"2026-04-17T16:19:04Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/277051663?v=4&s=128","source":"github"},"presence":{"stars":7,"forks":6,"downloadsWeek":35,"license":"MIT","lastPushAt":"2026-09-14T14:08:18.000Z","score":34}}}},"grade_history":[],"reviews":[]}