
Nftdata Mcp
io.github.Nomad07由 GitHub 账号 Nomad07 发布v1.0.3更新于 Nov 1, 2026
OpenSea NFT collection data via NFT Data API, paid per request with x402.
概览
本地 MCP 服务器,通过 x402 每请求支付 0.002 美元 USDC(Base 链),获取 30 多条链上的 OpenSea NFT 合集数据。
- 可以做什么
- 通过单一工具 get_collection_data,按 OpenSea slug 或合集名称查询 NFT 合集数据
- 返回地板价、24 小时/7 天/30 天及历史成交笔数与成交额,以及持有人数、供应量、合约地址和创建日期
- 每次付费响应附带支付交易哈希和区块浏览器验证链接
- 同一 slug 的结果缓存五分钟,并发的相同调用共用一次请求
- 适用场景
- 当助手需要某 NFT 合集的实时市场统计,且你愿意用已充值钱包按次支付小额费用时适用,例如生成合集报告或跨链对比。
- 运行要求
- 以 stdio 本地运行,通常通过 npx 启动 npm 包,需要 Node.js 20 或更高版本。需要一个在 Base 主网持有少量 USDC 的专用钱包,通过环境变量 EVM_PRIVATE_KEY 提供。可选配置:NFTDATA_MAX_REQUESTS、NFTDATA_TIMEOUT_MS、NFTDATA_URL。需要访问 NFT Data API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Nftdata Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
NFT Data MCP
A multichain NFT data MCP server that gives AI assistants, agents, and other MCP-compatible clients access to the NFT Data API through a single tool: get_collection_data.
Compatible with Claude Desktop and other MCP-compatible applications, AI agents, and clients, including future clients that support the Model Context Protocol (MCP).
Each API request is paid automatically at $0.002 in USDC on Base using the x402 payment protocol.
Retrieve NFT collection data across 30+ blockchain networks through the NFT Data API's OpenSea integration, including Ethereum, Base, Ink, Arc, HyperEVM, Robinhood Chain, Solana, and more.
- npm: https://www.npmjs.com/package/nftdata-mcp
- MCP Registry: https://registry.modelcontextprotocol.io/?q=nftdata
- NFT Data GitHub: https://github.com/Nomad07/nft-data
Prerequisites
- Node.js 20 or newer (required by the x402 SDK)
- A dedicated wallet funded with a small amount of USDC on Base mainnet
Always use a dedicated wallet with only a small balance. Never use your primary wallet or share its private key.
Claude Desktop setup
Add the following block to claude_desktop_config.json (usually found in ~/Library/Application Support/Claude/ on macOS or %APPDATA%\Claude\ on Windows):
Replace YOUR_EVM_PRIVATE_KEY with the private key of your dedicated wallet (0x followed by 64 hex characters). Then restart Claude Desktop.
The server communicates over stdio and is launched automatically by Claude Desktop. Running it by hand shows no output; it waits for an MCP client to connect.
First query
After restarting Claude Desktop:
-
Open a new conversation.
-
To make sure Claude selects the right server when you have multiple MCP servers configured, start with an explicit request:
Use the NFT Data MCP server.
-
When Claude asks for a collection slug, enter an example slug such as:
azukiYou can use the slug of any existing NFT collection instead.
-
Continue with natural follow-up questions. If Claude does not use the NFT Data server, ask it explicitly to do so.
You can also ask directly by collection name or OpenSea slug. Claude will retrieve the latest collection statistics, including floor price, sales volume, owner count, supply, and lifetime metrics. Each successful request includes a payment transaction hash and a BaseScan verification link.
Example: Azuki collection report
The following is an example response from one query. Market data changes continuously; these values are from a specific query and are not current live data.
Collection overview
Market activity
Payment
Customize your results
The server supplies the underlying collection data returned by the API. Claude can organize that information in the format you prefer, from a concise summary to a detailed report, tables, or comparisons. Simply ask Claude how you want the results presented. This changes the presentation, not the source values.
Raw request and response
Claude Desktop may show the tool request and returned data through its tool-activity details (the exact label varies by client version).
Tool request
Full raw response
Raw floating-point values have more decimal places than the rounded values in the report above.
Payment verification
Transaction hash: 0x4fb35acc31a9f6841647ca2533a7f9ac7113f54364e979b8de4786bf1de580f8
Verify on BaseScan: https://basescan.org/tx/0x4fb35acc31a9f6841647ca2533a7f9ac7113f54364e979b8de4786bf1de580f8
Data networks vs. payment network
Payment Protocols and Supported Networks
Note: The NFT Data website/API and the NFT Data MCP server have different payment capabilities. The MCP server currently supports x402 payments on Base only; MPP support is not implemented in this package.
Data network refers to the blockchain where an NFT collection exists. NFT Data is a multichain service supporting NFT collections across 30+ blockchain networks through the NFT Data API's OpenSea integration, including Ethereum, Base, Ink, Arc, HyperEVM, Robinhood Chain, and Solana, among others. OpenSea continues to expand its supported blockchain networks, so coverage may grow over time. The data network is independent of the payment network used to pay for API requests.
Payment network refers to the blockchain used to pay for each API request. This server pays on Base mainnet only, using USDC via x402, regardless of which chain the queried collection is on.
x402 and payment verification
Each request is paid automatically using the x402 protocol over Base mainnet. The payment flow:
- The server sends the API request.
- The API responds with HTTP 402 and a payment challenge.
- Before signing, the server validates the challenge:
- Scheme:
exact - Network: Base mainnet (
eip155:8453) - Token: USDC on Base (
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) - Amount: exactly 2000 atomic units ($0.002)
- Recipient:
0x344143199642e87320785823c20c2df107d17534
- Scheme:
- If everything matches, the wallet signs and submits the payment.
- The API fulfills the request and returns the collection data along with the on-chain transaction hash.
Every successful response includes:
This server supports x402 on Base only. Solana and MPP payment methods are not implemented.
Configuration
Behavior
- Sends
POST /api/get-collection-datawith body{"collection": "<slug>"}. - The slug is trimmed and lowercased, then must match
^[a-z0-9][a-z0-9_-]*$(max 100 characters); otherwise no request is made. - Each signed payment counts against
NFTDATA_MAX_REQUESTS, including payments for requests that later fail or time out. - No automatic retries: one tool call makes at most one payment attempt.
- Successful responses are cached for 5 minutes per slug. Concurrent identical calls share a single in-flight request.
- Cache hits do not include a payment transaction hash (no new payment was made).
- Returns generic errors for
400(invalid slug),404(collection not found),429(rate limit, with retry delay), timeouts, and other failures. Server and payment details are not exposed to the MCP client.
Troubleshooting
Server does not appear in Claude Desktop
Verify the claude_desktop_config.json path, check for JSON syntax errors, and restart Claude Desktop fully.
EVM_PRIVATE_KEY is missing or malformed
The key must be 0x followed by exactly 64 hex characters. Check for extra whitespace or a missing 0x prefix.
paid request limit ... reached
The session has reached NFTDATA_MAX_REQUESTS. Restart Claude Desktop to reset the counter, or set a higher limit.
Request timed out A payment may have been signed before the timeout. The server does not retry automatically.
Imports fail after an SDK update The x402 SDK changes frequently. Check the x402 docs and the nftdata-mcp changelog for the latest compatible version.
Run from source
Set the key for the current shell session only, then start:
To use a local checkout with Claude Desktop, set "command": "npx" and "args": ["tsx", "/absolute/path/to/nftdata-mcp/server.ts"].
Build and test
Links
- NFT Data website
- NFT Data API docs
- NFT Data OpenAPI spec
- x402 protocol docs
- BaseScan
- nftdata-mcp on npm
- nftdata-mcp in the MCP Registry
Limitations
- Only x402 on Base mainnet is supported for payments. Solana and MPP are not implemented.
- The expected recipient address is hardcoded. If the NFT Data payout address changes, update
OFFICIAL_PAY_TOinlib.tsand release a new version. - The payment hook depends on the installed
@x402/*SDK and is not covered by the offline unit tests. - The x402 SDK changes quickly. If imports fail, check the x402 docs.
来源:README.md,提交 44f6284
工具
0版本历史
3- v1.0.3最新Nov 1, 2026
- v1.0.1Oct 31, 2026
- v1.0.0Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分