developer-toolsapi_key

Uniswap Api

Uniswap Trading API for executing swaps and managing liquidity across 25+ blockchain networks

Verdict

The Uniswap API MCP lets your team quote, execute, and track token swaps and cross-chain bridges directly from Switchy. @mention it to check token prices, get swap quotes, verify transaction status, or batch multiple trades into a single wallet operation. Developers building DeFi workflows get the most value — you can prototype swap logic, monitor gasless orders, and check wallet approvals without leaving your AI workspace. Note that you'll need an API key from Uniswap's developer portal, and actual transaction execution still happens on-chain (this MCP prepares and tracks trades, it doesn't sign them).

Common use cases

  • Quote token swaps before executing trades
  • Track pending bridge transactions across chains
  • Verify wallet approvals for ERC-20 transfers
  • Batch multiple swaps into one transaction
  • Monitor gasless order status for users

Integration

Vendor
Uniswap Api
Category
developer-tools
Auth
API_KEY
Tools
7
Composio slug
uniswap_api

Tools

  • Check Token Approval

    Tool to check if a wallet has sufficient token approval for a specified transaction amount. Returns an approval transaction if needed, or null if approval already exists. Use this before executing a swap to verify or obtain the necessary to

  • Check Wallet Delegation

    Get the current delegation status and message for a smart contract wallet across different chains. Returns delegation information for each chain ID in the request, including whether the wallet is delegated, the delegate address, and delegat

  • Encode 7702 transactions

    Encode a list of transactions into a single transaction for smart contract wallet execution (EIP-7702). All transactions must have the same chainId. Use when you need to batch multiple transactions into a single smart contract wallet transa

  • Get Gasless Orders

    Retrieve one or more gasless orders from Uniswap, optionally filtered by query parameters. Must include at least one of: orderId, orderIds, orderStatus, swapper, or filler. Use when you need to check the status or details of Uniswap gasless

  • Get Quote

    Requests a quote according to the specified swap parameters. This endpoint may be used to get a quote for a swap, a bridge, or a wrap/unwrap. The resulting response includes a quote for the swap and the proposed route by which the quote was

  • Get swappable tokens

    Returns the list of destination bridge chains for a given token on a given chain. Useful for discovering cross-chain swap/bridge options. Returns tokens that are available for swapping/bridging from the specified source token.

  • Get Swap Status

    Tool to retrieve the current status of swap or bridge transactions on the Uniswap trading platform. Use when you need to check if a swap transaction has been confirmed, is pending, or has failed. Provide the transaction hash(es) to get the

Setup

Setup guide

  1. 11. Open your Switchy workspace and navigate to Settings > Integrations > Developer Tools. 2. Find Uniswap API in the list and click Connect. 3. You'll be prompted to paste an API key — generate one at the Uniswap developer portal (requires a free account). 4. Copy the key and paste it into Switchy's auth dialog, then click Save. 5. To test the connection, open any Space and type '@Uniswap Api get me a quote for swapping 1 ETH to USDC on mainnet'. 6. If the MCP responds with pricing data, you're connected. 7. To invoke tools in a conversation, always start your message with '@Uniswap Api' followed by your request — the AI will route it to the correct tool (quote, status check, approval verification, etc.). 8. For cross-chain operations, specify both source and destination chain IDs in your prompt.

What teammates see: by default, memories from Uniswap Api are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Spaces have used this MCP together with a given model.

How Switchy teams use it

Not enough Spaces yet to publish anonymised usage stats (we require ≥ 50 Spaces per week).

Starter prompts

Get Swap Quote

@Uniswap Api get me a quote for swapping 0.5 ETH to USDC on Ethereum mainnet. Include gas estimates and slippage tolerance of 0.5%.
Open in a Space →

Check Transaction Status

@Uniswap Api check the status of swap transaction 0xabc123def456 on Arbitrum. Let me know if it's confirmed or still processing.
Open in a Space →

Verify Token Approval

@Uniswap Api check if wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb has approved at least 1000 USDC for swapping on Polygon.
Open in a Space →

Find Bridge Options

@Uniswap Api show me all destination chains where I can bridge USDC from Ethereum mainnet. Include token addresses for each chain.
Open in a Space →

Batch Swap Transactions

@Uniswap Api encode these three swaps into one EIP-7702 transaction on Base: swap 0.1 ETH to USDC, swap 100 USDC to DAI, swap 50 DAI to WETH.
Open in a Space →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@Uniswap Api get me a quote for swapping 1 ETH to USDC on Ethereum mainnet, and show me the expected output amount and gas costs

Output

Based on current liquidity pools, swapping 1 ETH to USDC on Ethereum mainnet would yield approximately 3,847.23 USDC. The quote includes an estimated gas cost of 0.0032 ETH (~$12.30) and a 0.3% protocol fee. The route would execute through the ETH/USDC 0.3% pool with a price impact of 0.02%. This quote is valid for approximately 30 seconds given market volatility. Note that this is an illustrative example—actual quotes vary by real-time liquidity and network conditions.

Notes

This example demonstrates the MCP's core quoting capability. Users should know that quotes expire quickly (typically 30-60 seconds) and require a valid API key with appropriate rate limits. The quote does not guarantee execution—you must separately check token approvals and submit the swap transaction. Gas estimates can vary significantly based on network congestion.

Prompt

@Uniswap Api check if my wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb has approval to spend 5000 USDC on the Uniswap router contract

Output

The wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb currently has an approval of 2,500 USDC for the Uniswap Universal Router. To execute a 5,000 USDC swap, an additional approval transaction is required. The MCP returns an encoded approval transaction that would set the allowance to unlimited (max uint256). You can submit this transaction to grant the router permission to spend USDC on your behalf. This is an illustrative example—actual approval amounts and transaction data depend on the token contract and current on-chain state.

Notes

This write-action example shows how the MCP helps manage ERC-20 token approvals before swaps. Users must understand that approvals are on-chain transactions requiring gas and wallet signatures. Setting unlimited approvals (common practice) carries security risk if the router contract is compromised. Always verify the router address matches Uniswap's official deployment before signing.

Prompt

@Uniswap Api find all available bridge destinations for USDC on Polygon, then summarize which chains offer the lowest bridging fees and fastest settlement times

Output

USDC on Polygon can be bridged to 8 destination chains: Ethereum, Arbitrum, Optimism, Base, BNB Chain, Avalanche, Fantom, and Celo. Based on current liquidity and bridge routes, Arbitrum and Optimism offer the lowest fees (0.01-0.05% of transfer amount) with settlement times of 5-10 minutes. Ethereum mainnet has higher fees (~0.1-0.3%) but deepest liquidity for large transfers. Base provides competitive fees similar to Arbitrum with 3-7 minute settlement. This analysis combines the MCP's bridge discovery data with typical cross-chain performance characteristics—actual fees and times vary by transfer size and network conditions.

Notes

This synthesis example pairs the MCP's bridge discovery tool with AI reasoning to compare options. Users should verify bridge fees and settlement times at execution, as they fluctuate with network congestion and liquidity. The MCP returns available routes but doesn't execute bridges—you'll need to request a separate quote and submit the bridge transaction. Cross-chain transfers carry additional risks including failed transactions on the destination chain.

Use-case deep-dives

DeFi dashboard for portfolio tracking

When Uniswap API makes sense for real-time swap monitoring

A 3-person crypto analytics team building a portfolio tracker for 200 users needs live swap status and quote data. The Uniswap API is the right call here because Get Swap Status and Get Quote run in real-time without scraping on-chain logs, and the 7-tool scope keeps the integration narrow. The API_KEY auth means each team member can test locally without wallet signatures. The threshold: if your app needs historical swap data older than 30 days or cross-DEX aggregation, this MCP won't cover it—you'll need an indexer like The Graph. For live Uniswap-only flows (quote, execute, confirm), this is the cleanest path to production.

Cross-chain bridge UX in wallet app

How Get Swappable Tokens accelerates bridge feature builds

A 6-person wallet team adding a bridge feature to their mobile app uses Get Swappable Tokens to show users which chains support their token without maintaining a static config file. The tool returns destination chains dynamically, so the UI stays current when Uniswap adds new routes. Encode 7702 transactions batches the approval and bridge into one user signature, cutting the flow from three taps to one. The trade-off: if your wallet supports non-Uniswap bridges (Stargate, Across), this MCP only covers Uniswap routes—you'll need a second integration or a bridge aggregator API. For Uniswap-first wallets, this cuts bridge launch time from weeks to days.

Gasless swap bot for community treasury

When Check Token Approval and Get Gasless Orders fit DAO ops

A 10-person DAO operations team runs a Telegram bot that executes treasury swaps without requiring signers to hold ETH for gas. Check Token Approval confirms the treasury wallet has approved the Uniswap router before the swap, and Get Gasless Orders tracks the order status after submission. The 7-tool count means the bot's prompt stays under 2k tokens, so GPT-4 picks the right tool on the first try. The boundary: gasless orders only work for specific token pairs and order sizes—if your treasury swaps exceed Uniswap's gasless limits (typically under $50k), you'll pay gas or need a relayer. For small-to-mid DAO treasuries, this eliminates the 'who has ETH' coordination tax.

Frequently asked

What does the Uniswap API MCP let me do in Switchy?

It lets your team check token approvals, request swap quotes, track transaction status, and encode batch transactions for Uniswap trades — all from Switchy's chat interface. You can query gasless orders, discover cross-chain bridge options, and check wallet delegation status without switching to the Uniswap web app or writing API calls yourself.

Do I need a Uniswap API key to connect this MCP?

Yes. This MCP uses API key authentication, so you'll need to generate a key from Uniswap's developer portal before connecting it in Switchy. The key must have permissions for quote requests, order retrieval, and transaction encoding. Without it, none of the tools will work.

Can this MCP execute swaps directly or just quote them?

It can request quotes and prepare transactions (including approval checks and batch encoding), but it doesn't sign or broadcast swaps on your behalf. You still need to approve and execute the transaction in your wallet. Think of it as a read-heavy assistant that hands you the data and encoded payloads — not a trading bot.

Is this faster than using Uniswap's web interface for price checks?

For quick quote lookups and status checks, yes — you skip the browser tab and get structured data in chat. For complex multi-hop trades or visual comparison of routes, the web UI is still more intuitive. Use the MCP when you want programmatic access to quotes and order status without leaving Switchy.

Who on my team should connect the Uniswap API key?

Whoever manages your team's DeFi operations or developer integrations. The key holder can query quotes and order status for any wallet address, but they can't execute trades without the wallet owner's signature. If multiple people need access, share the API key through Switchy's credential store rather than creating duplicate connections.

Data last verified 607 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.