XRPL Ledger Access
STDIOModel Context Protocol server providing comprehensive access to XRP Ledger.
Model Context Protocol server providing comprehensive access to XRP Ledger.
A Model Context Protocol (MCP) server providing comprehensive access to the XRP Ledger (XRPL). This service enables AI models to interact with XRPL through standardized endpoints.
xrpl_account_info
- Basic account detailsxrpl_account_balances
- XRP and token balances (human-readable)xrpl_account_lines
- Trust linesxrpl_account_offers
- Active trading offersxrpl_account_nfts
- NFT holdingsxrpl_account_tx
- Transaction historyxrpl_order_book
- View order book for currency pairsxrpl_market_price
- Get current market pricesxrpl_amm_info
- Automated Market Maker informationxrpl_nft_offers
- View NFT buy/sell offersxrpl_set_trust_line
- Establish new trust linesxrpl_remove_trust_line
- Remove existing trust linesxrpl_payment_channels
- Payment channel informationxrpl_find_path
- Payment path findingxrpl_deposit_auth
- Check payment authorizationxrpl_server_info
- Node status and informationxrpl_submit_tx
- Submit signed transactions.env
file:XRPL_NODE_URL=https://xrplcluster.com
pip install xrpl-py fastapi uvicorn python-dotenv
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
POST /call-tool/xrpl_account_info { "account": "rsuUjfWxrACCAwGQDsNeZUhpzXf1n1NK5Z" }
POST /call-tool/xrpl_account_balances { "account": "rsuUjfWxrACCAwGQDsNeZUhpzXf1n1NK5Z" }
POST /call-tool/xrpl_set_trust_line { "wallet_seed": "sXXXXXXXXXXXXXXXXXXXX", "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", "limit": "1000" }
POST /call-tool/xrpl_amm_info { "asset": { "currency": "XRP" }, "asset2": { "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" } }
POST /call-tool/xrpl_market_price { "base_currency": { "currency": "XRP" }, "quote_currency": { "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" } }
├── main.py # FastAPI application entry point
├── tools/
│ ├── __init__.py
│ ├── register_tools.py # Tool registration
│ └── xrpl_tools.py # XRPL endpoint implementations
xrpl_tools.py
register_tools.py
AMM (Liquidity Pool) Operations
Advanced Trading
NFT Operations
Async Event Loop: If you see "asyncio.run() cannot be called from a running event loop", check the async implementation in xrpl_tools.py
Rate Limiting: Consider implementing rate limiting for production use
MIT