The Commerce Operations Foundation MCP Server implements the Order Network eXchange Standard (onX), providing a standardized interface between AI agents and fulfillment systems through the Model Context Protocol (MCP).
This project enables AI assistants like Claude to seamlessly interact with any fulfillment system, streamlining commerce operations from order capture through delivery.
The core Fulfillment MCP Reference server implementation that:
Template for creating custom Fulfillment adapters to allow the MCP Reference server to connect to your Fulfillment system:
Comprehensive documentation covering:
JSON Schema definitions for:
Integrate order management capabilities into your AI applications:
git clone https://github.com/cof-org/mcp-reference-server.git
cd mcp-reference-server/server
npm install
npm run build
node dist/index.js
The server uses the mock adapter by default (ADAPTER_TYPE=built-in, ADAPTER_NAME=mock). Configure your AI platform (like Claude Desktop) to execute node /absolute/path/to/server/dist/index.js. See the Installation Guide for platform-specific setup.
Create an adapter for your fulfillment system:
# Copy the adapter template
cp -r adapter-template your-fulfillment-adapter
cd your-fulfillment-adapter
# Install dependencies and start developing
npm install
npm run dev
Deploy the server with your chosen adapter:
git clone https://github.com/cof-org/mcp-reference-server.git
cd mcp-reference-server/server
npm install
cp .env.example .env
# edit .env and set ADAPTER_TYPE/ADAPTER_PACKAGE/ADAPTER_PATH as needed
npm run build
npm start
The server provides 12 essential fulfillment operations:
Action Tools
create-sales-order - Create new orders from any channelupdate-order - Modify order details and line itemscancel-order - Cancel orders with reason trackingfulfill-order - Mark orders as fulfilled and return shipment detailscreate-return - Create returns for order items with refund/exchange trackingQuery Tools
get-orders - Retrieve order informationget-customers - Get customer detailsget-products - Get product informationget-product-variants - Retrieve variant-level dataget-inventory - Check inventory levelsget-fulfillments - Track fulfillment statusget-returns - Query return records and status┌──────────────┐ ┌────────────────┐ ┌──────────────────┐
│ AI Platform │────▶│ MCP Server │────▶│ Fulfillment │
│ (Claude) │ │ (This Project) │ │ Adapter │
└──────────────┘ └────────────────┘ └──────────────────┘
│ │
▼ ▼
┌─────────┐ ┌──────────┐
│ Schemas │ │Fulfillment│
│ (JSON) │ │ Backend │
└─────────┘ └──────────┘
The project includes comprehensive testing at all levels:
# Run all tests
cd server
npm test
# Run specific test suites
npm run test:unit # Unit tests
npm run test:integration # Integration tests
# Test with coverage
npm run test:coverage
Documentation is available in the following locations:
We welcome contributions from the community! Whether you're:
Please open an issue or pull request to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
Ready to revolutionize your fulfillment operations with AI?
Together, we're building the foundation for AI-powered commerce operations.
$ claude mcp add mcp-reference-server \
-- python -m otcore.mcp_server <graph>