modelscope·@shopper-context-protocol/scp-mcp-wrapper
暂无描述。
A Model Context Protocol (MCP) server that provides AI assistants like Claude with secure access to customer data through the Shopper Context Protocol (SCP).
This MCP server acts as a bridge between AI assistants and e-commerce systems that implement the SCP protocol. It enables Claude Desktop and other MCP clients to:
All customer data requests are authenticated and authorized by the merchant's SCP server, ensuring privacy and security.
The easiest way to use this server is with npx - no installation required!
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"scp": {
"command": "npx",
"args": ["-y", "@shoppercontextprotocol/local-mcp-server"]
}
}
}
On Windows, the config file is located at: %APPDATA%\Claude\claude_desktop_config.json
If you're developing an SCP server locally, you can configure the MCP server to point to your test endpoint:
{
"mcpServers": {
"scp": {
"command": "npx",
"args": ["-y", "@shoppercontextprotocol/local-mcp-server"],
"env": {
"SCP_TEST_ENDPOINT": "http://localhost:8787/v1"
}
}
}
}
This bypasses DNS discovery and directs all requests to your local test server.
For development or if you prefer a local installation:
# Install globally
npm install -g @shoppercontextprotocol/local-mcp-server
# Or install locally for development
git clone <repository>
cd local_mcp
npm install
npm run build
{
"mcpServers": {
"scp": {
"command": "scp-mcp-server"
}
}
}
Or with a local build:
{
"mcpServers": {
"scp": {
"command": "node",
"args": ["/absolute/path/to/local_mcp/dist/index.js"]
}
}
}
# If installed globally
scp-mcp-server
# Or with local build
npm start
npm run dev # Watch mode
npm run build # Production build
npm test # Run tests
The server stores configuration in ~/.scp/config.json. It will be created automatically on first run with these defaults:
{
"dns_resolver": "1.1.1.1",
"dns_cache_ttl": 86400,
"poll_interval": 2,
"max_poll_attempts": 150,
"token_refresh_threshold": 300,
"request_timeout": 30000,
"demo_mode": true,
"demo_endpoint": "http://localhost:8787/v1"
}
dns_resolver: DNS server to use for SCP endpoint discovery (default: Cloudflare's 1.1.1.1)dns_cache_ttl: How long to cache discovered endpoints in seconds (default: 24 hours)poll_interval: Seconds between polling attempts during OAuth flow (default: 2)max_poll_attempts: Maximum number of polling attempts (default: 150 / 5 minutes)token_refresh_threshold: Seconds before expiry to refresh tokens (default: 300 / 5 minutes)request_timeout: HTTP request timeout in milliseconds (default: 30000 / 30 seconds)demo_mode: Enable demo mode (default: true)demo_endpoint: Endpoint to use in demo mode (default: http://localhost:8787/v1)There are multiple ways to point the MCP server to your test SCP server:
Set SCP_TEST_ENDPOINT when running the server:
# Direct usage
SCP_TEST_ENDPOINT=http://localhost:8787/v1 scp-mcp-server
# With npx
SCP_TEST_ENDPOINT=http://localhost:8787/v1 npx @shoppercontextprotocol/local-mcp-server
# In Claude Desktop config (see Quick Start section above)
Edit ~/.scp/config.json:
{
"demo_mode": true,
"demo_endpoint": "http://localhost:8787/v1"
}
By default, demo mode is enabled and directs all SCP requests to the demo endpoint. This is useful for local testing without needing DNS records.
To use real DNS-based discovery for production merchants:
{
"demo_mode": false
}
Priority Order:
SCP_TEST_ENDPOINT environment variable (highest priority)~/.scp/tokens.db (SQLite, encrypted)~/.scp/config.jsonscp_authorize - Authorize access to a merchantscp_check_authorization - Check authorization statusscp_revoke_authorization - Revoke access to a merchantscp_discover - Discover SCP endpoint for a domainscp://{domain}/orders - Order historyscp://{domain}/loyalty - Loyalty statusscp://{domain}/offers - Active offersscp://{domain}/preferences - Customer preferencesscp://{domain}/intents - Shopping intentsAfter adding the MCP server to your Claude Desktop config and restarting Claude, you can interact with SCP-enabled merchants:
Can you help me authorize access to my Boot Barn account?
My email is customer@example.com
Claude will use the scp_authorize tool to:
Once authorized, you can ask Claude to retrieve your data:
What are my recent B…
一种MCP服务器,它将人工智能助手连接到SearchAgora,使用户能够通过自然语言对话在网页上搜索、发现和购买产品。
一个服务器,它通过BigGo的价格比较API,实现跨多个电子商务平台搜索产品、追踪价格历史以及比较产品规格的功能。
一个概念验证的模型上下文协议服务器,使大型语言模型应用程序能够与Uber Eats互动,允许人工智能代理通过自然语言浏览和订购食物。
使用 Apify 提供的 3,000 多种预构建云工具(称为 Actors),从网站、电子商务平台、社交媒体、搜索引擎、地图等提取数据。
暂无描述。
暂无描述。