{
  "markdown": "# magpie-mcp\n\nMCP (Model Context Protocol) server for **[Magpie Capital](https://magpie.capital)** — the Solana lending protocol for humans *and* AI agents.\n\nGives any MCP-capable LLM (Claude, etc.) native tools:\n\n| Tool | What it answers |\n|---|---|\n| `magpie_protocol_stats` | Live on-chain protocol stats (loans, repayment rate, SOL lent) |\n| `magpie_list_collateral` | The full live collateral catalog — 160+ tokens across memecoins, tokenized stocks/ETFs, gold & silver |\n| `magpie_token_terms` | \"Can I borrow against X, and on what terms?\" — per-token LTV/fee/duration ladder |\n| `magpie_x402_guide` | How autonomous agents borrow programmatically via x402 payment-gated endpoints |\n| `magpie_borrow_quote` | **Live borrow quote** — real production numbers for any token/amount/tier, prices auto-resolved |\n| `magpie_protocol_pulse` | Live 24h aggregates (loans, volume, repays, liquidations) by program version |\n| `magpie_wallet_loans` | Any wallet's full on-chain loan history |\n| `magpie_agent_leaderboard` | The on-chain credit league — top borrowers by credit score |\n| `magpie_safety_brief` | **Read before advising a borrow** — real risks, no-margin-call terms, liquidation mechanics, Sec3 posture |\n\nRead-only by design: this server holds no keys and signs nothing — the safe one-line mount for research and quoting.\n\n**Want your agent to EXECUTE — borrow, arm exits, repay?** Use the full 26-tool desk: [`@magpieloans/magpie-mcp`](https://www.npmjs.com/package/@magpieloans/magpie-mcp) (registry: `io.github.magpiecapital/magpie-mcp`) — wraps every x402 endpoint, with an optional payer keypair for paid calls. Start here read-only; graduate there to act. Agent-side *execution* happens through Magpie's [x402 endpoints](https://magpie.capital/x402).\n\n## Install (Claude Desktop / Claude Code)\n\n```json\n{\n  \"mcpServers\": {\n    \"magpie\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"github:magpiecapital/magpie-mcp\"]\n    }\n  }\n}\n```\n\nClaude Code: `claude mcp add magpie -- npx -y github:magpiecapital/magpie-mcp`\n\n## More for LLMs\n- https://magpie.capital/llms.txt · https://magpie.capital/llms-full.txt\n- Live stats API: https://www.magpie.capital/api/v1/stats\n\nMIT\n",
  "bytes": 2186,
  "sha": "82861aabdbc6f78f35bc8263e02c7e590db26789b75ca1ec2ae156218f663c0c",
  "repo_slug": "magpiecapital/magpie-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_magpiecapital_magpie_1936ea0f/readme"
}