
MCP Commerce Server Starter
io.github.NewPlanetWW由 GitHub 账号 NewPlanetWW 发布v1.0.0更新于 Oct 24, 2026
FastMCP commerce server starter: product catalog, search, and checkout. Deploy to Vercel in 5 min.
概览
一个商务类 MCP 服务器起步模板,提供商品目录资源以及搜索和结账工具,供智能体完成购物流程。
- 可以做什么
- 这是一个基于 FastMCP 和 FastAPI 的克隆即部署商务服务器模板。它提供智能体可读取的商品目录资源、支持关键词、分类和最高价格筛选的 search_products 工具,以及返回订单摘要和结账链接的 initiate_checkout 工具。它还提供健康检查端点,可在本地运行或部署到 Vercel。
- 适用场景
- 当你需要一个可运行的、面向智能体的商务后端示例,或想把自己的商品目录和结账流程接入 Claude、ChatGPT、Gemini、Cursor 等 MCP 客户端时,可以使用它。它是模板而非成品商店,需要自行替换示例数据和结账占位实现。
- 运行要求
- 可作为远程端点使用,也可在本地运行,需要 Python 及通过 pip 安装的依赖;使用 Vercel CLI 部署需要 Node 18+。可选的 API 密钥认证使用 X-API-Key 请求头,由 API_KEY 和 REQUIRE_AUTH 环境变量控制。清单中未声明任何凭据。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Commerce Server Starter,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.NewPlanetWW%2Fmcp-commerce-starter/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"commerce-starter": {
"type": "http",
"url": "https://mcp-commerce-starter.vercel.app/mcp"
}
}
}README
MCP Commerce Server Starter
Clone-and-deploy boilerplate for a commerce MCP server. Live on Vercel in five minutes. Reachable by Claude, ChatGPT, Gemini, Cursor, and every other MCP-compatible client.
Full build guide (with the why behind every line): How to Build an MCP Server in 2026
What you get
- Product catalog Resource — agents read the full catalog before acting
search_productsTool — keyword + category + max-price filterinitiate_checkoutTool — returns order summary + checkout URL- Optional API-key auth —
X-API-Keyheader, toggle withREQUIRE_AUTH=true - Health endpoint at
/health - Vercel-ready — one command deploy, free Hobby tier
Stack: Python · FastMCP · FastAPI · Vercel
Quick start (local)
Test the health endpoint:
Deploy to Vercel (free)
Requires Node 18+ for the Vercel CLI. No GitHub required — the CLI uploads directly.
The CLI prints your production URL. Your MCP endpoint is at:
Set environment variables in the Vercel dashboard (Settings → Environment Variables):
Wire into Claude Desktop
Option A — Local stdio (fast iteration while building):
Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (see full guide for Windows/Linux paths):
Option B — Remote (after Vercel deploy) using mcp-remote:
Fully quit and relaunch Claude Desktop. Ask: "What products do you have under $100?" — Claude calls search_products and responds with your catalog.
Customize
Replace the sample products
Edit the PRODUCTS list in server.py. Each product needs: sku, name, price, description, availability, category, image_url.
For real inventory, replace the list with a database call:
Add Stripe checkout
Replace the stub in initiate_checkout with a real Stripe session:
The 5 errors you'll hit (and how to fix them)
Covered in the full guide: 30daypivot.com/agentmall_spoke_mcp
MCP error -32600— initialization order violation422 Unprocessable Entity— Pydantic model vs plain args mismatch405 Method Not Allowed— missing DELETE in CORS allowed methodsstateless_http not set— serverless Vercel requiresstateless_http=TrueModuleNotFoundError: mcp— wrong package name (mcp[cli], notfastmcp)
Project structure
Go deeper
This starter is the code companion to the AgentMall spoke series on 30DayPivot:
- MCP Server Build Guide — the full walkthrough behind this repo
- Agent-Readable Product Data — Schema.org markup so agents find your products without calling the server
- FastAPI Commerce API — REST layer that sits alongside your MCP server
- Free-to-Paid / Stripe Metered Billing — monetize the server you just built
- The AgentMall Roadmap — full picks-and-shovels map of agentic commerce infrastructure
License
MIT
来源:README.md,提交 d9ec6db
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 75%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。