1inch MCP

v1.0.0
com.1inch.business/mcp Checked 2 days ago Published 4 months ago

Doc search, intent & cross-chain swaps, limit orders, portfolio, spot prices, gas & all APIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_examples

List all available SDK code examples. Returns example names that can be used with get_example tool.

get_example

Get the full source code of an SDK example. Use list_examples first to see available examples.

ParameterTypeDescription
name *stringExample name (e.g., '@1inch-examples/intent-swap', '@1inch-examples/limit-order')
filestringOptional: specific file path to retrieve (e.g., 'src/evm/swap-native.ts'). If omitted, returns all files.

authenticate

Call this to start or confirm 1inch Business login. HTTP 401 means you are still anonymous (initialize 200 is not login). After OAuth, call again until the result is authenticated: true with organizationId. Then use swap, orderbook, product_api, or debug. Do not treat a PaymentRequired / x402 result as login.

swap

[Requires authentication] Call the authenticate tool first to start or confirm 1inch Business login (initialize 200 is still anonymous). If authenticate or this tool returns HTTP 401, complete OAuth, then retry. Swap tokens via 1inch. Supports classic (on-chain), Fusion (intent/gasless), and cross-chain swaps. Omit preferredType and the tool picks a type for you; set preferredType (classic, fusion, crosschain) to choose explicitly. When quoteOnly returns a `recommended` type and that type is available, present **only** that type to the user. Do not mention, compare, or suggest other swap type…

