Uniswap TraderSAFE
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@kukapay/uniswap-trader-mcp)
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
Features
- Price Quotes: Get real-time price quotes for token swaps with multi-hop route optimization.
- Swap Execution: Execute swaps on Uniswap V3 with configurable slippage tolerance and deadlines.
- Swap Suggestions: Generate trading suggestions based on liquidity, fees, and optimal paths.
- Multi-Chain Support: Compatible with Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base.
Prerequisites
- Node.js: Version 14.x or higher.
- npm: For package management.
- Wallet: A funded wallet with a private key for executing swaps.
- RPC Endpoints: Access to blockchain RPC URLs (e.g., Infura, Alchemy) for supported chains.
Installation
Installing via Smithery
To install Uniswap Trader MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
Manual Installation
- Clone the Repository:
git clone https://github.com/kukapay/uniswap-trader-mcp.git cd uniswap-trader-mcp
- Install Dependencies:
npm install
Configuration
{
"mcpServers": {
"Uniswap-Trader-MCP": {
"command": "node",
"args": ["path/to/uniswap-trader-mcp/server/index.js"],
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
}
}
}
}Usage
Supported Chains
The following blockchains are supported. Ensure each chain is configured in chainConfigs.js with a valid RPC URL, WETH address, and SwapRouter address.
8bb9d06de11bOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add uniswap-trader-mcp --env INFURA_KEY=${INFURA_KEY} --env WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY} -- npx -y [email protected]{
"mcpServers": {
"uniswap-trader-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"INFURA_KEY": "${INFURA_KEY}",
"WALLET_PRIVATE_KEY": "${WALLET_PRIVATE_KEY}"
}
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
executeSwap | write | Execute a swap on Uniswap with optimal multi-hop routing |
getPrice | read | Get a price quote for a Uniswap swap, supporting multi-hop routes |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, @uniswap/smart-order-router, @uniswap/v3-sdk, dotenv, tslib, zod
Gates applied: no_behavioural_pass.
8bb9d06de11bfull audit observations/trust-audit/mcp-server/kukapay__uniswap-trader.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 8bb9d06de11b | SAFE | B | 89 | first audit |
Questions
What is the Uniswap Trader MCP server?
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
What tools does Uniswap Trader expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Uniswap Trader safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Uniswap Trader need?
It reads INFURA_KEY and WALLET_PRIVATE_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Uniswap Trader run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as uniswap-trader-mcp at 1.0.1.
How current is this page?
The grade is for one exact copy of the source (8bb9d06de11b), read on 2026-10-08. The repository is watched and re-audited when it changes.