StateSet MCP Server
Production-grade Model Context Protocol server with 209 tools for complete e-commerce and supply chain operations. Connect Claude AI to your commerce infrastructure.
What is the Model Context Protocol?
The Model Context Protocol (MCP) is a standardized interface for connecting AI models like Claude to external tools and data sources. StateSet's MCP server exposes your entire commerce stack through 209 type-safe tools.
Integration Flow
209 Commerce Tools
Comprehensive MCP tools for every aspect of your commerce operations
Orders & Returns
Complete order lifecycle and RMA management
Sample Tools
stateset_create_orderstateset_update_orderstateset_list_ordersstateset_get_order_itemsstateset_create_rmastateset_update_rmastateset_list_rmasProduction Infrastructure
Enterprise-grade features for reliability, performance, and scalability
Intelligent Caching
Multi-strategy caching with LRU, LFU, and FIFO eviction policies
// Cache Configuration
CACHE_ENABLED=true
CACHE_TTL=300
CACHE_MAX_SIZE=1000
CACHE_STRATEGY=lru
CACHE_BACKEND=hybridConnect Claude to Your Commerce Stack
Let Claude manage orders, inventory, and fulfillment through natural language
Example Conversation
"Show me all orders from the last 24 hours with pending status"
I'll search for pending orders from the last 24 hours.
stateset_search_orders_by_date"Create shipments for the first 5 orders"
Creating shipments for 5 orders...
stateset_batch_operations// Claude Desktop config
{
"mcpServers": {
"stateset": {
"command": "node",
"args": ["path/to/stateset-mcp-server"],
"env": {
"STATESET_API_KEY": "your_api_key"
}
}
}
}
// Or programmatic integration
import { Client } from '@modelcontextprotocol/sdk';
const client = new Client({
name: 'my-app',
version: '1.0.0'
});
await client.connect(transport);
// List available tools
const tools = await client.listTools();
// Call a tool
const orders = await client.callTool({
name: 'stateset_list_orders',
arguments: { page: 1, per_page: 10 }
});Resource URI Templates
Direct resource access via standardized URI patterns
stateset-order:///ORD-12345Order detailsstateset-rma:///RMA-12345Return requeststateset-shipment:///SHIP-123Shipment trackingstateset-product:///PROD-789Product infostateset-inventory:///INV-456Stock levelsstateset-customer:///CUST-789Customer profilestateset-invoice:///INV-789Invoice detailsstateset-work-order:///WO-123Work orderstateset-purchase-order:///PO-456Purchase orderQuick Start
Get up and running in minutes
Install the Server
Clone the repository and install dependencies
git clone github.com/stateset/stateset-mcp-server
cd stateset-mcp-server
npm install && npm run buildConfigure API Key
Set your StateSet API credentials
# .env file
STATESET_API_KEY=your_api_key
STATESET_BASE_URL=https://api.stateset.io/v1Connect Claude
Add to Claude Desktop or your application
# Start the server
npm start
# Or run in development
npm run devArchitecture
Built with TypeScript for maximum type safety and reliability
MCP Server
Stdio transport
Tool Registry
209 typed tools
Caching Layer
LRU/Redis hybrid
Rate Limiter
Token bucket
Circuit Breaker
Fault tolerance
WebSocket
Real-time events
Validation
Zod schemas
Metrics
Prometheus
Ready to Connect Claude to Your Commerce Stack?
Start managing orders, inventory, and fulfillment through natural language