Onlyswaps MCP server
DEX meta-aggregator for AI agents. Best prices from 15+ aggregators across 13 chains.
27 downloads/wk
Reviews
Write oneNobody has reviewed Onlyswaps yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Onlyswaps tools (12, 3 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
approve_permit2Approve a token for Permit2 (required once per token before trading).
build_swap_txBuild swap transaction data. Two flows based on input token type:
check_setupCheck if wallet is ready for autonomous trading.
encode_swap_txEncode a signed Permit2 swap into a ready-to-send transaction.
estimate_gasCheck if a user has enough native token (ETH, BNB, etc.) to pay gas for a swap.
execute_swapwrite actionExecute a swap end-to-end: get quote, build transaction, sign via Privy embedded wallet, and broadcast.
get_portfolioGet user's token portfolio across chains. Returns all token holdings with USD values and total portfolio value.
get_quoteGet a swap quote for exchanging tokens on OnlySwaps. Returns the best quote from multiple DEX aggregators including expected output amount, gas estimate, and price impact. Supports Ethereum, Base, Arbitrum, Polygon, BSC, Optimism, Avalanche, and Solana.
get_tx_statusCheck the status of a transaction by its hash. Returns whether the transaction succeeded, failed, is pending, or was not found.
setup_walletwrite actionCreate or retrieve a trading wallet for autonomous swaps.
simulate_swapSimulate signed Permit2 swaps before execution.
swapwrite actionExecute a token swap autonomously.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan74 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancerepository not readable: repo not found3/15
- Maintainer identityno repository or website to verify2/10
How Onlyswaps compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 65/100
- higher than 20% of 48,255 servers
- Tools
- 12
- the typical server has 7
- Tools that change things
- 25%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 27
- more than 14% of 12,191 servers with a package
What its tools let an agent do: 8 read · 3 change · 1 run or deploy
Install Onlyswaps in Claude Code, Cursor or VS Code
Runs npx -y @onlyswaps/mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add onlyswaps -- npx -y @onlyswaps/mcp-server
Onlyswaps: common questions
- Is Onlyswaps MCP server safe?
- With care: it is graded C, so read the findings first (65/100). Read the Onlyswaps safety report
- How do I install Onlyswaps?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Onlyswaps need an API key?
- No secret keys are declared. It reads 1 setting from the environment.
- Is Onlyswaps maintained?
- The latest release is v0.1.2.
- How does Onlyswaps compare with other MCP servers?
- safety score 65/100 (higher than 20% of 48,255 servers); tools 12 (the typical server has 7); tools that change things 25% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.