orderful-mcp
v1.0.1
Published
MCP server for Orderful EDI API integration
Maintainers
Readme
Orderful MCP Server
An MCP (Model Context Protocol) server that provides access to the Orderful EDI API, enabling Claude to interact with your EDI transactions, trading partners, and document workflows.
Features
This MCP server exposes the following Orderful API capabilities:
Organization
- get-organization - Get your Orderful organization details
Transactions
- list-transactions - List EDI transactions with filtering (type, status, date range)
- get-transaction - Get details of a specific transaction
- get-transaction-message - Get the raw EDI message content
- create-transaction - Create a new EDI transaction
Polling Bucket
- get-polling-bucket - Retrieve transactions from a polling bucket for processing
Deliveries
- get-delivery - Get delivery details
- approve-delivery - Approve a transaction delivery
- fail-delivery - Mark a delivery as failed
Relationships
- list-relationships - List all trading partner relationships
Acknowledgments
- create-acknowledgment - Create an acknowledgment (997/999) for a transaction
- get-acknowledgment - Get acknowledgment details
Attachments
- get-attachment - Get attachment metadata
Data Conversion
- convert-data - Convert between X12, EDIFACT, and JSON formats
Labels
- generate-label - Generate shipping labels from transaction data
Installation
Clone or copy this directory
Install dependencies:
cd orderful-mcp-server npm installBuild the TypeScript:
npm run build
Configuration
Set your Orderful API key as an environment variable:
export ORDERFUL_API_KEY="your-api-key-here"Usage with Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"orderful": {
"command": "node",
"args": ["/Users/jamesmartin/Documents/orderful-mcp-server/dist/index.js"],
"env": {
"ORDERFUL_API_KEY": "[YOUR API KEY HERE]"
}
}
}
}Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"orderful": {
"command": "node",
"args": ["C:\\path\\to\\orderful-mcp-server\\dist\\index.js"],
"env": {
"ORDERFUL_API_KEY": "your-api-key-here"
}
}
}
}Development
Run in development mode with hot reloading:
npm run devAvailable Transaction Types
Common EDI transaction types supported by Orderful:
850_PURCHASE_ORDER- Purchase Order855_PURCHASE_ORDER_ACKNOWLEDGMENT- PO Acknowledgment856_SHIP_NOTICE- Advance Ship Notice (ASN)810_INVOICE- Invoice860_PURCHASE_ORDER_CHANGE_REQUEST- PO Change Request945_WAREHOUSE_SHIPPING_ADVICE- Warehouse Shipping Advice944_WAREHOUSE_STOCK_TRANSFER- Warehouse Stock Transfer997_FUNCTIONAL_ACKNOWLEDGMENT- Functional Acknowledgment
Status Values
Validation Status
PROCESSING- Transaction is being validatedVALID- Transaction passed validationINVALID- Transaction failed validation
Delivery Status
PENDING- Delivery not yet attemptedSENT- Delivery in progressDELIVERED- Successfully deliveredFAILED- Delivery failed
Acknowledgment Status
PENDING- Awaiting acknowledgmentACCEPTED- Transaction acceptedREJECTED- Transaction rejected
Example Usage in Claude
Once configured, you can ask Claude things like:
- "Show me the recent purchase orders from Walmart"
- "Get the details of transaction 12345"
- "List all transactions that failed delivery in the last week"
- "What trading partners do we have configured?"
- "Check our polling bucket for new inbound transactions"
- "Approve delivery for transaction 67890"
API Documentation
For more details on the Orderful API, visit: https://docs.orderful.com/reference/overview
Troubleshooting
- API Key Issues: Ensure your
ORDERFUL_API_KEYenvironment variable is set correctly - Connection Errors: Verify your network can reach
api.orderful.com - Permission Errors: Ensure your API key has the necessary permissions for the operations you're trying to perform
License
MIT
