Now Available: Local MCP for SP-API β AI-powered Selling Partner API development ππ¦ #382
Tong8s
started this conversation in
Best Practices & SP-API Well-Architected Solutions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AI coding assistants are transforming how developers build SP-API integrations. The Model Context Protocol (MCP) takes this further β it's an open standard that connects AI assistants to external tools and knowledge sources, enabling them to act on real data rather than relying solely on training knowledge. Local MCP for SP-API brings this to the SP-API ecosystem as a consolidated npm package bundling MCP servers for Amazon Selling Partner API development. Configure it in your MCP-compatible IDE, and your AI assistant is equipped with authoritative SP-API knowledge, actionable developer tools for code generation, optimization, and migration, and a workflow engine to build and execute multi-step API operations.
Authored by: Tong S. Solutions Architect, Selling Partner Developer Services
πΊ Demo
Make sure to watch the following video on YouTube, which demonstrates the capabilities of the tool.
https://www.youtube.com/watch?v=9gJ0rXRAwfk
π§° What's Included
Local MCP for SP-API ships two MCP servers in a single package β each can be used independently or together:
@amazon-sp-api-release/sp-api-dev-mcp1. sp-api-dev-assistant-mcp-server
Your AI-powered development companion for SP-API integration. This server equips your AI coding assistant with ground-truth SP-API knowledge and actionable developer tools β enabling natural language search over official documentation, SDK-based code generation in 5 languages, automated code optimization against 10 app quality pillars, and guided API version migrations.
sp_api_referencesp_api_explore_catalogsp_api_executesp_api_generate_code_samplesp_api_migration_assistantsp_api_optimize2. sp-api-workflow-mcp-server
Extends the local MCP for SP-API by enabling developers to build and execute multi-step SP-API workflows using natural language. Developers describe what they want; the AI discovers the right SP-API endpoints, builds the workflow step-by-step using an Amazon State Language based engine with Task, Choice, Wait, Pass, Succeed, and Fail states, and executes it deterministically with OAuth token management when ready.
π Getting Started
Prerequisites: Node.js >= 20
Add the servers to your MCP client configuration (Claude Desktop, Kiro, Cursor, VS Code, etc.):
{ "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" } } } }Check our getting started video on Youtube: AI-Powered SP-API Development: Getting Started with Local MCP
π‘ Use Cases
1. New Integration Q&A
Use
sp_api_referenceto discover endpoints, thensp_api_generate_code_sampleto get exact SDK method signatures in your language of choice.Example Prompts:
2. Code Review & Optimization
Run
sp_api_optimizeon your existing code to get severity-rated findings across 9 pillars (Scheduling, Error Handling, Rate Limiting, Batching, Pagination, Notifications, Reports, Caching, API Modernness).Example Prompts:
3. API Migration
Use
sp_api_migration_assistantfor attribute-by-attribute mapping when upgrading API versions, with breaking change identification and refactored code.Example Prompts:
4. Workflow Automation
Chain multiple SP-API operations into automated ASL-format workflows using natural language with the workflow builder.
Example Prompts:
π Related Resources
Keywords: SP-API, MCP, ModelContextProtocol, AI-coding, developer-tools, workflow-automation
Last Updated: May 2026
Please note the publication date above. While we strive to keep our content current, the rapid evolution of this topic means some details may have changed since publication. For the most up-to-date information, we encourage readers to follow the announcements in SP-API developer documentation.


4 votes ·
All reactions