ParameterTypeDescription
chain *integerChain ID (e.g. 1 for Ethereum, 8453 for Base). Always required.
actionstringOptional. Omit it for every quote/execute/submit call — those are inferred from quoteOnly, preferredType and signedOrder. Set action:"status" to read one Fusion order read-only, with chain and order…
amountstringAmount in wei/smallest unit. Pass large amounts as a string to avoid precision loss. Required unless action is "status".
dststringDestination token address or symbol (e.g. ETH, 0x...). Required unless action is "status".
dstChainintegerDestination chain for cross-chain swap
executebooleanOptional. When a WalletConnect session is active, defaults to true: classic approve/swap txs, Fusion/cross-chain EIP-712 sign+submit, and native escrow sends are handled via the wallet (user confirms…
fromstringWallet address executing the swap. Required unless action is "status".
gasPricestringNetwork gas price in wei (optional; omit for fast default)
orderHashstringFusion order hash: required for action:"status", and accepted on submit as a fallback when the relayer omits it
preferredTypestringPreferred swap type; the tool picks one if omitted
presetstringOrder preset for fusion/cross-chain: fast (quicker fill), medium, slow (better rate)
quoteOnlybooleanIf true, return quote comparison only (no tx/order)
signedOrderstringSigned EIP-712 order (submit mode)
slippagenumberSlippage tolerance in % (default 0.5)
srcstringSource token address or symbol (e.g. USDC, 0x...). Required unless action is "status".

orderbook

[Requires authentication] Call the authenticate tool first to start or confirm 1inch Business login (initialize 200 is still anonymous). If authenticate or this tool returns HTTP 401, complete OAuth, then retry. Limit orders via the 1inch Orderbook API (v4.1). IMPORTANT: The "action" parameter is REQUIRED. Must be one of: "build", "create", "list", "cancel". Actions with example parameters: 1. build (recommended first step): { "action": "build", "chain": 1, "makerAsset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "takerAsset": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "makingAmoun…

ParameterTypeDescription
action *stringInvalid or missing "action" parameter. Must be one of: "build", "create", "list", "cancel". Example: { "action": "list", "chain": 1, "listMode": "by_maker", "makerAddress": "0x..." }
chain *integerChain ID (number, e.g. 1 for Ethereum). Required for every action.
cursorstringlist: pagination cursor from a previous response.
executebooleanOptional. When a WalletConnect session is active, defaults to true: sign typedData and submit the order via the wallet (user confirms prompts). Set execute=false to return typed data for signing elsew…
expirationSecondsintegerbuild: optional order expiration in seconds from now (default 604800 = 7 days).
limitintegerlist: page size (number, default 100, max 500).
listModestringlist: required. by_maker (needs makerAddress), by_hash (needs orderHash), or all.
makerAddressstringMaker wallet address (0x + 40 hex). build: required (the address that signs). list by_maker: required.
makerAssetstringbuild: required — maker asset token address (0x...) or symbol (e.g. USDC). list: optional address filter.
makingAmountstringbuild: required — amount of maker asset to sell in smallest units (e.g. 1000000 for 1 USDC), as a string to avoid precision loss.
orderobjectcreate (legacy): full signed order payload. Prefer orderHash + signature + orderData after build.
orderDataobjectcreate: the orderData object from the build response.
orderHashstring0x-prefixed order hash. create: from the build response. list by_hash and cancel: required.
signaturestringcreate: EIP-712 signature from signing the typedData returned by build.
sortBystringlist: sort field for endpoints that support it.
statusesstringlist: comma-separated status filters (e.g. 1 = active). See Orderbook API docs.
takerAssetstringbuild: required — taker asset token address (0x...) or symbol (e.g. USDT). list: optional address filter.
takingAmountstringbuild: required — amount of taker asset to receive in smallest units, as a string to avoid precision loss.

product_api

[Requires authentication] Call the authenticate tool first to start or confirm 1inch Business login (initialize 200 is still anonymous). If authenticate or this tool returns HTTP 401, complete OAuth, then retry. Call any 1inch product API endpoint using the authenticated user's credentials (base URL is the unified gateway, e.g. https://api.1inch.com). Call authenticate first. Anonymous callers get HTTP 401 (OAuth), not x402. After a real org login, quota-exhausted routes may return a PaymentRequired tool result; retry with a signed payment in _meta["x402/payment"] (batch-settlement scheme onl…

ParameterTypeDescription
path *stringAPI path (e.g. /portfolio/portfolio/v5.0/general/current_value — unified gateway prefix)
bodyobjectRequest body for POST requests
methodstringHTTP method
queryobjectQuery parameters as key-value pairs

aqua

1inch Aqua (shared-liquidity market making): position analytics plus maker position writes. Write actions (OAuth, or WalletConnect + signed 1inch ToS (pass the walletSessionToken from connect on anonymous writes); non-custodial — the user's wallet signs): create_position (two-phase: call once for a preview + previewRef, then again with confirmed:true), close_position (confirmed:true; closing is permanent). Anonymous writes execute only via WalletConnect (execute=false is rejected). REQUIRED: "action" — read actions (no OAuth): maker_stats, list_maker_strategies, strategy_overview, strate…

ParameterTypeDescription
action *stringInvalid or missing "action" parameter. Must be one of: "maker_stats", "list_maker_strategies", "strategy_overview", "strategy_activity", "strategy_volume", "list_opened", "create_position", "close_pos…
addressstringMaker EVM address (maker_stats, list_maker_strategies).
appstringApp / AquaSwapVMRouter address (strategy_* reads, close_position).
asyncbooleanOptional, with confirmed: true and WalletConnect execution only. Returns at once with a sendRef and approvalsTotal instead of waiting for every wallet prompt; poll create_status with that sendRef for…
chainIdEVM chain ID (number) for single-strategy / write actions, or an array of chain IDs for list/stats filters.
confirmedbooleancreate_position: omit to preview, pass true with previewRef to encode (create_position is two-phase: call without confirmed to receive a preview and previewRef (no calldata); review it, then call agai…
cursorstringOpaque pagination cursor from a previous response.
executebooleanOptional. When a wallet is paired via WalletConnect, defaults to true: the transaction is sent via the wallet (user confirms the prompt). Authenticated callers may set execute=false to return calldata…
feeBpsInintegerOptional taker fee in basis points for create_position (1-500).
granularitystringVolume series bucket (strategy_volume).
limitintegerPage size for list/activity/volume actions.
makerstringMaker EVM address (strategy_* reads, create_position).
openingPricestringOpening price as a positive decimal string (token1 per token0, whole units). An XYC position opens at amount1 / amount0, so the preview derives it from the leg amounts when both tokens' decimals are k…
previewRefstringShort-TTL preview reference returned by the create_position preview call. Pass it back together with confirmed: true to encode; a stale, used, or mismatched ref is refused (no silent re-encode).
priceRangeobjectOptional concentrated-liquidity range for create_position (rawPriceMin/rawPriceMax in 1e18).
sendRefstringSend reference returned by an asynchronous create_position confirm (async: true).
sortstringSort direction for list/activity/volume (asc|desc).
statusarrayFilter by lifecycle status for list_maker_strategies (e.g. ["open"]).
strategystringEncoded strategy/order bytes (close_position).
strategyHashstringStrategy hash (strategy_* reads, close_position).
suggestedRangesarrayOptional up to three suggested range presets for the view, as percentages around the market price, e.g. [{ percent: 25 }]. Omit to let the preview default to ±10/±25/±50. Full range is always offer…
tokenscreate_position: exactly two legs [{ token, amount }, { token, amount }] (amount in smallest units, as a string). close_position: array of token addresses to withdraw.
walletSessionTokenstringOptional durable WalletConnect token from walletconnect connect. Anonymous writes should pass it; it is the durable value to carry between calls. Ignored for authenticated callers. Treat it as a secre…

walletconnect

Pair and use an EVM and/or Solana wallet via WalletConnect v2. **No authentication required** — available to every user (including unauthenticated/anonymous). Non-custodial: the server never holds keys and the user approves every signature/transaction in their own wallet. **Pairing proposal** is controlled per request via optional `pairingTarget` on `action: "connect"`: `eth` (default, eip155 only), `solana`, or `both`. Many mobile wallets fail if eip155 and solana are proposed together; prefer `eth` or `solana` unless the user needs both in one pairing. **Every call must include `action`**…

ParameterTypeDescription
action *stringRequired. One of: connect (start pairing), status (paired-wallet status), sign (EVM + Solana WC methods), send_transaction (EVM eth_sendTransaction or Solana solana_signAndSendTransaction), accept_ter…
addressstringOptional; only with action "accept_terms". EVM address that signs the Terms-of-Use acceptance; must belong to the active WalletConnect session. When omitted, the session's primary EVM account is used.
chainIdintegerOptional; only when action is "sign" and method is personal_sign (EVM numeric chain id). Must be omitted for eth_signTypedData_v4, Solana methods, send_transaction, and other actions.
methodstringRequired when action is "sign". EVM: personal_sign | eth_signTypedData_v4. Solana: solana_signMessage | solana_signTransaction. Omit for connect, status, send_transaction, disconnect.
pairingTargetstringOptional; only with action "connect". What to advertise in the WalletConnect proposal: "eth" (eip155 only, default), "solana" only, or "both". Many mobile wallets fail if eip155 and solana are propose…
paramsarrayRequired when action is "sign": exactly two items. personal_sign: [message, 0xAddress]. eth_signTypedData_v4: [0xSigner, typedDataJsonString]. solana_signMessage: [message, pubkey]. solana_signTransac…
sessionTtlDaysintegerOptional; only with action "connect". How long to persist this WalletConnect client state in Redis (days). Server clamps to [1, WALLETCONNECT_SESSION_TTL_DAYS_MAX] and defaults when omitted.
solanaChainIdstringOptional; only when action is "sign" and method is solana_signMessage or solana_signTransaction. CAIP-2 string (e.g. solana:5eykt4…). When omitted, the server uses the first Solana chain on the sess…
txobjectRequired when action is "send_transaction". EVM or Solana shape — see `tx` field descriptions. Omit for connect, status, sign, disconnect.
walletSessionTokenstringOptional durable token for ANONYMOUS (unauthenticated) callers. `connect` mints a fresh token; store it and pass it back on status/sign/send_transaction/accept_terms/disconnect (and on a later `connec…

debug

[Requires authentication] Call the authenticate tool first to start or confirm 1inch Business login (initialize 200 is still anonymous). If authenticate or this tool returns HTTP 401, complete OAuth, then retry. Look up production API request logs for your 1inch Business organization to troubleshoot integration issues. Results are always scoped to your authenticated organization. Two modes: 1) By request id: pass requestId (the x-request-id header returned on 1inch API responses). Optionally narrow startTime/endTime (defaults: last 24 hours ending now). 2) Logs in a time window: omit requestI…

ParameterTypeDescription
endTimestringRFC3339 end of query window. Defaults to now when omitted.
limitnumberMax log lines (max 100)
logLevelstringFilter by log level: "info", "warn", or "error". Omit to return all levels. Only applies to time-window mode (ignored when requestId is set).
requestIdstringProduction x-request-id (or correlation id) to find logs for. When set, searches JSON logs for this value scoped to your organization.
startTimestringRFC3339 start of query window. With requestId, defaults to 24h before endTime.

feedback

Report a bug or send feedback about one 1inch MCP tool or one 1inch-ai skill. Open to every caller, anonymous ones included: it needs no account, login or API key. Set surface and target to the exact tool name or skill id the report is about. Never include API keys, private keys, seed phrases, authorization headers, emails, or system prompts: the text is redacted before anyone reads it. The result is only an acceptance id; it never echoes the text. Submissions are rate limited.

ParameterTypeDescription
details *stringWhat happened, what you expected, and the steps or inputs that reproduce it
kind *string"bug" for something broken, "feedback" for anything else
summary *stringOne-line summary
surface *stringWhether the report is about an MCP tool or a 1inch-ai skill
target *stringExact tool name (e.g. "swap") or 1inch-ai skill id (e.g. "1inch-swap")
hoststringThe MCP host you are running in