Npm Public API MCP
MCP server by eBay Verified · npm:@ebay
Lets AI assistants discover and call eBay's REST and GraphQL APIs in read-only production mode. Built for developers who want live eBay marketplace data in tools like Claude Desktop, Cursor and Cline.
Install Npm Public API MCP
Built from the published package, never by AI.
claude mcp add npm-public-api-mcp -- npx -y @ebay/npm-public-api-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"npm-public-api-mcp": {
"args": [
"-y",
"@ebay/npm-public-api-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"npm-public-api-mcp": {
"args": [
"-y",
"@ebay/npm-public-api-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"npm-public-api-mcp": {
"args": [
"-y",
"@ebay/npm-public-api-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add npm-public-api-mcp -- npx -y @ebay/npm-public-api-mcp{
"mcpServers": {
"npm-public-api-mcp": {
"args": [
"-y",
"@ebay/npm-public-api-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add npm-public-api-mcp npx -y @ebay/npm-public-api-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the npm-public-api-mcp block.
About
The eBay API MCP Server lets AI assistants such as Claude Desktop, Cursor and Cline discover and call eBay marketplace APIs. It covers both REST APIs, found through OpenAPI specs, and GraphQL APIs, found through schema discovery. Users describe what they want in plain language and do not need to memorize endpoints.
Setup needs a Client ID and Client Secret. The server handles OAuth token generation and refresh. It offers an application token mode for public data and a user token mode for private data, which uses a refresh token. It is built for read-only access to production data, and it does not officially support the sandbox. It suits developers who want AI assistants to work with eBay data.
Written from the project's README and checked against it.
Tools it gives your assistant
query_ebay_apiSearches eBay's OpenAPI specifications using a natural language prompt.call_ebay_apiExecutes calls to eBay's REST APIs and returns live marketplace data.query_ebay_graphqlSearches eBay's GraphQL schema for queries, types and fields.call_ebay_graphqlExecutes GraphQL queries against eBay's API and returns live marketplace data.interpret_user_requestMCP prompt that guides when to use the REST discovery and invocation tools.interpret_graphql_requestMCP prompt that guides when to use the GraphQL schema and query tools.
What you need
- Node.js 22 or higher
- eBay Developer Account
- eBay Client ID and Client Secret
- eBay refresh token for user token mode (optional)
Try asking
- Find eBay APIs related to product listings
- Search for iPhone 15 listings and show me the top 5 results
- What fields are available on the Order type?
Good to know
- Sandbox environment is not officially supported.
- REST APIs: only GET requests are supported.
- GraphQL API: only Query operations are supported, no Mutations.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Npm Public API MCP
All alternatives →Spree is an open-source headless commerce platform for B2B, wholesale and multi-vendor marketplace stores. Its built-in MCP server lets Claude, ChatGPT, Cursor or any MCP client manage a store in natural language.
Spree Commerce provides developer docs and agent skills that help AI coding agents build headless ecommerce on its APIs. It also connects agents to a documentation MCP server so they can search the latest docs.
Crossly MCP servers give an AI agent the Crossly APIs as tools. The seller package runs a reselling account, and the buyer package manages a shopper's cart, orders, wishlists and offers.
A command line tool for setting up Shopify Dev MCP server
Lets an AI agent design, fill with real store data, render and publish pages for a Store Builder site. It runs as a local MCP stdio server with no manual clicking needed.
Shopping agent: compares Amazon, Walmart, eBay, Best Buy, Target, Shopify; buys only with your OK
Compare with Spree Commerce: open-source B2B and marketplace ecommerce, Spree Commerce developer docs for AI agents or Crossly
Npm Public API MCP: common questions
Does it support the eBay sandbox?
No. The source says this release does not officially support the sandbox, although the EBAY_API_ENV setting exists.
Can it create or change listings and orders?
Not in this release. REST calls are GET only and GraphQL supports only Query operations, so production access is read-only.
How does it handle eBay tokens?
The server generates and refreshes OAuth tokens automatically from the Client ID and Client Secret. User token mode uses a refresh token to access private data.
How do I install Npm Public API MCP?
In Claude Code run claude mcp add npm-public-api-mcp -- npx -y @ebay/npm-public-api-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Npm Public API MCP the official server?
Npm Public API MCP is published by npm:@ebay from its verified domain in the official MCP Registry.
Is Npm Public API MCP free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Npm Public API MCP safe to use?
It scores 71 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Npm Public API MCP?
Similar MCP servers: Spree Commerce: open-source B2B and marketplace ecommerce, Spree Commerce developer docs for AI agents, Crossly, Dev MCP.
Does Npm Public API MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
