AI Agent Integration for eBay Logistics API with MCP Server

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Join the community

Complete MCP server exposing 6 Logistics API operations to AI agents.

⚑ Quick Setup

  1. Import this workflow into your n8n instance
  2. Credentials Add Logistics API credentials
  3. Activate the workflow to start your MCP server
  4. Copy the webhook URL from the MCP trigger node
  5. Connect AI agents using the MCP URL

πŸ”§ How it Works

This workflow converts the Logistics API into an MCP-compatible interface for AI agents.

β€’ MCP Trigger: Serves as your server endpoint for AI agent requests
β€’ HTTP Request Nodes: Handle API calls to https://api.ebay.com{basePath}
β€’ AI Expressions: Automatically populate parameters via $fromAI() placeholders
β€’ Native Integration: Returns responses directly to the AI agent

πŸ“‹ Available Operations (6 total)

πŸ”§ Shipment (4 endpoints)

β€’ POST /shipment/create_from_shipping_quote: Create Shipment from Quote
β€’ GET /shipment/{shipmentId}: This method retrieves the shipment details for the specified shipment ID
β€’ POST /shipment/{shipmentId}/cancel: Create/Search Cancel
β€’ GET /shipment/{shipmentId}/download_label_file: Get Download Label File

πŸ”§ Shipping_Quote (2 endpoints)

β€’ POST /shipping_quote: Retrieve Shipping Quote
β€’ GET /shipping_quote/{shippingQuoteId}: Get {Shippingquoteid}

πŸ€– AI Integration

Parameter Handling: AI agents automatically provide values for:
β€’ Path parameters and identifiers
β€’ Query parameters and filters
β€’ Request body data
β€’ Headers and authentication

Response Format: Native Logistics API responses with full data structure

Error Handling: Built-in n8n HTTP request error management

πŸ’‘ Usage Examples

Connect this MCP server to any AI agent or workflow:

β€’ Claude Desktop: Add MCP server URL to configuration
β€’ Cursor: Add MCP server SSE URL to configuration
β€’ Custom AI Apps: Use MCP URL as tool endpoint
β€’ API Integration: Direct HTTP calls to MCP endpoints

✨ Benefits

β€’ Zero Setup: No parameter mapping or configuration needed
β€’ AI-Ready: Built-in $fromAI() expressions for all parameters
β€’ Production Ready: Native n8n HTTP request handling and logging
β€’ Extensible: Easily modify or add custom logic

πŸ†“ Free for community use! Ready to deploy in under 2 minutes.