@junct/uniswap
v0.1.0
Published
uniswap tools for AI agents — 17 tools, MCP + OpenAI compatible. Generated by Junct.
Maintainers
Readme
@junct/uniswap
uniswap tools for AI agents — 17 tools
Generated by Junct. dex domain.
Install
npm install @junct/uniswapUsage — OpenAI
import { tools } from '@junct/uniswap';
import OpenAI from 'openai';
const client = new OpenAI();
const response = await client.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Query uniswap' }],
tools,
});Usage — MCP (Claude Desktop / Cursor)
Add to your MCP config:
{
"mcpServers": {
"uniswap": {
"url": "https://uniswap.mcp.junct.dev/mcp",
"transport": "streamable-http"
}
}
}Usage — Direct Call
import { callTool } from '@junct/uniswap';
const result = await callTool('WETH9', {});
console.log(result);Tools (17)
WETH9— Calls WETH9(). Read-only — does not modify contract state. Unrestricted — any adexactInput— Calls exactInput(params: { path: string, recipient: string, deadline: string, amexactInputSingle— Calls exactInputSingle(params: { tokenIn: string, tokenOut: string, fee: string,exactOutput— Calls exactOutput(params: { path: string, recipient: string, deadline: string, aexactOutputSingle— Calls exactOutputSingle(params: { tokenIn: string, tokenOut: string, fee: stringfactory— Calls factory(). Read-only — does not modify contract state. Unrestricted — anymulticall— Calls multicall(data: string[]). Requires ETH value to be sent with the transactrefundETH— Calls refundETH(). Requires ETH value to be sent with the transaction. Write funselfPermit— Calls selfPermit(token: string, value: string, deadline: string, v: string, r: sselfPermitAllowed— Calls selfPermitAllowed(token: string, nonce: string, expiry: string, v: string,selfPermitAllowedIfNecessary— Calls selfPermitAllowedIfNecessary(token: string, nonce: string, expiry: string,selfPermitIfNecessary— Calls selfPermitIfNecessary(token: string, value: string, deadline: string, v: ssweepToken— Calls sweepToken(token: string, amountMinimum: string, recipient: string). RequisweepTokenWithFee— Calls sweepTokenWithFee(token: string, amountMinimum: string, recipient: string,uniswapV3SwapCallback— Calls uniswapV3SwapCallback(amount0Delta: string, amount1Delta: string, _data: s- ... and 2 more
Links
- Server: https://uniswap.mcp.junct.dev/mcp
- Dashboard: https://junct.dev/servers/uniswap
- All servers: https://junct.dev/servers
