Shiplogic MCP Server
An MCP server providing seamless integration with the Shiplogic shipping API to calculate shipping rates, create shipments, track packages, and manage shipping operations programmatically.
Tools
get_shipping_rates
Get shipping rates for a shipment between two addresses
get_opt_in_rates
Get optional add-on rates for a shipment
create_shipment
Create a shipment with Shiplogic
track_shipment
Track a shipment by tracking number
cancel_shipment
Cancel a shipment by tracking reference
README
Shiplogic MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with the Shiplogic shipping API. Built with the MCP SDK and TypeScript for type safety and better developer experience.
Demo
# Example conversation with Claude:
User: "Get shipping rates from Cape Town to Johannesburg for a 2.5kg parcel"
Claude: "I'll check shipping rates for you..."
[Using tool: get_shipping_rates]
Result: Economy service - R95 (2-3 days delivery)
User: "Book the economy service"
Claude: "Creating shipment..."
[Using tool: create_shipment]
Result: Shipment created! Tracking: QR4FVL
Features
- 🚚 Get shipping rates - Calculate shipping costs between addresses
- 📦 Create shipments - Book shipments with automatic tracking
- 🔍 Track packages - Real-time shipment tracking
- ❌ Cancel shipments - Cancel bookings when needed
- ➕ Optional services - Access add-on rates for special services
- 📚 Address book management - Store and manage frequently used addresses
Installation
Prerequisites
- Node.js 18+
- npm or yarn
- Shiplogic API key (get one at shiplogic.com)
Quick Start
- Clone and install:
git clone https://github.com/jlwainwright/shiplogic-mcp.git
cd shiplogic-mcp
npm install
- Configure environment:
cp .env.example .env
# Edit .env and add your Shiplogic API key
- Build the server:
npm run build
Usage
With Claude Desktop
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"shiplogic": {
"command": "node",
"args": ["/absolute/path/to/shiplogic-mcp/dist/index.js"],
"env": {
"SHIPLOGIC_API_KEY": "your_api_key_here"
}
}
}
}
With MCP Inspector
Test the server using the MCP Inspector:
npm run inspect
Standalone
Run the server directly:
npm run dev
Available Tools
get_shipping_rates
Calculate shipping rates between two addresses.
{
collection_address: {
street_address: string,
city: string,
code: string,
country?: string,
type?: "residential" | "business"
},
delivery_address: {
street_address: string,
city: string,
code: string,
country?: string,
type?: "residential" | "business"
},
parcels: [{
length: number, // cm
width: number, // cm
height: number, // cm
weight: number, // kg
description?: string
}],
declared_value?: number
}
create_shipment
Create a new shipment with tracking.
{
service_level_code: string, // e.g., "ECO"
collection_address: { /* same as above */ },
delivery_address: { /* same as above */ },
parcels: [{ /* same as above */ }],
collection_contact: {
name: string,
mobile_number?: string,
email?: string
},
delivery_contact: {
name: string,
mobile_number?: string,
email?: string
},
customer_reference?: string,
mute_notifications?: boolean
}
track_shipment
Track a shipment by reference number.
{
tracking_number: string
}
cancel_shipment
Cancel an existing shipment.
{
tracking_reference: string
}
get_opt_in_rates
Get optional add-on service rates.
{
collection_address: { /* address object */ },
delivery_address: { /* address object */ }
}
add_address_to_book
Add an address to the account's address book.
{
account_id: number,
address: {
street_address: string,
city: string,
code: string,
country?: string,
type?: "residential" | "business",
company?: string
},
name?: string, // Name for this address entry
type?: "collection" | "delivery" // Address type
}
get_address_book
Retrieve addresses from the account's address book.
{
account_id: number,
type?: "collection" | "delivery" // Optional filter by type
}
remove_address_from_book
Remove an address from the account's address book.
{
account_id: number,
address_id: number
}
Configuration
Environment variables:
| Variable | Description | Required | Default |
|---|---|---|---|
SHIPLOGIC_API_KEY |
Your Shiplogic API key | Yes | - |
SHIPLOGIC_API_URL |
API base URL | No | https://api.shiplogic.com |
Development
Project Structure
shiplogic-mcp-official/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
├── .env.example
└── README.md
Scripts
npm run build- Compile TypeScriptnpm run dev- Build and runnpm run inspect- Run with MCP Inspector
Testing
# Run with MCP Inspector
npm run inspect
# In another terminal, test the tools
curl -X POST http://localhost:3000/tools/list
API Reference
This server integrates with Shiplogic API v2. For detailed API documentation, see:
License
MIT License - see LICENSE file
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
- 🐛 Issues: GitHub Issues
- 📧 Email: your.email@example.com
- 📚 Docs: Wiki
- ☕ Support My Work: Buy Me a Coffee
If you find this project helpful, consider supporting my work. Your support helps me dedicate more time to open source development and create better tools for the community.
Acknowledgments
- Built with Model Context Protocol SDK
- Powered by Shiplogic API
Made with ❤️ by Jacques Wainwright
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。