# Castle Finance - Power DeFi Solana

Castle Finance - Power DeFi Solana connects your agent to Solana DeFi to query DEX pool metrics, simulate Jupiter slippage, and trigger swaps using pay-per-call x402 micropayments.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1304 installs
- Author: castlefinance
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/castlefinance/DeFi
- Updated: 2026-07-11
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/castle-finance-power-defi-solana

## What it does

This remote MCP server interfaces directly with Solana decentralized markets. Free endpoints fetch liquidity and trading volumes from Raydium or Orca, alongside swap route slippage checks evaluated through Jupiter.

Executing token swaps or inspecting wallet balances requires micropayments. Every execution costs 0.001 USDC via the x402 protocol. The agent receives a challenge, signs it with a Solana wallet key, and submits the transaction proof.

Paid calls fail immediately without a funded Solana keypair to sign the challenge. Setup requires no local binary installation because tools run over a remote HTTP endpoint.

## Requirements
- Remote server: `https://castlefinance-defi.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http defi https://castlefinance-defi.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add castle-finance-power-defi-solana --url https://castlefinance-defi.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "castle-finance-power-defi-solana": {
            "url": "https://castlefinance-defi.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "castle-finance-power-defi-solana": {
            "type": "http",
            "url": "https://castlefinance-defi.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http castle-finance-power-defi-solana https://castlefinance-defi.run.tools
```

## When to use it
- inspect liquidity and volume across Raydium or Orca pools
- calculate expected slippage through Jupiter aggregator
- execute token swaps on Solana with per-call x402 micropayments
- fetch balances for arbitrary Solana wallet addresses

## Example prompts
- Search for SOL liquidity pools on Raydium and show their TVL.
- Check the expected slippage when swapping 5 SOL for USDC via Jupiter.
- Inspect token balances for wallet address 7xKXtg on Solana.

## Similar
- [liquidity-analysis](https://affpapa.org/en/nevibecode/skills/liquidity-analysis.md) — skill · 499 installs
- [dex-execution](https://affpapa.org/en/nevibecode/skills/dex-execution.md) — skill · 479 installs
- [jupiter](https://affpapa.org/en/nevibecode/skills/jupiter.md) — skill · 277 installs
- [integrating-jupiter](https://affpapa.org/en/nevibecode/skills/integrating-jupiter.md) — skill · 881 installs
- [jupiter-lend](https://affpapa.org/en/nevibecode/skills/jupiter-lend.md) — skill · 341 installs
- [emblem-defi-yield](https://affpapa.org/en/nevibecode/skills/emblem-defi-yield.md) — skill · 8700 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
