Returns unsigned EVM token-swap transactions with quote, slippage, gas, and calldata details.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Swap API.
The Swap API MCP server connects MCP clients to SwapAPI's token-swap quote endpoint. It prepares swap data for EVM chains from inputs such as the chain ID, input and output token addresses, amount in the token's smallest unit, and the sender's wallet address. An optional maxSlippage value controls the minimum acceptable output; the default is 0.5% when omitted.
The response includes token metadata, the exchange rate, price impact, input amount, expected output, minimum output, and an unsigned transaction. The transaction contains the destination address, calldata, native value, gas price, and gas limit. A client can pass those fields to a wallet or transaction library for signing and broadcast.
The underlying API uses GET /v1/swap/{chainId}. Ethereum, Base, Arbitrum, and Polygon are shown in the documentation through their chain IDs, while unsupported chains produce a client error. Native ETH is represented by the documented sentinel address; ERC-20 swaps use token contract addresses.
A successful response reports a status such as Successful, Partial, or NoRoute. The minAmountOut value reflects the requested slippage limit. The Swap API MCP server does not sign transactions or hold private keys: it supplies data for a separate execution step.
Install the MCP package with npm and register it as a local stdio server. The documented package is @swapapi/mcp:
The package is documented for Claude Desktop, Cursor, Cline, and other MCP clients. SwapAPI requires no API key, account, or authentication. The service is free to use, with a rate limit of 60 requests per minute per IP address.
The available MCP capability is centered on requesting executable swap data from SwapAPI. Use it to:
The resulting transaction can be used with tools such as Foundry cast or a viem wallet client, as illustrated by the project documentation.
The Swap API MCP server only prepares transaction data; it does not provide signing, private-key management, or broadcasting. Agents and applications must validate the token addresses, chain, amount, sender, and slippage before asking a wallet to sign.
Requests may fail with HTTP 400 for invalid parameters or unsupported chains, 429 after exceeding the per-IP limit, or 502 when the upstream service has an error. A response can also indicate that no route was found or that only a partial result is available. No API key is needed, but access remains subject to the stated rate limit and upstream availability.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-207)<a href="https://allmcps.com/mcp/mcp-207"><img src="https://allmcps.com/api/badge/mcp-207?style=directory" alt="Swap API on AllMCPs" /></a>