magpie-mcp
OfficialProvides read-only tools to interact with the Magpie Capital lending protocol on Solana, allowing agents to query live protocol statistics, browse collateral catalogs, check token borrowing terms, and access guidance for x402-based programmatic borrowing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@magpie-mcpWhat are the current protocol stats?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
magpie-mcp
MCP (Model Context Protocol) server for Magpie Capital — the Solana lending protocol for humans and AI agents.
Gives any MCP-capable LLM (Claude, etc.) native tools:
Tool | What it answers |
| Live on-chain protocol stats (loans, repayment rate, SOL lent) |
| The full live collateral catalog — 160+ tokens across memecoins, tokenized stocks/ETFs, gold & silver |
| "Can I borrow against X, and on what terms?" — per-token LTV/fee/duration ladder |
| How autonomous agents borrow programmatically via x402 payment-gated endpoints |
| Live borrow quote — real production numbers for any token/amount/tier, prices auto-resolved |
| Live 24h aggregates (loans, volume, repays, liquidations) by program version |
| Any wallet's full on-chain loan history |
| The on-chain credit league — top borrowers by credit score |
| Read before advising a borrow — real risks, no-margin-call terms, liquidation mechanics, Sec3 posture |
Read-only by design: this server holds no keys and signs nothing — the safe one-line mount for research and quoting.
Want your agent to EXECUTE — borrow, arm exits, repay? Use the full 26-tool desk: @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.
Install (Claude Desktop / Claude Code)
{
"mcpServers": {
"magpie": {
"command": "npx",
"args": ["-y", "github:magpiecapital/magpie-mcp"]
}
}
}Claude Code: claude mcp add magpie -- npx -y github:magpiecapital/magpie-mcp
Related MCP server: obol
More for LLMs
https://magpie.capital/llms.txt · https://magpie.capital/llms-full.txt
Live stats API: https://www.magpie.capital/api/v1/stats
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
x402 pay-per-call Solana data + crypto market + JWT/unit utils for AI agents.
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
Market and on-chain crypto data for AI agents. Pay per call in USDC on Base (x402).
Pay-per-call MCP tools over x402 (USDC/Solana): LLM, utilities, x402 market and model prices.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query Hyperliquid spot market data, including token listings, live prices, 24h volumes, and wallet balances, via pay-per-call x402 micropayments.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to access Solana wallet analytics, token data, and DeFi tools via pay-per-request USDC micropayments using the x402 protocol, without API keys or subscriptions.1334 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables LLM agents to access Gavel credit data, Bitcoin on-chain indicators, and yield curves, and to generate unsigned blueprints for bids, auction creation, loan repayment, and collateral claims, while ensuring no signing or ranking is performed.-
- AlicenseAqualityCmaintenanceEnables MCP-capable AI agents to make pay-per-call Solana data requests (snapshots, risk checks, token reports, health, balances, transactions, trending pairs) with automatic USDC settlement over x402.5MIT