Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
Swell MCP
概览
作者提供的说明(英文原文)
Model Context Protocol server for Swell e-commerce platform integration with AI assistants
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i尚未统计★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 网店与支付
- 你需要填写:SWELL_STORE_ID, SWELL_SECRET_KEY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
SWELL_STORE_ID,SWELL_SECRET_KEY
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "your-value",
"SWELL_SECRET_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add swell --env SWELL_STORE_ID=your-value --env SWELL_SECRET_KEY=your-value -- npx -y swell-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "your-value",
"SWELL_SECRET_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"swell": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "your-value",
"SWELL_SECRET_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Your Swell store ID
- Your Swell secret API key
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 devkindhq 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“网店与支付”中的其他服务器比较i
- 星标数多于此分类中其他 1745 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 1745 个服务器的 8% 更新
- 基础检查结果等于或优于此分类中其他 1745 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Swell MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:SWELL_STORE_ID, SWELL_SECRET_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.1.0)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Stripe MCP
MCP server integrating with Stripe - tools for customers, products, payments, and more.
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Swell MCP Server
A Model Context Protocol server that integrates AI assistants with Swell's e-commerce platform. Built on a production-ready TypeScript foundation, it provides comprehensive access to Swell stores for product management, order processing, and customer management through both CLI and MCP tool interfaces.
Built by [Devkind](https://devkind.com.au/services/swell) - Official Swell Partners serving businesses globally with cutting-edge e-commerce solutions.
Features
- Swell E-commerce Integration: Complete access to Swell's API for products, orders, and customers
- Dual Transport Support: STDIO and HTTP transports for AI assistant and web integration
- 5-Layer Architecture: Clean separation between CLI, tools, controllers, services, and utilities
- Type Safety: Full TypeScript implementation with Zod schema validation
- Advanced HTTP Client: Built on swell-node SDK with connection pooling and retry logic
- Comprehensive Testing: Unit and integration tests with Swell API mocking
- Production Tooling: ESLint, Prettier, semantic-release, and MCP Inspector integration
- Error Handling: Structured error handling with Swell-specific error contexts
Swell E-commerce Integration
This MCP server provides comprehensive integration with Swell's e-commerce platform:
Available Tools & Commands
MCP Tools:
swell_list_products- List products with filtering and paginationswell_get_product- Get detailed product informationswell_search_products- Search products with multiple criteriaswell_check_inventory- Check product inventory levelsswell_list_orders- List orders with filtering optionsswell_get_order- Get detailed order informationswell_update_order_status- Update order statusswell_list_customers- List customers with search capabilitiesswell_get_customer- Get detailed customer informationswell_search_customers- Search customers with multiple criteria
Features Demonstrated
- Product Management: Complete product catalog access with inventory tracking
- Order Processing: Order lifecycle management with status updates
- Customer Management: Customer profiles with order history and analytics
- Error Handling: Structured errors for API failures and validation issues
- Response Formatting: Clean Markdown output with structured data tables
Configuration Requirements
# Required - Swell API credentials
SWELL_STORE_ID=your-store-id SWELL_SECRET_KEY=your-secret-key
Development
DEBUG=true # Enable detailed logging TRANSPORT_MODE=http # Use HTTP transport PORT=3001 # Custom port
Need Advanced Swell Checkout?
This MCP server demonstrates the kind of sophisticated Swell integrations that power [CheckoutJet](https://checkoutjet.com/) - an enterprise-grade checkout solution for Swell stores built by Devkind.
CheckoutJet transforms your Swell checkout with:
- 🏢 B2B Excellence - Professional invoicing, Net 30 payments, and wholesale pricing
- 📦 Smart Shipping - Live rates from multiple locations with intelligent order routing
- ⚡ Split Deliveries - Handle complex multi-vendor and multi-warehouse fulfillment
- 🎨 Full Customization - Pixel-perfect, on-brand checkout experience
- 🤖 Automation - Automated invoicing, POs, and order management
- 💰 Advanced Pricing - Dynamic discounts and tiered pricing logic
Proven Results: Over €500,000 processed for Swell merchants with 23% conversion rate improvements.
Ready to upgrade your Swell checkout? Book a 15-minute demo
What is MCP?
Model Context Protocol (MCP) is an open standard for securely connecting AI systems to external tools and data sources. This server implements the MCP specification to provide AI assistants with comprehensive access to Swell's e-commerce platform, enabling intelligent store management and customer service automation.
Getting Started
First, install the Swell MCP server with your AI assistant or MCP client.
Requirements
- Node.js 18 or newer
- VS Code, Cursor, Windsurf, Claude Desktop, or any other MCP client
- Swell store credentials (Store ID and Secret Key)
Standard config works in most MCP clients:
{
"mcpServers": { "swell-mcp": { "command": "npx", "args": ["swell-mcp"], "env": { "DEBUG": "false", "SWELL_STORE_ID": "your_store_id", "SWELL_SECRET_KEY": "your_private_token" }, "disabled": false } } }
Claude Desktop
Follow the MCP install guide, use the standard config above.
Add to your claude_desktop_config.json:
{
"mcpServers": { "swell-mcp": { "command": "npx", "args": ["swell-mcp"], "env": { "SWELL_STORE_ID": "your_store_id", "SWELL_SECRET_KEY": "your_private_token" } } } }
Cursor
Click the button to install:
Or install manually:
Go to Cursor Settings -> MCP -> Add new MCP Server. Name it "Swell MCP", use command type with the command npx swell-mcp. Add your Swell credentials in the environment variables section.
VS Code
Follow the MCP install guide, use the standard config above. You can also install the Swell MCP server using the VS Code CLI:
# For VS Code
code --add-mcp '{"name":"swell-mcp","command":"npx","args":["swell-mcp"],"env":{"SWELL_STORE_ID":"your_store_id","SWELL_SECRET_KEY":"your_private_token"}}'
After installation, the Swell MCP server will be available for use with your GitHub Copilot agent in VS Code.
Windsurf
Follow Windsurf MCP documentation. Use the standard config above.
Add to your MCP configuration:
{
"mcpServers": { "swell-mcp": { "command": "npx", "args": ["swell-mcp"], "env": { "SWELL_STORE_ID": "your_store_id", "SWELL_SECRET_KEY": "your_private_token" } } } }
Goose
Go to Advanced settings -> Extensions -> Add custom extension. Name it "Swell MCP", use type STDIO, and set the command to npx swell-mcp. Add your Swell credentials as environment variables. Click "Add Extension".
LM Studio
Go to Program in the right sidebar -> Install -> Edit mcp.json. Use the standard config above with your Swell credentials.
Warp
Go to Settings -> AI -> Manage MCP Servers -> + Add to add an MCP Server. Use the standard config above.
Alternatively, use the slash command /add-mcp in the Warp prompt and paste the standard config from above.
Configuration
Getting Your Swell Credentials
- Log into your Swell dashboard at login.swell.store
- Navigate to Developer → API Keys
- Copy your Store ID (this is your
SWELL_STORE_ID) - Copy your Secret Key (this is your
SWELL_SECRET_KEY- use the backend/admin key, not the public key)
Environment Variables
SWELL_STORE_ID: Your Swell store identifier (required)SWELL_SECRET_KEY: Your Swell secret/private key (required)DEBUG: Set to "true" to enable debug mode with raw JSON responses (optional)
Example Configuration
{
"mcpServers": { "swell-mcp": { "command": "npx", "args": ["swell-mcp"], "env": { "DEBUG": "false", "SWELL_STORE_ID": "my-awesome-store", "SWELL_SECRET_KEY": "sk_live_abc123def456..." }, "disabled": false } } }
Usage
Once installed in your MCP client (see Getting Started above), you can use the Swell MCP tools directly through your AI assistant:
Example Interactions
"List my active products"
→ Uses swell_list_products with active=true
"Show me pending orders from this week" → Uses swell_list_orders with status=pending and date filtering
"Update customer John Doe's email to john@example.com" → Uses swell_update_customer to modify customer information
"Check inventory for product ID abc123" → Uses swell_check_inventory for stock levels
Debug Mode
Enable debug mode to see raw JSON responses instead of formatted output:
{
"env": { "DEBUG": "true", "SWELL_STORE_ID": "your_store_id", "SWELL_SECRET_KEY": "your_private_token" } }
Transport Modes
STDIO Transport
- JSON-RPC communication via stdin/stdout
- Used by Claude Desktop, Cursor AI, and other local AI assistants
- Run with:
TRANSPORT_MODE=stdio node dist/index.js
Streamable HTTP Transport
- HTTP-based transport with Server-Sent Events (SSE)
- Supports multiple concurrent connections and web integrations
- Runs on port 3000 by default (configurable via
PORTenv var) - MCP Endpoint:
http://localhost:3000/mcp - Health Check:
http://localhost:3000/→ Returns server version - Run with:
TRANSPORT_MODE=http node dist/index.js
Architecture Overview
Project Structure (Click to expand)
src/
├── cli/ # Command-line interfaces │ └── index.ts # CLI entry point with Commander setup ├── controllers/ # Business logic orchestration │ ├── swell.products.controller.ts # Product management logic │ ├── swell.products.formatter.ts # Product response formatting │ ├── swell.orders.controller.ts # Order management logic │ ├── swell.orders.formatter.ts # Order response formatting │ ├── swell.customers.controller.ts # Customer management logic │ └── swell.customers.formatter.ts # Customer response formatting ├── services/ # External API interactions │ ├── swell.products.service.ts # Swell products API service │ ├── swell.products.types.ts # Product type definitions │ ├── swell.orders.service.ts # Swell orders API service │ ├── swell.orders.types.ts # Order type definitions │ ├── swell.customers.service.ts # Swell customers API service │ └── swell.customers.types.ts # Customer type definitions ├── tools/ # MCP tool definitions (AI interface) │ ├── swell.products.tool.ts # Product management tools │ ├── swell.orders.tool.ts # Order management tools │ └── swell.customers.tool.ts # Customer management tools ├── types/ # Global type definitions │ └── common.types.ts # Shared interfaces (ControllerResponse, etc.) ├── utils/ # Shared utilities │ ├── logger.util.ts # Contextual logging system │ ├── error.util.ts # MCP-specific error formatting │ ├── error-handler.util.ts # Error handling utilities │ ├── config.util.ts # Environment configuration │ ├── constants.util.ts # Version and package constants │ ├── formatter.util.ts # Markdown formatting │ ├── swell-client.util.ts # Swell SDK client wrapper │
只显示了开头部分;其余内容请在仓库中阅读