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!
- 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
This MCP server provides tools for:
- List, create, update, and delete items
- Filter items by price, category, account, status, location
- Get inventory statistics
- Bulk edit items
- Update item statuses
- List and view sales
- Void and refund sales
- Filter sales by date, customer, location, status
- Get sales trends and analytics
- Manage vendor/consignor accounts
- View account balances and statistics
- Track purchases and items per account
- Manage item categories
- Manage store locations
- Create and manage batches of items
- Search and suggestions across entities
- 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- 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
The server supports two modes:
This is the default mode for integration with Claude Desktop and other MCP clients.
Development:
npm run devProduction:
npm run build
npm startThis mode runs an HTTP server with Server-Sent Events for easy testing.
Development:
npm run dev:httpProduction:
npm run build
npm run start:httpThe server will run on http://localhost:3000 (configurable via .env).
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/sseAdd 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"
}
}
}
}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
list_sales- List sales with filtersget_sale- Get specific sale detailsvoid_sale- Void a saleget_sales_trends- Get sales analytics
list_accounts- List vendor/consignor accountsget_account- Get specific account detailscreate_account- Create new accountupdate_account- Update existing accountget_account_stats- Get account statistics
list_categories- List item categoriescreate_category- Create new categorylist_locations- List store locations
list_batches- List item batchescreate_batch- Create new batchupdate_batch_status- Change batch status
search_suggest- Search across entities
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"
For detailed API documentation, see CONSIGNCLOUD_API_SUMMARY.md
All monetary amounts are in the smallest denomination (cents for USD):
- $10.00 = 1000 cents
- $0.50 = 50 cents
The ConsignCloud API uses a leaky bucket algorithm:
- Bucket capacity: 100 requests
- Leak rate: 10 requests/second
- Exceeding limit returns 429 status
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
npm run buildnpm run watchIf 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
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
ISC
For ConsignCloud API issues, contact: team@consigncloud.com For MCP server issues, please open a GitHub issue.