FedEx Integration
Manage FedEx track shipments, rate shipment, create shipment, cancel shipment, validate address
The FedEx integration provides access to manage FedEx track shipments, rate shipment, create shipment, cancel shipment, validate address through the Integrate MCP server.
Installation
The FedEx integration is included with the SDK:
import { fedexIntegration } from "integrate-sdk/server";Setup
1. Create a FedEx OAuth App
- Create an OAuth application for FedEx
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the FedEx integration to your server configuration. The integration automatically reads FEDEX_CLIENT_ID and FEDEX_CLIENT_SECRET from your environment variables:
import { createMCPServer, fedexIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
fedexIntegration({
scopes: ["ship", "track", "rates", "address"], // Optional
}),
],
});You can override the environment variables by passing explicit values:
fedexIntegration({
clientId: process.env.CUSTOM_FEDEX_ID,
clientSecret: process.env.CUSTOM_FEDEX_SECRET,
scopes: ["ship", "track", "rates", "address"], // Optional
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("fedex");
const result = await client.fedex.trackShipments({
tracking_json: "value",
});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, fedexIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [fedexIntegration()],
});Configuration Options
export interface FedexIntegrationConfig {
clientId?: string;
Default Scopes
These defaults are applied unless you override scopes in the integration config:
shiptrackratesaddress
Tools
fedex_track_shipments
Track shipments
export interface FedexTrackShipmentsParams { tracking_json: string }
fedex_rate_shipment
Rate shipment
export interface FedexRateShipmentParams { rate_json: string }
fedex_create_shipment
Create shipment
export interface FedexCreateShipmentParams { shipment_json: string }
fedex_cancel_shipment
Cancel shipment
export interface FedexCancelShipmentParams { cancel_json: string }
fedex_validate_address
Validate address
export interface FedexValidateAddressParams { address_json: string }
Notes
- Category: Shipping & Logistics
- Authentication mode: OAuth