@amazon-sp-api-release/sp-api-dev-mcp

中文文档
1.0.5发布于 2026/08/19Apache-2.0TypeScriptES Module近 30 天下载 4926

Consolidated npm package that bundles multiple SP-API MCP servers

原始使用文档
文档目录10 节
  1. Prerequisites
  2. Installation
  3. Included Servers
  4. sp-api-dev-assistant-mcp-server
  5. sp-api-workflow-mcp-server
  6. MCP Client Configuration
  7. Claude Desktop / Kiro
  8. Config file locations
  9. Environment Variables
  10. License

Local MCP for SP-API

[!IMPORTANT]
The Local MCP for SP-API servers are example MCPs that demonstrate practical implementations of SP-APIs AI tooling for developer integration workflows.

These are not supported products in their own right, but educational examples to help our customers use our products for their applications. As our customer, any applications you integrate these examples into should be thoroughly tested, secured, and optimized according to your business's security standards & policies before deploying to production or handling production workloads.

A local MCP server for SP-API that bundles multiple developer tools into a single npm package. Install once, get access to all SP-API developer tools.

Prerequisites

  • Node.js >= 20 is required.

Installation

npm install -g @amazon-sp-api-release/sp-api-dev-mcp

Or use directly with npx (no install required).

Included Servers

sp-api-dev-assistant-mcp-server

Developer assistant with 6 tools for SP-API integration:

ToolDescription
sp_api_referenceSearch official SP-API documentation using natural language
sp_api_explore_catalogBrowse SP-API endpoint catalog (parameters, schemas, examples)
sp_api_executeExecute live SP-API requests with auth and signing
sp_api_generate_code_sampleGenerate code samples (Python, Java, JavaScript, C#, PHP)
sp_api_migration_assistantMigrate between API versions (e.g., Orders v0 to v2026-01-01)
sp_api_optimizeWell-architected review of SP-API integration code

Most tools work locally with no credentials. SP-API credentials are only needed for sp_api_execute.

sp-api-workflow-mcp-server

Build and execute SP-API workflows using natural language:

CategoryTools
Buildercreate_workflow, import_workflow, add_task_state, add_fetch_state, add_choice_state, add_succeed_state, add_fail_state, add_wait_state, add_pass_state, add_input_state, set_start_state, get_workflow_schema, validate_workflow, list_workflows, delete_workflow
Interpreterexecute_workflow, get_execution_status, list_executions, abort_execution, get_execution_events, resume_execution, tail_execution_events
Callbacklist_pending_callbacks, get_callback_details, submit_callback, extend_callback_timeout

SP-API credentials are required for workflows that make live API calls.

MCP Client Configuration

Claude Desktop / Kiro

Add to your MCP config file:

{
  "mcpServers": {
    "sp-api-dev-assistant": {
      "command": "npx",
      "args": ["-y", "@amazon-sp-api-release/sp-api-dev-mcp", "sp-api-dev-assistant-mcp-server"],
      "env": {
        "SP_API_CLIENT_ID": "your-client-id",
        "SP_API_CLIENT_SECRET": "your-client-secret",
        "SP_API_REFRESH_TOKEN": "your-refresh-token"
      }
    },
    "sp-api-workflow": {
      "command": "npx",
      "args": ["-y", "@amazon-sp-api-release/sp-api-dev-mcp", "sp-api-workflow-mcp-server"],
      "env": {
        "SP_API_CLIENT_ID": "your-client-id",
        "SP_API_CLIENT_SECRET": "your-client-secret",
        "SP_API_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}

Config file locations

ClientConfig file
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Linux)~/.config/Claude/claude_desktop_config.json
Cursor.cursor/mcp.json in your project or ~/.cursor/mcp.json globally
VS Code (MCP extension).vscode/mcp.json in your project
Kiro.kiro/settings/mcp.json in your project

Environment Variables

VariableRequired ForDescription
SP_API_CLIENT_IDsp_api_execute, workflow executionSP-API OAuth client ID
SP_API_CLIENT_SECRETsp_api_execute, workflow executionSP-API OAuth client secret
SP_API_REFRESH_TOKENsp_api_execute, workflow executionSP-API refresh token
SP_API_BASE_URLOptionalOverride SP-API base URL (default: NA endpoint)
SP_API_REGIONOptionalSelling region: na, eu, fe (default: na)
LOG_LEVELOptionalLogging level: error, warn, info, debug

License

Apache-2.0

版本与发布记录

@amazon-sp-api-release/sp-api-dev-mcp 共发布 6 个版本,首次发布于 2026/05/12;过去 12 个月发布了 6 个版本。

版本发布日期距今
1.0.5latest2026/08/192 个月前
1.0.42026/06/244 个月前
1.0.32026/05/215 个月前
1.0.22026/05/195 个月前
1.0.12026/05/145 个月前
1.0.02026/05/125 个月前

关于 @amazon-sp-api-release/sp-api-dev-mcp 的常见问题

@amazon-sp-api-release/sp-api-dev-mcp 是什么?

Consolidated npm package that bundles multiple SP-API MCP servers

如何安装 @amazon-sp-api-release/sp-api-dev-mcp?

在项目目录运行 npm install @amazon-sp-api-release/sp-api-dev-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 sp-api-dev-mcp、sp-api-dev-assistant-mcp-server、sp-api-workflow-mcp-server,可以用 npx sp-api-dev-mcp 直接运行。

@amazon-sp-api-release/sp-api-dev-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@amazon-sp-api-release/sp-api-dev-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@amazon-sp-api-release/sp-api-dev-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@amazon-sp-api-release/sp-api-dev-mcp 可以商用吗?

@amazon-sp-api-release/sp-api-dev-mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@amazon-sp-api-release/sp-api-dev-mcp 的下载量有多少?

根据 npm 官方下载统计,@amazon-sp-api-release/sp-api-dev-mcp 在 2026/10/06 – 2026/11/04 这 30 天内被下载 4,926 次,日均约 164 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@amazon-sp-api-release/sp-api-dev-mcp 还在维护吗?

最新版本 1.0.5 发布于 2026/08/19(2 个月前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/05/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。