ConsignCloud MCP Server
Enables AI assistants to manage consignment and retail business operations through the ConsignCloud API, including inventory management, sales tracking, vendor accounts, and analytics.
README
ConsignCloud MCP Server
A Model Context Protocol (MCP) server for the ConsignCloud API, enabling AI assistants to manage inventory, sales, accounts, and more in your consignment/retail business.
🚀 Quick Start: New to this project? See QUICK_START.md to get running in 5 minutes!
📚 Documentation
- QUICK_START.md - Get up and running in 5 minutes
- TESTING.md - Test with MCP Inspector
- CLAUDE_DESKTOP_SETUP.md - Integrate with Claude Desktop
- CONSIGNCLOUD_API_SUMMARY.md - Complete API reference
- PROJECT_SUMMARY.md - Technical overview
Features
This MCP server provides tools for:
Inventory Management
- List, create, update, and delete items
- Filter items by price, category, account, status, location
- Get inventory statistics
- Bulk edit items
- Update item statuses
Sales Management
- List and view sales
- Void and refund sales
- Filter sales by date, customer, location, status
- Get sales trends and analytics
Account Management
- Manage vendor/consignor accounts
- View account balances and statistics
- Track purchases and items per account
Additional Features
- Manage item categories
- Manage store locations
- Create and manage batches of items
- Search and suggestions across entities
Installation
- Clone this repository:
git clone <repository-url>
cd mcp-consigncloud
- Install dependencies:
npm install
- Create a
.envfile with your ConsignCloud API credentials:
cp .env.example .env
- Edit
.envand add your API key:
CONSIGNCLOUD_API_KEY=your_api_key_here
CONSIGNCLOUD_API_BASE_URL=https://api.consigncloud.com/api/v1
Getting Your API Key
- Log in to your ConsignCloud account
- Navigate to Settings → Apps
- Enable the API & Webhooks app
- Click Add API Key
- Copy the generated API key to your
.envfile
Usage
The server supports two modes:
1. STDIO Mode (for Claude Desktop)
This is the default mode for integration with Claude Desktop and other MCP clients.
Development:
npm run dev
Production:
npm run build
npm start
2. HTTP/SSE Mode (for testing with MCP Inspector)
This mode runs an HTTP server with Server-Sent Events for easy testing.
Development:
npm run dev:http
Production:
npm run build
npm run start:http
The server will run on http://localhost:3000 (configurable via .env).
Testing with MCP Inspector
See TESTING.md for detailed instructions on testing with MCP Inspector.
Quick start:
# Terminal 1: Start the HTTP server
npm run dev:http
# Terminal 2: Launch MCP Inspector
npx @modelcontextprotocol/inspector http://localhost:3000/sse
Using with Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"consigncloud": {
"command": "node",
"args": ["/absolute/path/to/mcp-consigncloud/dist/index.js"],
"env": {
"CONSIGNCLOUD_API_KEY": "your_api_key_here"
}
}
}
}
Or if using development mode:
{
"mcpServers": {
"consigncloud": {
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/mcp-consigncloud/src/index.ts"],
"env": {
"CONSIGNCLOUD_API_KEY": "your_api_key_here"
}
}
}
}
Available Tools
Inventory Tools
list_items- List inventory items with filtersget_item- Get specific item detailscreate_item- Create new inventory itemupdate_item- Update existing itemdelete_item- Delete (soft delete) an itemget_item_stats- Get inventory statistics
Sales Tools
list_sales- List sales with filtersget_sale- Get specific sale detailsvoid_sale- Void a saleget_sales_trends- Get sales analytics
Account Tools
list_accounts- List vendor/consignor accountsget_account- Get specific account detailscreate_account- Create new accountupdate_account- Update existing accountget_account_stats- Get account statistics
Category & Location Tools
list_categories- List item categoriescreate_category- Create new categorylist_locations- List store locations
Batch Tools
list_batches- List item batchescreate_batch- Create new batchupdate_batch_status- Change batch status
Utility Tools
search_suggest- Search across entities
Example Prompts
Once configured with Claude Desktop, you can use prompts like:
- "List all inventory items under $50"
- "Show me sales from last week"
- "Create a new vendor account for John Doe"
- "What are the top selling items?"
- "Show me the current balance for account ABC123"
- "Create a new batch for vendor XYZ"
API Documentation
For detailed API documentation, see CONSIGNCLOUD_API_SUMMARY.md
Currency Format
All monetary amounts are in the smallest denomination (cents for USD):
- $10.00 = 1000 cents
- $0.50 = 50 cents
Rate Limiting
The ConsignCloud API uses a leaky bucket algorithm:
- Bucket capacity: 100 requests
- Leak rate: 10 requests/second
- Exceeding limit returns 429 status
Development
Project Structure
mcp-consigncloud/
├── src/
│ ├── index.ts # MCP server implementation
│ ├── client.ts # ConsignCloud API client
│ └── types.ts # TypeScript type definitions
├── dist/ # Compiled JavaScript (generated)
├── .env.example # Environment variable template
├── package.json
├── tsconfig.json
└── README.md
Building
npm run build
Watch Mode
npm run watch
Troubleshooting
API Key Issues
If you get authentication errors:
- Verify your API key is correct in
.env - Check that the API key hasn't been revoked in ConsignCloud
- Ensure the API & Webhooks app is enabled in your ConsignCloud settings
Connection Issues
If the server won't start:
- Check your
.envfile exists and contains valid values - Verify network connectivity to
api.consigncloud.com - Check the console for specific error messages
License
ISC
Support
For ConsignCloud API issues, contact: team@consigncloud.com For MCP server issues, please open a GitHub issue.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。