Skip to main content
Glama
solana-capital-guard-mcp

solana-capital-guard-mcp

solana-capital-guard-mcp

Model Context Protocol (MCP) stdio server for pre-trade SPL Token-2022 mint inspection, vault sizing rules, and guarded non-custodial MultiHopper transfer planning on Solana.

Autonomous agents calling DEX aggregators or multi-hop routers without checking SPL Token-2022 mint extensions can get trapped by permanentDelegate seizures, nonTransferable soulbound tokens, frozen default account states, or high transferFeeConfig basis-point taxes. This server checks getAccountInfo (jsonParsed) on Solana RPC, enforces vault position sizing, and builds ordered 2-phase broadcast plans for MultiHopper transfers while keeping private keys strictly client-side.

Tools

  • inspect_solana_mint: Checks SPL Token (Tokenkeg...) and Token-2022 (TokenzQd...) mint extensions (permanentDelegate, nonTransferable, defaultAccountState, transferFeeConfig, transferHook, freezeAuthority, mintAuthority).

  • evaluate_capital_trade: Checks trade size against floor-rounded vault NAV caps (maxPositionBps), slippageBps, priceImpactPct, hop count, and audited Solana program IDs (Jupiter v6, Orca Whirlpools, Raydium CLMM/AMM v4, Meteora DLMM, MultiHopper Core 3jLoS2... and Orchestrator 4TPCmR...).

  • plan_multihopper_transfer: Isolates mh_test_ (devnet) vs mh_live_ (mainnet) endpoints, blocks circular self-transfers, runs inspect_solana_mint + evaluate_capital_trade, and quotes a MultiHopper route via /api/v1/transfers/estimate and /api/v1/transfers.

  • build_multihopper_broadcast_plan: Verifies lastValidBlockHeight and enforces the 2-phase signing and confirm-broadcast sequence (keeperFundingTx checkpoint first, then routeInitTxs, orchestratorInitTx, and sessionInitTxs, skipping null groups on retry).

Related MCP server: Sentinel

Usage

bun test
bun run mcp

MCP client configuration:

{
  "mcpServers": {
    "solana-capital-guard": {
      "command": "bun",
      "args": ["run", "src/mcp.ts"]
    }
  }
}

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to score Solana tokens, simulate and decode transactions, and apply owner-defined limits, allowlists and slippage rules before anything is signed, returning a clear allow, confirm, block or freeze verdict. Also supports on-chain enforcement through a Squads multisig so an agent can propose trades but only execute when the gateway approves, with a kill-switch and owner approval flows for risky actions.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enforces a policy ladder for Solana AI agents so on-chain actions are vetted before signing, checking whether an action is justified, recently repeated, or targets only known programs, and applying spend, daily, and slippage caps plus recipient allowlists. Also dry-runs candidate transactions on an RPC and exposes the policy rules as agent prompt instructions.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to screen Solana tokens, triage swaps before signing, and generate optimized unsigned swap transactions with payment and budget controls through MCP tools.
      146 npm
      1
      MIT