home / mcp / sf express mcp server
Provides MCP access to SF Express APIs for orders, tracking, routes, services, and logistics.
Configuration
View docs{
"mcpServers": {
"100kgforest-sf-express-mcp-server": {
"command": "node",
"args": [
"/path/to/sf-express-mcp-server/dist/index.js"
],
"env": {
"SF_EXPRESS_API_URL": "https://open.sf-express.com",
"SF_EXPRESS_TIMEOUT": "30000",
"SF_EXPRESS_CHECK_WORD": "your_check_word_here",
"SF_EXPRESS_PARTNER_ID": "your_partner_id_here",
"SF_EXPRESS_REQUEST_ID": "your_request_id_here"
}
}
}
}You can use this MCP server to connect your LLM applications to SF Express APIs for creating orders, tracking shipments, querying routes, checking service availability, and exploring logistics services. It provides a stable bridge so your applications can manage shipping and logistics tasks through MCP requests.
You interact with the SF Express MCP Server through an MCP client by sending well-defined requests that map to SF Express API categories such as order creation, shipment tracking, route queries, service inquiries, and logistics services. Use the client to perform common workflows like creating a shipping order, tracking a package by waybill or order ID, pricing routes between locations, verifying service availability, and requesting warehousing or fulfillment services.
Prerequisites you need before installation:
Step-by-step installation flow:
# 1. Clone the project
git clone https://github.com/100kgforest/sf-express-mcp-server.git
cd sf-express-mcp-server
# 2. Install dependencies
npm install
# 3. Configure environment variables
cp .env.example .env
# Edit .env and fill in your SF Express API credentials
# SF_EXPRESS_PARTNER_ID=your_partner_id_here
# SF_EXPRESS_REQUEST_ID=your_request_id_here
# SF_EXPRESS_CHECK_WORD=your_check_word_here
# 4. Build the project
npm run build
# 5. Start the server
npm startYou can start the server directly or in development mode, and you have options to run it via npx for quick experimentation. The server relies on environment variables for SF Express credentials and optional timeout settings.
# Start in production mode
npm start
# Start in development mode
npm run devTo integrate with Claude Desktop, add a MCP server configuration that points to the local MCP server process. You can run the server locally and reference the runtime path in Claude Desktop’s config.
{
"mcpServers": {
"sf-express": {
"command": "node",
"args": ["/path/to/sf-express-mcp-server/dist/index.js"],
"env": {
"SF_EXPRESS_PARTNER_ID": "your_partner_id",
"SF_EXPRESS_REQUEST_ID": "your_request_id",
"SF_EXPRESS_CHECK_WORD": "your_check_word"
}
}
}
}You can also run the server using npx after publishing to npm.
npx sf-express-mcp-serverThe server exposes a set of tools to interact with SF Express APIs.
The server returns structured error responses to help you diagnose issues quickly. Look for an error object with a code, message, and optional details and timestamp.
Project structure and build steps are designed to support extendability and testing.
npm run build
npm run dev
npm run lintProtect API credentials by using environment variables, avoid committing secrets to version control, and implement proper access controls in production environments.
Common issues include authentication failures, network timeouts, incorrect service codes, and rate limiting. Verify credentials, network connectivity, and the correctness of endpoints.
Create a new shipping order with SF Express using order, consignee, deliver, cargo, and optional services and remarks.
Track shipment status and route history using a waybill number or order ID.
Query available shipping routes and pricing between origin and destination codes.
Inquire service availability between locations and optional service types.
Query logistics services such as warehousing, distribution, fulfillment, and returns.