Magpie Capital logo

Magpie Capital

Read-only MCP tools for Solana lending data, collateral terms, borrow quotes, wallet history, and x402 agent guidance.

Install Magpie Capital

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "magpie-capital": {
      "command": "npx",
      "args": [
        "-y",
        "github:magpiecapital/magpie-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The Magpie Capital MCP server connects MCP-capable LLMs to live data from the Magpie Capital Solana lending protocol. It exposes read-only tools for protocol statistics, collateral discovery, token-specific loan terms, borrow quotes, wallet loan history, agent rankings, and safety guidance. Use it when an agent needs to research or quote lending activity without holding keys or signing transactions. Autonomous execution is outside this server and uses Magpie’s separate x402 endpoints and execution package.

Use cases

  • Check live Solana lending protocol statistics
  • Compare collateral eligibility and borrowing terms
  • Generate a production borrow quote
  • Review a wallet’s on-chain loan history
  • Explain x402 borrowing and lending risks

Key features

  • Live protocol statistics and 24-hour aggregates
  • Collateral catalog covering 160+ tokens
  • Per-token LTV, fee, and duration terms
  • Live borrow quotes with automatic price resolution
  • Wallet loan history and agent credit rankings
  • Read-only x402 and borrowing safety guidance

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 42d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · github:magpiecapital/magpie-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.

How Magpie Capital works

What Magpie Capital MCP server does

The Magpie Capital MCP server gives an MCP-capable model read-only access to information from Magpie Capital, a Solana lending protocol. It is intended for research, lending analysis, and quote generation rather than transaction execution. The server does not hold wallet keys and does not sign transactions.

Its data includes current protocol activity, available collateral, per-token borrowing terms, live quotes, loan history for a wallet, borrower rankings, and lending risk information. The collateral catalog covers more than 160 tokens, including memecoins, tokenized stocks and ETFs, gold, and silver.

How it works

The server runs as an MCP process and exposes named tools that an MCP client can call from a conversation or agent workflow. Live values are resolved when the relevant tool is used, including production borrow quotes for a token, amount, and borrower tier. Prices for quotes are resolved automatically.

The server separates information access from transaction execution. It can explain how agents borrow through x402 payment-gated endpoints, but it does not perform borrowing, repayment, or exit-management actions itself. Those actions belong to Magpie’s separate x402 endpoint workflow and the larger execution package referenced by the project.

Setup and configuration

The repository documents a GitHub-based installation for Claude Desktop:

config.json
{
  "mcpServers": {
    "magpie": {
      "command": "npx",
      "args": ["-y", "github:magpiecapital/magpie-mcp"]
    }
  }
}

Claude Code can add the same server with:

Terminal
claude mcp add magpie -- npx -y github:magpiecapital/magpie-mcp

No environment variables or private keys are specified for the read-only server. The documented setup uses npx to launch the repository package. Additional reference material is available through Magpie’s LLM documentation files and its live statistics API.

Tools and capabilities

The Magpie Capital MCP server provides these documented tools:

  • magpie_protocol_stats reports live on-chain totals such as loans, repayment rate, and SOL lent.
  • magpie_list_collateral returns the current collateral catalog.
  • magpie_token_terms explains whether a token can be used as collateral and gives its LTV, fee, and duration ladder.
  • magpie_borrow_quote returns a live quote for a token, amount, and tier.
  • magpie_protocol_pulse provides 24-hour loan, volume, repayment, and liquidation aggregates grouped by program version.
  • magpie_wallet_loans retrieves a wallet’s on-chain loan history.
  • magpie_agent_leaderboard shows leading borrowers by on-chain credit score.
  • magpie_x402_guide describes programmatic borrowing through x402 payment-gated endpoints.
  • magpie_safety_brief covers borrowing risks, no-margin-call terms, liquidation mechanics, and Sec3 posture.

Limitations and notes

The Magpie Capital MCP server is read-only by design. It cannot borrow funds, arm exits, repay loans, or sign Solana transactions. Agents that need those operations must use the separate execution tooling and Magpie x402 endpoints described in the project documentation.

Live protocol information and quotes may change as on-chain activity, prices, and lending conditions change. The safety brief should be consulted before an agent advises on borrowing. The repository states that it is licensed under MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Magpie Capital

Magpie Capital is an MCP server that connects MCP-capable LLMs to the Solana Magpie Capital lending protocol. Its read-only tools provide live protocol statistics, collateral listings, token borrowing terms, production borrow quotes, wallet loan history, agent rankings, protocol activity, x402 borrowing guidance, and safety information.

Install it with `npx` from the GitHub repository and add the documented MCP configuration to Claude Desktop. Claude Code users can run `claude mcp add magpie -- npx -y github:magpiecapital/magpie-mcp`.

No, the server is read-only and does not hold keys or sign transactions. Borrowing, repayment, and exit-management actions use Magpie’s separate x402 endpoints and execution package.

It can query live protocol statistics, a 160-plus-token collateral catalog, token-specific LTV and fee terms, live borrow quotes, 24-hour protocol activity, wallet loan history, agent rankings, x402 guidance, and safety information.

Claude Desktop uses an `npx` MCP configuration, while Claude Code uses the `claude mcp add` command.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMagpie Capital AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/magpie-capital?style=directory)](https://allmcps.com/mcp/magpie-capital)
HTML Embed
<a href="https://allmcps.com/mcp/magpie-capital"><img src="https://allmcps.com/api/badge/magpie-capital?style=directory" alt="Magpie Capital on AllMCPs" /></a>