Shiplogic MCP Server

by jlwainwright

Integrations

  • Used for environment variable configuration with a .env file.

  • Provides a support link in the README, allowing users to financially support the developer of the MCP server.

  • Can be used to test the server's API endpoints during development.

Shiplogic MCP 服务器

模型上下文协议 (MCP) 服务器,可与 Shiplogic 运输 API 无缝集成。它基于 MCP SDK 和 TypeScript 构建,以确保类型安全并提升开发者体验。

演示

# 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

特征

  • 🚚获取运费- 计算地址之间的运费
  • 📦创建货运- 预订货运并自动跟踪
  • 🔍追踪包裹- 实时追踪货运
  • 取消发货- 需要时取消预订
  • 可选服务- 获得特殊服务的附加费率
  • 📚地址簿管理- 存储和管理常用地址

安装

先决条件

  • Node.js 18+
  • npm 或 yarn
  • Shiplogic API 密钥(在shiplogic.com获取)

快速入门

  1. 克隆并安装:
git clone https://github.com/jlwainwright/shiplogic-mcp.git cd shiplogic-mcp npm install
  1. 配置环境:
cp .env.example .env # Edit .env and add your Shiplogic API key
  1. 构建服务器:
npm run build

用法

使用 Claude Desktop

将其添加到您的 Claude Desktop 配置中:

{ "mcpServers": { "shiplogic": { "command": "node", "args": ["/absolute/path/to/shiplogic-mcp/dist/index.js"], "env": { "SHIPLOGIC_API_KEY": "your_api_key_here" } } } }

使用 MCP 检查器

使用 MCP 检查器测试服务器:

npm run inspect

独立

直接运行服务器:

npm run dev

可用工具

get_shipping_rates

计算两个地址之间的运费。

{ 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

创建带有追踪功能的新货件。

{ 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

通过参考编号追踪货件。

{ tracking_number: string }

cancel_shipment

取消现有的发货。

{ tracking_reference: string }

get_opt_in_rates

获取可选的附加服务费率。

{ collection_address: { /* address object */ }, delivery_address: { /* address object */ } }

add_address_to_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

从帐户的地址簿中检索地址。

{ account_id: number, type?: "collection" | "delivery" // Optional filter by type }

remove_address_from_book

从帐户的地址簿中删除一个地址。

{ account_id: number, address_id: number }

配置

环境变量:

多变的描述必需的默认
SHIPLOGIC_API_KEY您的 Shiplogic API 密钥是的-
SHIPLOGIC_API_URLAPI 基本 URLhttps://api.shiplogic.com

发展

项目结构

shiplogic-mcp-official/ ├── src/ │ └── index.ts # Main server implementation ├── dist/ # Compiled JavaScript (generated) ├── package.json ├── tsconfig.json ├── .env.example └── README.md

脚本

  • npm run build编译 TypeScript
  • npm run dev - 构建并运行
  • npm run inspect - 使用 MCP Inspector 运行

测试

# Run with MCP Inspector npm run inspect # In another terminal, test the tools curl -X POST http://localhost:3000/tools/list

API 参考

此服务器集成了 Shiplogic API v2。有关详细的 API 文档,请参阅:

执照

MIT 许可证 - 请参阅LICENSE文件

贡献

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交更改( git commit -m 'Add amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求

支持

如果您觉得这个项目有帮助,请考虑支持我的工作。您的支持可以帮助我投入更多时间进行开源开发,并为社区创造更好的工具。

致谢


由 Jacques Wainwright 用❤️制作

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器提供与 Shiplogic 运输 API 的无缝集成,以计算运费、创建货运、跟踪包裹并以编程方式管理运输操作。

  1. 演示
    1. 特征
      1. 安装
        1. 先决条件
        2. 快速入门
      2. 用法
        1. 使用 Claude Desktop
        2. 使用 MCP 检查器
        3. 独立
      3. 可用工具
        1. get_shipping_rates
        2. create_shipment
        3. track_shipment
        4. cancel_shipment
        5. get_opt_in_rates
        6. add_address_to_book
        7. get_address_book
        8. remove_address_from_book
      4. 配置
        1. 发展
          1. 项目结构
          2. 脚本
          3. 测试
        2. API 参考
          1. 执照
            1. 贡献
              1. 支持
                1. 致谢

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    An unofficial MCP server that provides an interface to access the Autumn pricing API for managing customers, entitlements, invoices, and generating billing portal links.
                    Last updated -
                    5
                    TypeScript
                    MIT License
                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
                    Last updated -
                    39
                    26
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A comprehensive Model Context Protocol server that enables users to interact with the ShipStation API for managing orders, shipments, carriers, warehouses, products, customers, stores, webhooks, and fulfillments through structured tools.
                    Last updated -
                    39
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A comprehensive server that enables interaction with the ShipHero API through the Model Context Protocol, providing tools for managing orders, products, inventory, shipping, warehouses, vendors, and webhooks.
                    Last updated -
                    29
                    JavaScript

                  View all related MCP servers

                  ID: 1twa0wqawt