EDI MCP Server
A Model Context Protocol server that exposes the StateSet EDI gateway as agent-callable tools. It is a thin, stateless wrapper over the REST API β point it at a running gateway with a bearer token and an MCP host (Claude Desktop, Claude Code) can drive EDI flows directly.What it exposes
117 tools, grouped by area:Package
The package is not yet published to npm. Build it in-repo for now; once published,
npx -y @stateset/edi-mcp replaces the command/args pair in the configs below.Build
Configure
Two environment variables:Claude Desktop
Add toclaude_desktop_config.json:
Claude Code
Try it
With a gateway running and the environment set, ask the host:List our trading partners, then process this 850 and show me the signed event it produced.
Show the deductions summary and dispute the largest open chargeback.
Run standard certification for walmart-us and tell me if it published a template.
Run edi_demo_order_to_invoice_flow and summarize the generated PO, shipment, invoice,
carton labels, and final 856/810 reconciliation status.
Notes
- Transport is stdio β the universal local form. The same tool definitions can be served over Streamable HTTP for a hosted/remote MCP callable by cloud agents and deployable to Kubernetes alongside the gateway.
- The server holds no state and stores no credentials beyond the environment variable. Every call is a direct, authenticated request to the gateway.
- Scope an agent down by giving it a partner API key instead of the admin token β it will only reach that partnerβs own routes.