1inch MCP

com.1inch.business由 business.1inch.com 发布v1.0.0更新于 Nov 2, 2026

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

已验证Streamable HTTP可网页运行网页搜索与抓取金融开发者工具

概览

AI 生成的概览

1inch Business MCP 服务器,提供文档搜索、SDK 示例、代币兑换、限价单、钱包数据及其他 1inch API 访问。

可以做什么
  • 搜索 1inch 文档与 API 参考,列出并获取 SDK 代码示例
  • 通过经典链上、Fusion 免 Gas 或跨链方式兑换代币
  • 通过 1inch Orderbook API 下限价单并管理订单
  • 使用已认证用户凭据调用任意 1inch 产品 API,如资产组合、余额、现货价格、Gas 与基础设施
  • 查看 Aqua 共享流动性仓位分析并创建做市仓位
  • 通过 WalletConnect 配对 EVM 或 Solana 钱包,并查询组织范围内的 API 请求日志
适用场景
适合需要围绕 1inch 工作的场景:查阅 API 文档与 SDK 示例、准备或执行兑换与限价单,或通过 1inch Business 凭据查询钱包、行情与 Gas 数据。
运行要求
远程 HTTP 端点 api.1inch.com/mcp/protocol,无需本地安装包。公开工具可匿名使用。swap、orderbook、product_api、debug 等需认证工具需要 1inch Business API 密钥或 OAuth 登录;WalletConnect 配对需要钱包应用。
安装前请注意
swap、orderbook、product_api 与 Aqua 写入操作会转移资金或改变仓位,需 OAuth 或签署 1inch 服务条款;每笔交易由用户钱包签名,应逐笔核对。1inch Business Portal 的 API 密钥属于敏感凭据。请求与日志会发送至 1inch 服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 1inch MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.1inch.business%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "1inch": {
      "type": "http",
      "url": "https://api.1inch.com/mcp/protocol"
    }
  }
}

README

1inch AI

Public distribution hub for 1inch AI integrations — Agent Skills, MCP server configs, and marketplace listings for Claude, Cursor, and other AI assistants.

MCP server

The 1inch MCP server is hosted at:

https://api.1inch.com/mcp/protocol

It provides tools for documentation search, SDK examples, token swaps, limit orders, authenticated product API access, WalletConnect, Aqua analytics, and (when enabled) org-scoped log lookup. Full documentation: 1inch MCP Server.

Quick setup

Cursor

Install 1inch MCP from the Cursor Marketplace. Skills load from this repo automatically. For authenticated tools without OAuth, open the plugin → Setup → Edit Values and paste an API key from the 1inch Business Portal. Leave the field empty to use public tools and OAuth.

Or create .cursor/mcp.json in your project:

json
{  "mcpServers": {    "1inch-mcp": {      "url": "https://api.1inch.com/mcp/protocol"    }  }}

Claude Code

bash
claude mcp add --transport http --scope user 1inch-mcp https://api.1inch.com/mcp/protocol

VS Code (Copilot)

Create .vscode/mcp.json in your project:

json
{  "servers": {    "1inch-mcp": {      "type": "http",      "url": "https://api.1inch.com/mcp/protocol"    }  }}

Other clients

See the full setup guide for Claude Desktop, Windsurf, JetBrains, OpenAI Codex, Gemini CLI, ChatGPT, Grok, and more.

Agent Skills

Install the 1inch skills so your AI agent knows the server URL, auth patterns, and exact product_api call recipes:

bash
npx skills add 1inch/1inch-ai
SkillRole
1inch-mcp-serverHub — MCP URL, auth, client setup, tool overview
1inch-swapClassic / Fusion / cross-chain via swap
1inch-orderbookLimit orders via orderbook
1inch-wallet-dataPortfolio, balances, history, NFTs, tokens via product_api
1inch-market-dataSpot prices, gas price, charts via product_api
1inch-infrastructureWeb3 RPC, tx gateway, domains via product_api
1inch-walletconnectNon-custodial WalletConnect pairing
1inch-aquaAqua strategy analytics
1inch-debugOrg-scoped request log lookup

Skills load on demand (~30–50 tokens until invoked). Prefer a domain skill for concrete tasks — e.g. gas price → 1inch-market-data teaches GET /gas-price/v1.6/{chainId}.

See the Agent Skills specification.

