🦄 Uniswap MCP Server Rust 🦀

An MCP (Model Context Protocol) server in Rust that exposes Uniswap Trade API quotes as a tool for AI clients. Built with the official Rust SDK RMCP ( on crates.io).
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher

An MCP (Model Context Protocol) server in Rust that exposes Uniswap Trade API quotes as a tool for AI clients. Built with the official Rust SDK RMCP ( on crates.io).
Interacting with the Uniswap API in Rust
rmcpcargo, rustc)UNISWAP_API_KEY (see Uniswap docs)Create a .env file next to Cargo.toml (or export the variable in your shell):
UNISWAP_API_KEY=your_key_here
The server loads .env at startup using the crate manifest directory, so it works when MCP hosts run the binary from another working directory.
cargo build --release
rmcp with server + transport-io.uniswap_swap_quote — calls POST https://trade-api.gateway.uniswap.org/v1/quote with your API key and returns the JSON quote (pretty-printed text). Use token_in_preset to pick the asset you sell on Ethereum mainnet without typing addresses: native_eth, usdc, usdt, wbtc, dai, weth. If you set a preset, it overrides token_in; otherwise pass a full token_in address.Async runtime: Tokio (required by RMCP and reqwest).
Point your MCP host at the compiled binary. Example for Cursor (.cursor/mcp.json or global MCP settings):
{
"mcpServers": {
"uniswap": {
"command": "/absolute/path/to/uniswap-api-rust/target/release/uniswap-mcp-server-rust",
"env": {
"UNISWAP_API_KEY": "your_key_here"
}
}
}
}
You can omit env if UNISWAP_API_KEY is already in the environment.
To debug with the official inspector (see RMCP examples):
npx @modelcontextprotocol/inspector /absolute/path/to/target/debug/uniswap-mcp-server-rust
Run the commands from the previous section and open the MCP Inspector in your browser.
"tokenIn": "0x0000000000000000000000000000000000000000", // ETH
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT
"tokenInChainId": 1,
"tokenOutChainId": 1,
"type": "EXACT_INPUT",
"amount": "1000000000000000000", // 1 ETH in wei
"swapper": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", // User's wallet address (vitalik.eth)
start, stop, unicorns)See LICENSE in the repository.
Interacting with the Uniswap API in Rust
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
Uniswap MCP Server Rust runs locally over stdio.
Last checked 2026-10-28. Interacting with the Uniswap API in Rust