npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cesarobedfl/aws-spapi-mcp

v1.0.4

Published

MCP server for Amazon SP-API - real-time inventory health, sales metrics, and price updates

Downloads

876

Readme

AWS Node Selling Partner API - MCP Server

High-performance MCP server for Amazon SP-API
Enables agents to query real-time inventory health and execute dynamic price adjustments directly via JSON‑RPC.

Amazon SP-API MCP Server Logo

This api let you connect to the Amazon SP API using their SDK...

First of all following the official-documentation and spapi-docs!!!...

Consult the spapi-reference

Features

  • It is in charge of connecting to the amazon api, seller partner api
  • Through the SDK manages the client and the corresponding credentials for the connection to amazon
  • Use express as http client
  • You can use in production PM2 as process daemon to linux servers
  • You can dockerizing it with the docker file using the official PM2-image in the latest-alpine version

Dependencies

Requirements

  • npm ^8.3.1
  • node ^16.13.2
  • PM2
  • Docker ^20.10.17 optional

Installation

npm install 

Dockerizing

docker build -t your-app-name .

Running the app

development mode: npm run serve

production mode: you have to use PM2 or a similar daemon package to run on background the app and use it

pm2 start index.js

with docker:

docker run -p 3000:3000 your-app-name

docker terminal:

docker run -it your-app-name sh

.env file explanation

Following the official-documentation!!!...

You can get the following data on the Amazon seller-central-portal!... you need to be registered as a developer there, that process could take about two weeks...

| data | description | | ---- | ----------- | | APP_ID | Represents your application on the Amazon platform, example: amzn1.sp.solution.... | | APP_REGION | Indicates the geographic region in which your application is authorized | | APP_CLIENT_ID | Indicates the geographic region in which your application is authorized This is a unique identifier that represents the application in the context of Login with Amazon (LWA). Also obtained when you register your application in the Amazon Developer Console. example: amzn1.application-oa2-client.... | | APP_CLIENT_SECRET | The client secret is a secret key that corresponds to the APP_CLIENT_ID | | APP_CLIENT_ACCESS_TOKEN | It is a token that represents your application's authorization to access the Seller Partner API | | APP_CLIENT_REFRESH_TOKEN | It is a token that is used to renew the client access token if it expires |

This data is essential for the authentication and authorization of your application in the Amazon Seller Partner API through Login with Amazon (LWA). They establish the identity of your application and ensure that only authorized applications can access the API. Additionally, the access token and refresh token allow your application to securely access API resources and keep authentication active

The following is data extracted from the IAM user created in AWS:

| data | description | | ---- | ----------- | | AWS_ACCESS_KEY_ID | This is a unique identifier that represents the AWS access key of the user seeking to access the API. Amazon provides this ID when you set up a user in AWS IAM (Identity and Access Management). The AWS_ACCESS_KEY_ID is used to authenticate the request and associate it with a specific user in your AWS account | | AWS_SECRET_ACCESS_KEY | The secret access key is a key that corresponds to the AWS_ACCESS_KEY_ID. It must be kept secret and is essential for authenticating and authorizing requests to the API. Similar to the access key, it is obtained when setting up a user in AWS IAM | | AWS_SELLING_PARTNER_ROLE | This is the AWS role that you define for your application or system to access the Seller Partner API. The AWS_SELLING_PARTNER_ROLE defines the permissions and access policies that apply to requests made to the API. You can configure this role in AWS IAM and assign it to your application or system to ensure that it has the appropriate permissions to access the API |

This data allows your application or system to securely authenticate and authorize itself to the Amazon Seller Partner API. The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are used to authenticate requests, while the AWS_SELLING_PARTNER_ROLE determines what actions and resources can be accessed by the application or system in the API. This helps ensure that only authorized applications and systems have access to API resources

The following is data extracted from the AssumeRole of AWS:

| data | description | | ---- | ----------- | | ROLE_ID | This is a unique identifier that represents the temporary role you want to assume in the Amazon Seller Partner API. Amazon provides you with this ID when you set up a temporary role through AWS Identity and Access Management (IAM) in your Amazon Web Services (AWS) account | | ROLE_SECRET | The temporary role secret is a secret key that corresponds to the ROLE_ID | | ROLE_SECURITY_TOKEN | This security token is a generated temporary value that is used to authenticate and authorize requests to the API on behalf of the temporary role. It is an additional security measure to verify the authenticity of the request. This token is also obtained when assuming the temporary role and should be included in your API requests |

This data is essential to establish a secure and authorized connection to the Amazon Seller Partner API when assuming a temporary role. The process involves authentication and authorization using the ROLE_ID, ROLE_SECRET, and ROLE_SECURITY_TOKEN, allowing your application or system to interact with the API on behalf of the configured temporary role

Amazon SP-API conventions

  • Amazon SP-API is extremely strict with the format of the Dates: it expects a complete ISO 8601 format (e.g. 2026-07-01T14:21:00Z)

File Structure

Amazon SP-API MCP File Structure

☕ Support the Project

If you find this project useful, you can buy me a coffee to keep it going!

Buy Me A Coffee

Follow me!