Repository structure

.cursor-plugin/          Cursor Marketplace plugin (manifest, API-key setup values, MCP config).claude-plugin/          Claude Code plugin manifestskills/                  Agent Skills (agentskills.io)  1inch-mcp-server/      Hub skill (SKILL.md + AUTH/TOOLS references)  1inch-swap/            Swap workflows  1inch-orderbook/       Limit orders  1inch-wallet-data/     product_api recipes (Wallet & Data)  1inch-market-data/     product_api recipes (Market Data)  1inch-infrastructure/  product_api recipes (Infrastructure)  1inch-walletconnect/   WalletConnect  1inch-aqua/            Aqua analytics  1inch-debug/           Request log lookupcursor/                  Cursor plugin README and docsclaude/                  Claude Connectors Directory pointerassets/                  Logo and brandingmcp.json                 MCP server configuration (remote URL)server.json              Official MCP Registry pointerSECURITY.md              Security policy and vulnerability reporting

Authentication

Public tools (search, list_examples, get_example, and read-only aqua when enabled) work without authentication. Authenticated tools (swap, orderbook, product_api, and optional debug) require an API key or OAuth login. See the MCP product docs.

Get an API key from the 1inch Business Portal.

Links

License

MIT

来源:README.md,提交 1112642

工具

10

list_examples

List SDK examples

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

无需输入参数。

get_example

Get SDK example source

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

输入参数filename必填

authenticate

Authenticate (OAuth)

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

Swap quote & execute

[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 types unless the user explicitly asks to compare alternatives. ERC-20 source tokens may require a one-time approval transaction before the swap can proceed; the approval costs native gas on the source chain even for gasless Fusion/cross-chain swaps. When a response includes an `approval` block, tell the user upfront (approval.estimatedCost holds the estimated cost in native units). Usage modes: 1. **Quote** (quoteOnly=true): Returns only one swap type and its quote. If you pass `preferredType` explicitly (classic, fusion, or crosschain), the response returns that exact type (when a quote for it is available). If `preferredType` is omitted, the tool compares classic, Fusion, and cross-chain internally and picks the best one. The chosen type is echoed as `recommended`. 2. **Execute** (default): Returns data to sign. Response type depends on swap mode: - Classic → {type:"classic", step:"approve"|"swap", tx:{to,data,value}} → sign with eth_sendTransaction, wait for receipt. If step="approve", sign the approve tx first, then call swap again for the actual swap tx. - Fusion → {type:"fusion", orderHash, typedData} → sign typedData with eth_signTypedData_v4, then call this tool again with signedOrder=<signature> and orderHash. - Cross-chain → {type:"crosschain", orderHash, typedData, srcChain, dstChain} → same as Fusion: sign typedData, then submit with signedOrder. 3. **Submit*

输入参数dst必填src必填from必填chain必填amount必填presetexecutedstChaingasPriceslippageorderHashquoteOnly另有 2 个

orderbook

Limit orders

[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", "makingAmount": "1000000", "takingAmount": "990000", "makerAddress": "0x..." } Optional: expirationSeconds (default 604800 = 7 days). With an active WalletConnect session, the order is signed and submitted automatically (set execute=false to return typed data only). 2. create (after signing typedData from build): { "action": "create", "chain": 1, "orderHash": "0x...", "signature": "0x...", "orderData": { ... } } 3. list (query orders): - By maker: { "action": "list", "chain": 1, "listMode": "by_maker", "makerAddress": "0x..." } - By hash: { "action": "list", "chain": 1, "listMode": "by_hash", "orderHash": "0x..." } - Browse: { "action": "list", "chain": 1, "listMode": "all", "limit": 10 } 4. cancel (inspect + guidance): { "action": "cancel", "chain": 1, "orderHash": "0x..." } Typical flow: build -> sign typedData -> create (or one build call when WalletConnect is connected — order signed and submitted automatically). The maker asset may require a one-time ERC-20 approval for the Limit Order Protocol; it costs native gas even though the limit order itself is gasless. When a build response includes an "approval" block, tell the user upfront (approval.estimatedCost holds the estimated cost in native units) and broadcast the included approveTx before signing. With WalletConnect, the approve is sent automatically — "approvalTxSent": true means the first wallet prompt wa

输入参数chain必填limitorderaction必填cursorsortByexecutelistModestatusesorderDataorderHashsignature另有 6 个

product_api

Product API proxy

[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 sessions 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 only — see file://1inch-mcp/guides/x402-payments). Do not treat PaymentRequired as login. Optional: if your client can read MCP resources, file://1inch-mcp/guides/api-index has live Swagger links and extra gateway notes (mirrors business.1inch.com/portal/llms.txt). Common chain IDs: Ethereum=1, BNB=56, Polygon=137, Arbitrum=42161, Optimism=10, Base=8453, Avalanche=43114, Gnosis=100, zkSync=324, Linea=59144, Sonic=146, Unichain=130, Cronos=25, Monad=10143, Solana=501 (where applicable). Gateway products (use these path prefixes with this tool): - Portfolio: /portfolio/portfolio/v5.0/... — example path="/portfolio/portfolio/v5.0/general/current_value", query={"addresses":"0x..."}; token metrics path="/portfolio/portfolio/v5.0/tokens/metrics", query={"addresses":"0x...","timerange":"1year"} - Balance: /balance/v1.2/{chainId}/... — example path="/balance/v1.2/1/balances/0x..." - Spot Price: /price/v1.1/{chainId} — example path="/price/v1.1/1", method="POST", body={"tokens":["0x..."],"currency":"USD"} - Token: /token/v1.4/{chainId}/... — example path="/token/v1.4/1/search", query={"query":"USDC"} (prefer v1.4; older v1.2 chain search is deprecated in OpenAPI) - Token Details: /token-details/v1.0/details/{chain}/{tokenAddress} — example path="/token-details/v1.0/details/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" - Gas Price: /gas-price/v1.6/{chainId} — example path="/gas-price/v1

输入参数bodypath必填querymethod

aqua

Aqua positions

1inch Aqua (shared-liquidity market making): position analytics plus maker position writes. Write actions (OAuth, or WalletConnect + signed 1inch ToS (pass walletSessionToken after MCP session rotation); 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, strategy_activity, strategy_volume, list_opened. Read the resource file://1inch-mcp/guides/aqua-workflow for per-action examples, priceRange semantics, and maker position flows. Raw HTTP: product_api with path "/aqua/v1.0/strategies/...".

输入参数appsortlimit必填makeraction必填cursorstatus必填tokens必填addresschainId必填executefeeBpsIn必填另有 8 个

walletconnect

WalletConnect (EVM + Solana)

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 session. **Every call must include `action`** (string). **Connect QR (critical for assistants):** On `action: "connect"`, successful responses return **(1) an MCP `type: "image"` PNG** of the pairing QR (render this even if the host has no `resources/read`), then **(2) optional `resource_link`**, then **(3) text JSON** with `pairingQrResourceUri`, `presentation`, `nextSteps`, `url`, optional `mobileDeeplinks`, etc. **Desktop / scan UX:** show the image content block first. **Mobile / no-camera:** follow `nextSteps`; when present, `mobileDeeplinks` lists HTTPS `url` (+ `nativeUrl`) per curated WalletConnect wallet. Raw `wc:` (`url` / `walletConnectLinkForUser`) remains fallback. **Avoid calling `connect` again while pairing is still in progress** unless the user must reset — pass `walletSessionToken` to resume the same pairing after MCP session rotation. **Flow:** (1) `connect` as above. (2) User approves in the wallet (EVM only, Solana only, or both). (3) `status` until `kind` is `session` — optional `evm` / `solana` blocks; `address`/`chains` remain legacy EVM when EVM is connected. (4) `sign` / `send_transaction` or swap `execute=true` (swap execute remains EVM unless extended elsewhere). `kind: "pending"` on `status` is success — keep polling. **Actions (exact JSON shapes):** - **connect** — `{ "action": "connect", "sessionTtlDays"?: number, "pairingTarget"?: "eth" | "solana" | "both", "walletSessionToken"?: string }`

输入参数txaction必填methodparamsaddresschainIdpairingTargetsolanaChainIdsessionTtlDayswalletSessionToken

debug

Request log lookup

[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 requestId and pass both startTime and endTime (RFC3339). Optionally set logLevel ("info", "warn", or "error") to filter by severity; omit to return all levels. Limits: each call covers at most a 24-hour window; how far back you can query depends on your plan's log retention.

输入参数limitendTimelogLevelrequestIdstartTime

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分